SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SourceXtractor::Image< T > Class Template Referenceabstract

Interface representing an image. More...

#include <Image.h>

Inheritance diagram for SourceXtractor::Image< T >:

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.

Detailed Description

template<typename T>
class SourceXtractor::Image< T >

Interface representing an image.

Template Parameters
Tthe type of the pixel values

Definition at line 44 of file Image.h.

Member Typedef Documentation

◆ PixelType

template<typename T>
using SourceXtractor::Image< T >::PixelType = T

Definition at line 48 of file Image.h.

Constructor & Destructor Documentation

◆ ~Image()

template<typename T>
virtual SourceXtractor::Image< T >::~Image ( )
virtualdefault

Destructor.

Member Function Documentation

◆ getChunk() [1/2]

template<typename T>
std::shared_ptr< ImageChunk< T > > SourceXtractor::Image< T >::getChunk ( const PixelCoordinate & start,
const PixelCoordinate & end ) const
inline

Definition at line 66 of file Image.h.

◆ getChunk() [2/2]

template<typename T>
virtual std::shared_ptr< ImageChunk< T > > SourceXtractor::Image< T >::getChunk ( int x,
int y,
int width,
int height ) const
pure virtual

◆ getHeight()

template<typename T>
virtual int SourceXtractor::Image< T >::getHeight ( ) const
pure virtual

Returns the height of the image in pixels.

Implemented in SourceXtractor::BufferedImage< T >, SourceXtractor::ConstantImage< T >, SourceXtractor::FunctionalImage< T, I >, SourceXtractor::ImageAccessor< T >, SourceXtractor::ImageAccessor< WriteableInterfaceType::PixelType >, SourceXtractor::ImageChunk< T >, SourceXtractor::ImageChunk< WriteableInterfaceType::PixelType >, SourceXtractor::LockedWriteableImage< T >, SourceXtractor::MaskedImage< T, M, Operator >, SourceXtractor::MirrorImage< T >, SourceXtractor::PaddedImage< T, CoordinateInterpolation >, SourceXtractor::PaddedImage< DetectionImage::PixelType >, SourceXtractor::PaddedImage< T, nullptr >, SourceXtractor::ProcessedImage< T, P >, SourceXtractor::ProcessedImage< T, MultiplyOperation< T > >, SourceXtractor::ProcessedImage< T, SnrOperation< T > >, SourceXtractor::ProcessedImage< T, SubtractOperation< T > >, 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 >, and SourceXtractor::VectorImage< WeightImage::PixelType >.

Referenced by SourceXtractor::fillCutout(), SourceXtractor::BFSSegmentation::getTiles(), SourceXtractor::Image< SeFloat >::isInside(), SourceXtractor::Lutz::labelImage(), SourceXtractor::ImageMode< T >::processCell(), SourceXtractor::VectorImage< SourceXtractor::SeFloat >::VectorImage(), and SourceXtractor::FitsWriter::writeFile().

◆ getRepr()

◆ getWidth()

template<typename T>
virtual int SourceXtractor::Image< T >::getWidth ( ) const
pure virtual

Returns the width of the image in pixels.

Implemented in SourceXtractor::BufferedImage< T >, SourceXtractor::ConstantImage< T >, SourceXtractor::FunctionalImage< T, I >, SourceXtractor::ImageAccessor< T >, SourceXtractor::ImageAccessor< WriteableInterfaceType::PixelType >, SourceXtractor::ImageChunk< T >, SourceXtractor::ImageChunk< WriteableInterfaceType::PixelType >, SourceXtractor::LockedWriteableImage< T >, SourceXtractor::MaskedImage< T, M, Operator >, SourceXtractor::MirrorImage< T >, SourceXtractor::PaddedImage< T, CoordinateInterpolation >, SourceXtractor::PaddedImage< DetectionImage::PixelType >, SourceXtractor::PaddedImage< T, nullptr >, SourceXtractor::ProcessedImage< T, P >, SourceXtractor::ProcessedImage< T, MultiplyOperation< T > >, SourceXtractor::ProcessedImage< T, SnrOperation< T > >, SourceXtractor::ProcessedImage< T, SubtractOperation< T > >, 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 >, and SourceXtractor::VectorImage< WeightImage::PixelType >.

Referenced by SourceXtractor::fillCutout(), SourceXtractor::BFSSegmentation::getTiles(), SourceXtractor::Image< SeFloat >::isInside(), SourceXtractor::Lutz::labelImage(), SourceXtractor::ImageMode< T >::processCell(), SourceXtractor::VectorImage< SourceXtractor::SeFloat >::VectorImage(), and SourceXtractor::FitsWriter::writeFile().

◆ isInside()

template<typename T>
bool SourceXtractor::Image< T >::isInside ( int x,
int y ) const
inline

Returns true if the given coordinates are inside the image bounds.

Definition at line 73 of file Image.h.

Referenced by SourceXtractor::Image< SeFloat >::getChunk(), and SourceXtractor::getMirrorPixel().


The documentation for this class was generated from the following file: