|
SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
|
#include <ImageChunk.h>


Public Member Functions | |
| virtual | ~ImageChunk () |
| std::string | getRepr () const override |
| Get a string identifying this image in a human readable manner. | |
| T | getValue (int x, int y) const |
| Returns the value of the pixel with the coordinates (x,y). | |
| T | getValue (const PixelCoordinate &coord) const |
| int | getWidth () const final |
| Returns the width of the image chunk in pixels. | |
| int | getHeight () const final |
| Returns the height of the image chunk in pixels. | |
| 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. | |
| 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. | |
Static Public Member Functions | |
| static std::shared_ptr< ImageChunk< T > > | create (std::shared_ptr< const std::vector< T > > data, int offset, int width, int height, int stride) |
Protected Member Functions | |
| ImageChunk (std::shared_ptr< const std::vector< T > > data, int offset, int width, int height, int stride) | |
Protected Attributes | |
| std::shared_ptr< const std::vector< T > > | m_data |
| int | m_offset |
| int | m_stride |
| int | m_width |
| int | m_height |
Additional Inherited Members | |
| Public Types inherited from SourceXtractor::Image< T > | |
| using | PixelType = T |
Definition at line 36 of file ImageChunk.h.
|
inlineprotected |
Definition at line 38 of file ImageChunk.h.
References m_data, m_height, m_offset, m_stride, and m_width.
Referenced by create(), SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk(), SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk(), SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk(), and SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk().
|
inlinevirtual |
Definition at line 50 of file ImageChunk.h.
|
inlinestatic |
Definition at line 46 of file ImageChunk.h.
References ImageChunk().
Referenced by getChunk(), and SourceXtractor::VectorImage< SourceXtractor::SeFloat >::getChunk().

|
inlineoverridevirtual |
Implements SourceXtractor::Image< T >.
Definition at line 78 of file ImageChunk.h.
References create(), m_data, m_offset, and m_stride.

|
inlinefinalvirtual |
Returns the height of the image chunk in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 74 of file ImageChunk.h.
References m_height.
Referenced by SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk().
|
inlineoverridevirtual |
Get a string identifying this image in a human readable manner.
Implements SourceXtractor::Image< T >.
Definition at line 53 of file ImageChunk.h.
References m_height, m_width, and std::to_string().

|
inline |
Definition at line 63 of file ImageChunk.h.
References m_data, m_height, m_offset, m_stride, m_width, SourceXtractor::PixelCoordinate::m_x, and SourceXtractor::PixelCoordinate::m_y.
|
inline |
Returns the value of the pixel with the coordinates (x,y).
Definition at line 58 of file ImageChunk.h.
References m_data, m_height, m_offset, m_stride, and m_width.
Referenced by SourceXtractor::applyKernel(), SourceXtractor::WeightMapImageSource::generateFromRms(), SourceXtractor::WeightMapImageSource::generateFromVariance(), SourceXtractor::WeightMapImageSource::generateFromWeight(), SourceXtractor::InterpolatedImageSource< T >::getInterpolatedValue(), and SourceXtractor::getMirrorPixel().
|
inlinefinalvirtual |
Returns the width of the image chunk in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 69 of file ImageChunk.h.
References m_width.
Referenced by SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk().
|
protected |
Definition at line 83 of file ImageChunk.h.
Referenced by getChunk(), getValue(), getValue(), ImageChunk(), SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk(), SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk(), SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk(), and SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk().
|
protected |
Definition at line 85 of file ImageChunk.h.
Referenced by getHeight(), getRepr(), getValue(), getValue(), ImageChunk(), and SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk().
|
protected |
Definition at line 84 of file ImageChunk.h.
Referenced by getChunk(), getValue(), getValue(), and ImageChunk().
|
protected |
Definition at line 84 of file ImageChunk.h.
Referenced by SourceXtractor::UniversalImageChunk< T >::at(), getChunk(), getValue(), getValue(), ImageChunk(), SourceXtractor::UniversalImageChunk< T >::setValue(), and SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk().
|
protected |
Definition at line 85 of file ImageChunk.h.
Referenced by getRepr(), getValue(), getValue(), getWidth(), ImageChunk(), and SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk().