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


Public Member Functions | |
| virtual | ~UniversalImageChunk () |
| void | setValue (int x, int y, T value) |
| T & | at (int x, int y) |
Public Member Functions inherited from SourceXtractor::ImageChunk< T > | |
| 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 | |
| template<typename... Args> | |
| static std::shared_ptr< UniversalImageChunk< T > > | create (Args &&... args) |
Static Public Member Functions inherited from SourceXtractor::ImageChunk< T > | |
| 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 | |
| UniversalImageChunk (ImageChunk< T > &&chunk) | |
| UniversalImageChunk (const Image< T > *image, int x, int y, int width, int height) | |
| UniversalImageChunk (std::vector< T > &&data, int width, int height) | |
| UniversalImageChunk (int width, int height) | |
Protected Member Functions inherited from SourceXtractor::ImageChunk< T > | |
| ImageChunk (std::shared_ptr< const std::vector< T > > data, int offset, int width, int height, int stride) | |
Private Attributes | |
| std::shared_ptr< std::vector< T > > | m_chunk_vector |
Additional Inherited Members | |
Public Types inherited from SourceXtractor::Image< T > | |
| using | PixelType = T |
Protected Attributes inherited from SourceXtractor::ImageChunk< T > | |
| std::shared_ptr< const std::vector< T > > | m_data |
| int | m_offset |
| int | m_stride |
| int | m_width |
| int | m_height |
Definition at line 89 of file ImageChunk.h.
|
inlineexplicitprotected |
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 97 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 114 of file ImageChunk.h.
References SourceXtractor::UniversalImageChunk< T >::m_chunk_vector, SourceXtractor::ImageChunk< T >::m_data, x, and y.
|
inlineprotected |
Definition at line 127 of file ImageChunk.h.
References SourceXtractor::UniversalImageChunk< T >::m_chunk_vector, and SourceXtractor::ImageChunk< T >::m_data.
|
inlineprotected |
Definition at line 135 of file ImageChunk.h.
References SourceXtractor::UniversalImageChunk< T >::m_chunk_vector, and SourceXtractor::ImageChunk< T >::m_data.
|
inlinevirtual |
Definition at line 148 of file ImageChunk.h.
|
inline |
Definition at line 155 of file ImageChunk.h.
References SourceXtractor::UniversalImageChunk< T >::m_chunk_vector, SourceXtractor::ImageChunk< T >::m_stride, x, and y.
|
inlinestatic |
Definition at line 144 of file ImageChunk.h.
Referenced by SourceXtractor::FunctionalImage< T, I >::getChunk(), SourceXtractor::MaskedImage< T, M, Operator >::getChunk(), SourceXtractor::MirrorImage< T >::getChunk(), SourceXtractor::PaddedImage< T, CoordinateInterpolation >::getChunk(), SourceXtractor::PaddedImage< T, nullptr >::getChunk(), SourceXtractor::ProcessedImage< T, P >::getChunk(), SourceXtractor::RecenterImage< T >::getChunk(), SourceXtractor::ThresholdedImage< T >::getChunk(), and SourceXtractor::ConstantImage< T >::getChunk().
|
inline |
Definition at line 151 of file ImageChunk.h.
References SourceXtractor::ImageChunk< T >::m_stride, x, and y.
|
private |
Definition at line 160 of file ImageChunk.h.
Referenced by SourceXtractor::UniversalImageChunk< T >::at(), SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk(), SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk(), SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk(), and SourceXtractor::UniversalImageChunk< T >::UniversalImageChunk().