|
SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
|
Interface representing an image. More...
#include <Image.h>

Public Types | |
| using | PixelType = T |
Public Member Functions | |
| virtual | ~Image ()=default |
| Destructor. | |
| virtual std::string | getRepr () const =0 |
| Get a string identifying this image in a human readable manner. | |
| virtual int | getWidth () const =0 |
| Returns the width of the image in pixels. | |
| virtual int | getHeight () const =0 |
| Returns the height of the image in pixels. | |
| virtual std::shared_ptr< ImageChunk< T > > | getChunk (int x, int y, int width, int height) const =0 |
| 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. | |
Interface representing an image.
| T | the type of the pixel values |
| using SourceXtractor::Image< T >::PixelType = T |
|
virtualdefault |
Destructor.
|
inline |
Definition at line 66 of file Image.h.
References std::end(), SourceXtractor::Image< T >::getChunk(), SourceXtractor::Image< T >::isInside(), SourceXtractor::PixelCoordinate::m_x, and SourceXtractor::PixelCoordinate::m_y.

|
pure virtual |
Implemented in SourceXtractor::FunctionalImage< T, I >, SourceXtractor::MaskedImage< T, M, Operator >, SourceXtractor::BufferedImage< T >, SourceXtractor::ImageAccessor< T >, SourceXtractor::ImageAccessor< WriteableInterfaceType::PixelType >, SourceXtractor::ImageChunk< T >, SourceXtractor::ImageChunk< WriteableInterfaceType::PixelType >, SourceXtractor::MirrorImage< T >, SourceXtractor::PaddedImage< T, CoordinateInterpolation >, SourceXtractor::PaddedImage< T, nullptr >, SourceXtractor::ProcessedImage< T, P >, SourceXtractor::RecenterImage< T >, SourceXtractor::SubImage< T >, SourceXtractor::ThresholdedImage< T >, SourceXtractor::VectorImage< T >, SourceXtractor::VectorImage< DetectionImage::PixelType >, SourceXtractor::VectorImage< int >, SourceXtractor::VectorImage< SeFloat >, SourceXtractor::VectorImage< SourceXtractor::SeFloat >, SourceXtractor::LockedWriteableImage< T >, and SourceXtractor::ConstantImage< T >.
Referenced by SourceXtractor::Image< T >::getChunk().
|
pure virtual |
Returns the height of the image in pixels.
Implemented in SourceXtractor::ConstantImage< T >, SourceXtractor::FunctionalImage< T, I >, SourceXtractor::ImageChunk< T >, SourceXtractor::ImageChunk< WriteableInterfaceType::PixelType >, SourceXtractor::MaskedImage< T, M, Operator >, SourceXtractor::VectorImage< T >, SourceXtractor::VectorImage< DetectionImage::PixelType >, SourceXtractor::VectorImage< int >, SourceXtractor::VectorImage< SeFloat >, SourceXtractor::VectorImage< SourceXtractor::SeFloat >, SourceXtractor::BufferedImage< T >, SourceXtractor::ImageAccessor< T >, SourceXtractor::ImageAccessor< WriteableInterfaceType::PixelType >, SourceXtractor::MirrorImage< T >, SourceXtractor::PaddedImage< T, CoordinateInterpolation >, SourceXtractor::PaddedImage< T, nullptr >, SourceXtractor::ProcessedImage< T, P >, SourceXtractor::RecenterImage< T >, SourceXtractor::SubImage< T >, SourceXtractor::ThresholdedImage< T >, and SourceXtractor::LockedWriteableImage< T >.
Referenced by SourceXtractor::Image< T >::isInside().
|
pure virtual |
Get a string identifying this image in a human readable manner.
Implemented in SourceXtractor::ConstantImage< T >, SourceXtractor::FunctionalImage< T, I >, SourceXtractor::MaskedImage< T, M, Operator >, SourceXtractor::VectorImage< T >, SourceXtractor::VectorImage< DetectionImage::PixelType >, SourceXtractor::VectorImage< int >, SourceXtractor::VectorImage< SeFloat >, SourceXtractor::VectorImage< SourceXtractor::SeFloat >, SourceXtractor::BufferedImage< T >, SourceXtractor::ImageAccessor< T >, SourceXtractor::ImageAccessor< WriteableInterfaceType::PixelType >, SourceXtractor::ImageChunk< T >, SourceXtractor::ImageChunk< WriteableInterfaceType::PixelType >, SourceXtractor::MirrorImage< T >, SourceXtractor::PaddedImage< T, CoordinateInterpolation >, SourceXtractor::PaddedImage< T, nullptr >, SourceXtractor::ProcessedImage< T, P >, SourceXtractor::RecenterImage< T >, SourceXtractor::SubImage< T >, SourceXtractor::ThresholdedImage< T >, and SourceXtractor::LockedWriteableImage< T >.
|
pure virtual |
Returns the width of the image in pixels.
Implemented in SourceXtractor::ConstantImage< T >, SourceXtractor::FunctionalImage< T, I >, SourceXtractor::ImageChunk< T >, SourceXtractor::ImageChunk< WriteableInterfaceType::PixelType >, SourceXtractor::MaskedImage< T, M, Operator >, SourceXtractor::VectorImage< T >, SourceXtractor::VectorImage< DetectionImage::PixelType >, SourceXtractor::VectorImage< int >, SourceXtractor::VectorImage< SeFloat >, SourceXtractor::VectorImage< SourceXtractor::SeFloat >, SourceXtractor::BufferedImage< T >, SourceXtractor::ImageAccessor< T >, SourceXtractor::ImageAccessor< WriteableInterfaceType::PixelType >, SourceXtractor::MirrorImage< T >, SourceXtractor::PaddedImage< T, CoordinateInterpolation >, SourceXtractor::PaddedImage< T, nullptr >, SourceXtractor::ProcessedImage< T, P >, SourceXtractor::RecenterImage< T >, SourceXtractor::SubImage< T >, SourceXtractor::ThresholdedImage< T >, and SourceXtractor::LockedWriteableImage< T >.
Referenced by SourceXtractor::Image< T >::isInside().
|
inline |
Returns true if the given coordinates are inside the image bounds.
Definition at line 73 of file Image.h.
References SourceXtractor::Image< T >::getHeight(), SourceXtractor::Image< T >::getWidth(), x, and y.
Referenced by SourceXtractor::Image< T >::getChunk().
