SourceXtractorPlusPlus
0.16
Please provide a description of the project.
|
Part of another image. More...
#include <SubImage.h>
Public Member Functions | |
virtual | ~SubImage ()=default |
Destructor. More... | |
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 |
![]() | |
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< SubImage< T > > | create (Args &&... args) |
Protected Member Functions | |
SubImage (std::shared_ptr< const Image< T >> image, const PixelCoordinate &offset, int width, int height) | |
SubImage (std::shared_ptr< const Image< T >> image, int x, int y, int width, int height) | |
Private Attributes | |
std::shared_ptr< const Image< T > > | m_image |
PixelCoordinate | m_offset |
int | m_width |
int | m_height |
Additional Inherited Members | |
![]() | |
using | PixelType = T |
Part of another image.
Definition at line 34 of file SubImage.h.
|
inlineprotected |
Definition at line 36 of file SubImage.h.
References SourceXtractor::SubImage< T >::getHeight(), SourceXtractor::SubImage< T >::getWidth(), SourceXtractor::PixelCoordinate::m_x, and SourceXtractor::PixelCoordinate::m_y.
|
inlineprotected |
Definition at line 42 of file SubImage.h.
References SourceXtractor::SubImage< T >::getHeight(), SourceXtractor::SubImage< T >::getWidth(), x, and y.
|
virtualdefault |
Destructor.
|
inlinestatic |
Definition at line 55 of file SubImage.h.
Referenced by SourceXtractor::BgDFTConvolutionImageSource::generateTile().
|
inlineoverridevirtual |
Implements SourceXtractor::Image< T >.
Definition at line 71 of file SubImage.h.
References SourceXtractor::SubImage< T >::m_image, SourceXtractor::SubImage< T >::m_offset, SourceXtractor::PixelCoordinate::m_x, SourceXtractor::PixelCoordinate::m_y, x, and y.
|
inlineoverridevirtual |
Returns the height of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 67 of file SubImage.h.
References SourceXtractor::SubImage< T >::m_height.
Referenced by SourceXtractor::SubImage< T >::SubImage().
|
inlineoverridevirtual |
Get a string identifying this image in a human readable manner.
Implements SourceXtractor::Image< T >.
Definition at line 59 of file SubImage.h.
References SourceXtractor::SubImage< T >::m_height, SourceXtractor::SubImage< T >::m_image, SourceXtractor::SubImage< T >::m_offset, SourceXtractor::SubImage< T >::m_width, SourceXtractor::PixelCoordinate::m_x, SourceXtractor::PixelCoordinate::m_y, and std::to_string().
|
inlineoverridevirtual |
Returns the width of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 63 of file SubImage.h.
References SourceXtractor::SubImage< T >::m_width.
Referenced by SourceXtractor::SubImage< T >::SubImage().
|
private |
Definition at line 78 of file SubImage.h.
Referenced by SourceXtractor::SubImage< T >::getHeight(), and SourceXtractor::SubImage< T >::getRepr().
|
private |
Definition at line 76 of file SubImage.h.
Referenced by SourceXtractor::SubImage< T >::getChunk(), and SourceXtractor::SubImage< T >::getRepr().
|
private |
Definition at line 77 of file SubImage.h.
Referenced by SourceXtractor::SubImage< T >::getChunk(), and SourceXtractor::SubImage< T >::getRepr().
|
private |
Definition at line 78 of file SubImage.h.
Referenced by SourceXtractor::SubImage< T >::getRepr(), and SourceXtractor::SubImage< T >::getWidth().