SourceXtractorPlusPlus
0.13
Please provide a description of the project.
|
#include <ImageChunk.h>
Public Member Functions | |
virtual | ~ImageChunk () |
std::string | getRepr () const override |
T | getValue (int x, int y) const final |
Returns the value of the pixel with the coordinates (x,y) More... | |
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 |
Static Public Member Functions | |
static std::shared_ptr< ImageChunk< T > > | create (const T *data, int width, int height, int stride, std::shared_ptr< const Image< T >> image=nullptr) |
Protected Member Functions | |
ImageChunk (const T *data, int width, int height, int stride, std::shared_ptr< const Image< T >> image=nullptr) | |
Protected Attributes | |
const T * | m_data |
int | m_stride |
int | m_width |
int | m_height |
std::shared_ptr< const Image< T > > | m_image |
Definition at line 34 of file ImageChunk.h.
|
inlineprotected |
Definition at line 36 of file ImageChunk.h.
|
inlinevirtual |
Definition at line 49 of file ImageChunk.h.
|
inlinestatic |
Definition at line 44 of file ImageChunk.h.
Referenced by SourceXtractor::BufferedImage< T >::getChunk(), SourceXtractor::ImageChunk< T >::getChunk(), and SourceXtractor::VectorImage< SeFloat >::getChunk().
|
inlineoverridevirtual |
Definition at line 72 of file ImageChunk.h.
References SourceXtractor::ImageChunk< T >::create(), SourceXtractor::ImageChunk< T >::m_data, SourceXtractor::ImageChunk< T >::m_stride, x, and y.
|
inlinefinal |
Returns the height of the image chunk in pixels.
Definition at line 68 of file ImageChunk.h.
References SourceXtractor::ImageChunk< T >::m_height.
|
inlineoverride |
Definition at line 52 of file ImageChunk.h.
References SourceXtractor::ImageChunk< T >::m_height, SourceXtractor::ImageChunk< T >::m_image, SourceXtractor::ImageChunk< T >::m_width, and std::to_string().
|
inlinefinal |
Returns the value of the pixel with the coordinates (x,y)
Definition at line 57 of file ImageChunk.h.
References SourceXtractor::ImageChunk< T >::m_data, SourceXtractor::ImageChunk< T >::m_height, 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(), and SourceXtractor::InterpolatedImageSource< T >::getInterpolatedValue().
|
inlinefinal |
Returns the width of the image chunk in pixels.
Definition at line 63 of file ImageChunk.h.
References SourceXtractor::ImageChunk< T >::m_width.
|
protected |
Definition at line 77 of file ImageChunk.h.
Referenced by SourceXtractor::ImageChunk< T >::getChunk(), SourceXtractor::ImageChunk< T >::getValue(), and SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk().
|
protected |
Definition at line 79 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 81 of file ImageChunk.h.
Referenced by SourceXtractor::ImageChunk< T >::getRepr().
|
protected |
Definition at line 78 of file ImageChunk.h.
Referenced by SourceXtractor::ImageChunk< T >::getChunk(), SourceXtractor::ImageChunk< T >::getValue(), SourceXtractor::UniversalImageChunk< T >::setValue(), and SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk().
|
protected |
Definition at line 79 of file ImageChunk.h.
Referenced by SourceXtractor::ImageChunk< T >::getRepr(), SourceXtractor::ImageChunk< T >::getValue(), SourceXtractor::ImageChunk< T >::getWidth(), and SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk().