SourceXtractorPlusPlus
0.11
Please provide a description of the project.
|
#include <Image.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 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 |
![]() | |
virtual | ~Image ()=default |
Destructor. More... | |
T | getValue (PixelCoordinate pc) const |
![]() | |
T | enable_shared_from_this (T...args) |
T | operator= (T...args) |
T | shared_from_this (T...args) |
T | ~enable_shared_from_this (T...args) |
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 |
Additional Inherited Members | |
![]() | |
using | PixelType = T |
|
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.
References ModelFitting::height, and ModelFitting::width.
Referenced by SourceXtractor::BufferedImage< T >::getChunk(), SourceXtractor::ImageChunk< T >::getChunk(), and SourceXtractor::VectorImage< T >::getChunk().
|
inlineoverridevirtual |
Implements SourceXtractor::Image< T >.
Definition at line 72 of file ImageChunk.h.
References SourceXtractor::ImageChunk< T >::create(), SourceXtractor::ImageChunk< T >::m_data, SourceXtractor::ImageChunk< T >::m_stride, and std::enable_shared_from_this< ImageChunk< T > >::shared_from_this().
|
inlinefinalvirtual |
Returns the height of the image chunk in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 68 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 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().
|
inlinefinalvirtual |
Returns the value of the pixel with the coordinates (x,y)
Implements SourceXtractor::Image< T >.
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::InterpolatedImageSource< T >::getInterpolatedValue().
|
inlinefinalvirtual |
Returns the width of the image chunk in pixels.
Implements SourceXtractor::Image< T >.
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().