SourceXtractorPlusPlus
0.11
Please provide a description of the project.
|
#include <ImageChunk.h>
Public Member Functions | |
virtual | ~UniversalImageChunk () |
void | setValue (int x, int y, T value) |
![]() | |
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 | |
template<typename... Args> | |
static std::shared_ptr < UniversalImageChunk< T > > | create (Args &&...args) |
![]() | |
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 | |
UniversalImageChunk (ImageChunk< T > &&chunk) | |
UniversalImageChunk (std::shared_ptr< const Image< T >> image, int x, int y, int width, int height) | |
UniversalImageChunk (std::vector< T > &&data, int width, int height) | |
![]() | |
ImageChunk (const T *data, int width, int height, int stride, std::shared_ptr< const Image< T >> image=nullptr) | |
Private Attributes | |
std::vector< T > | m_chunk_vector |
Additional Inherited Members | |
![]() | |
using | PixelType = T |
![]() | |
const T * | m_data |
int | m_stride |
int | m_width |
int | m_height |
std::shared_ptr< const Image< T > > | m_image |
Definition at line 85 of file ImageChunk.h.
|
inlineprotected |
This move constructor from an ImageChunk uses a dynamic cast, so if the chunk is another universal chunk, we can avoid copying data, and we just move-assign the underlying vector
Definition at line 93 of file ImageChunk.h.
References SourceXtractor::UniversalImageChunk< T >::m_chunk_vector, SourceXtractor::ImageChunk< T >::m_data, SourceXtractor::ImageChunk< T >::m_height, SourceXtractor::ImageChunk< T >::m_stride, SourceXtractor::ImageChunk< T >::m_width, and std::move().
|
inlineprotected |
Definition at line 110 of file ImageChunk.h.
References ModelFitting::height, SourceXtractor::UniversalImageChunk< T >::m_chunk_vector, SourceXtractor::ImageChunk< T >::m_data, and ModelFitting::width.
|
inlineprotected |
Definition at line 123 of file ImageChunk.h.
References SourceXtractor::UniversalImageChunk< T >::m_chunk_vector, SourceXtractor::ImageChunk< T >::m_data, and std::move().
|
inlinevirtual |
Definition at line 136 of file ImageChunk.h.
|
inlinestatic |
Definition at line 132 of file ImageChunk.h.
Referenced by SourceXtractor::ImageBase< T >::getChunk(), SourceXtractor::BufferedImage< T >::getChunk(), SourceXtractor::FunctionalImage< T >::getChunk(), SourceXtractor::ConstantImage< T >::getChunk(), SourceXtractor::ProcessedImage< T, P >::getChunk(), and SourceXtractor::MaskedImage< T, M, Operator >::getChunk().
|
inline |
Definition at line 139 of file ImageChunk.h.
References SourceXtractor::UniversalImageChunk< T >::m_chunk_vector, and SourceXtractor::ImageChunk< T >::m_stride.
|
private |
Definition at line 144 of file ImageChunk.h.
Referenced by SourceXtractor::UniversalImageChunk< T >::setValue(), and SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk().