SourceXtractorPlusPlus
0.16
Please provide a description of the project.
|
#include <ImageChunk.h>
Public Member Functions | |
virtual | ~ImageChunk () |
std::string | getRepr () const override |
Get a string identifying this image in a human readable manner. More... | |
T | getValue (int x, int y) const |
Returns the value of the pixel with the coordinates (x,y) More... | |
T | getValue (const PixelCoordinate &coord) const |
int | getWidth () const final |
Returns the width of the image chunk in pixels. More... | |
int | getHeight () const final |
Returns the height of the image chunk in pixels. More... | |
virtual 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 | |
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 | |
![]() | |
using | PixelType = T |
Definition at line 34 of file ImageChunk.h.
|
inlineprotected |
Definition at line 36 of file ImageChunk.h.
|
inlinevirtual |
Definition at line 48 of file ImageChunk.h.
|
inlinestatic |
Definition at line 44 of file ImageChunk.h.
Referenced by SourceXtractor::ImageChunk< T >::getChunk(), and SourceXtractor::VectorImage< T >::getChunk().
|
inlineoverridevirtual |
Implements SourceXtractor::Image< T >.
Definition at line 76 of file ImageChunk.h.
References SourceXtractor::ImageChunk< T >::create(), SourceXtractor::ImageChunk< T >::m_data, SourceXtractor::ImageChunk< T >::m_offset, SourceXtractor::ImageChunk< T >::m_stride, x, and y.
|
inlinefinalvirtual |
Returns the height of the image chunk in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 72 of file ImageChunk.h.
References SourceXtractor::ImageChunk< T >::m_height.
|
inlineoverridevirtual |
Get a string identifying this image in a human readable manner.
Implements SourceXtractor::Image< T >.
Definition at line 51 of file ImageChunk.h.
References SourceXtractor::ImageChunk< T >::m_height, SourceXtractor::ImageChunk< T >::m_width, and std::to_string().
|
inline |
Definition at line 61 of file ImageChunk.h.
References SourceXtractor::ImageChunk< T >::m_data, SourceXtractor::ImageChunk< T >::m_height, SourceXtractor::ImageChunk< T >::m_offset, SourceXtractor::ImageChunk< T >::m_stride, SourceXtractor::ImageChunk< T >::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 56 of file ImageChunk.h.
References SourceXtractor::ImageChunk< T >::m_data, SourceXtractor::ImageChunk< T >::m_height, SourceXtractor::ImageChunk< T >::m_offset, SourceXtractor::ImageChunk< T >::m_stride, SourceXtractor::ImageChunk< T >::m_width, x, and y.
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 67 of file ImageChunk.h.
References SourceXtractor::ImageChunk< T >::m_width.
|
protected |
Definition at line 81 of file ImageChunk.h.
Referenced by SourceXtractor::ImageChunk< T >::getChunk(), SourceXtractor::ImageChunk< T >::getValue(), and SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk().
|
protected |
Definition at line 83 of file ImageChunk.h.
Referenced by SourceXtractor::ImageChunk< T >::getHeight(), SourceXtractor::ImageChunk< T >::getRepr(), SourceXtractor::ImageChunk< T >::getValue(), and SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk().
|
protected |
Definition at line 82 of file ImageChunk.h.
Referenced by SourceXtractor::ImageChunk< T >::getChunk(), and SourceXtractor::ImageChunk< T >::getValue().
|
protected |
Definition at line 82 of file ImageChunk.h.
Referenced by SourceXtractor::UniversalImageChunk< T >::at(), SourceXtractor::ImageChunk< T >::getChunk(), SourceXtractor::ImageChunk< T >::getValue(), SourceXtractor::UniversalImageChunk< T >::setValue(), and SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk().
|
protected |
Definition at line 83 of file ImageChunk.h.
Referenced by SourceXtractor::ImageChunk< T >::getRepr(), SourceXtractor::ImageChunk< T >::getValue(), SourceXtractor::ImageChunk< T >::getWidth(), and SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk().