|
SourceXtractorPlusPlus
0.15
Please provide a description of the project.
|
#include <ClippedImage.h>
Public Member Functions | |
| std::string | getRepr () const override |
| Get a string identifying this image in a human readable manner. More... | |
| int | getWidth () const override |
| Returns the width of the image in pixels. More... | |
| int | getHeight () const override |
| Returns the height of the image in pixels. More... | |
| std::shared_ptr< ImageChunk< T > > | getChunk (int x, int y, int width, int height) const override |
Public Member Functions inherited from SourceXtractor::Image< T > | |
| virtual | ~Image ()=default |
| Destructor. More... | |
| std::shared_ptr< ImageChunk< T > > | getChunk (const PixelCoordinate &start, const PixelCoordinate &end) const |
| bool | isInside (int x, int y) const |
| Returns true if the given coordinates are inside the image bounds. More... | |
Static Public Member Functions | |
| template<typename... Args> | |
| static std::shared_ptr < ClippedImage< T > > | create (Args &&...args) |
Private Member Functions | |
| ClippedImage (std::shared_ptr< const Image< T >> img, int x, int y, int w, int h) | |
Private Attributes | |
| std::shared_ptr< const Image< T > > | m_img |
| int | m_clip_x |
| int | m_clip_y |
| int | m_clip_w |
| int | m_clip_h |
Additional Inherited Members | |
Public Types inherited from SourceXtractor::Image< T > | |
| using | PixelType = T |
Clip an image
| T | Pixel type |
Definition at line 31 of file ClippedImage.h.
|
inlineprivate |
Constructor
| img | Image to decorate |
| x | New x start coordinate |
| y | New y start coordinate |
| w | New width |
| h | New height |
Definition at line 47 of file ClippedImage.h.
|
inlinestatic |
Definition at line 56 of file ClippedImage.h.
Referenced by SourceXtractor::BgDFTConvolutionImageSource::generateTile().
|
inlineoverridevirtual |
Implements SourceXtractor::Image< T >.
Definition at line 72 of file ClippedImage.h.
References SourceXtractor::ClippedImage< T >::m_clip_x, SourceXtractor::ClippedImage< T >::m_clip_y, and SourceXtractor::ClippedImage< T >::m_img.
|
inlineoverridevirtual |
Returns the height of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 68 of file ClippedImage.h.
References SourceXtractor::ClippedImage< T >::m_clip_h.
|
inlineoverridevirtual |
Get a string identifying this image in a human readable manner.
Implements SourceXtractor::Image< T >.
Definition at line 60 of file ClippedImage.h.
References SourceXtractor::ClippedImage< T >::m_img.
|
inlineoverridevirtual |
Returns the width of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 64 of file ClippedImage.h.
References SourceXtractor::ClippedImage< T >::m_clip_w.
|
private |
Definition at line 79 of file ClippedImage.h.
Referenced by SourceXtractor::ClippedImage< T >::getHeight().
|
private |
Definition at line 79 of file ClippedImage.h.
Referenced by SourceXtractor::ClippedImage< T >::getWidth().
|
private |
Definition at line 78 of file ClippedImage.h.
Referenced by SourceXtractor::ClippedImage< T >::getChunk().
|
private |
Definition at line 78 of file ClippedImage.h.
Referenced by SourceXtractor::ClippedImage< T >::getChunk().
|
private |
Definition at line 77 of file ClippedImage.h.
Referenced by SourceXtractor::ClippedImage< T >::getChunk(), and SourceXtractor::ClippedImage< T >::getRepr().
1.8.5