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

#include <ProcessingImageSource.h>

Inheritance diagram for SourceXtractor::ProcessingImageSource< T >:
Collaboration diagram for SourceXtractor::ProcessingImageSource< T >:

Public Member Functions

 ProcessingImageSource (std::shared_ptr< Image< T > > image)
virtual ~ProcessingImageSource ()=default
std::shared_ptr< ImageTilegetImageTile (int x, int y, int width, int height) const override
void saveTile (ImageTile &) override
int getWidth () const override
 Returns the width of the image in pixels.
int getHeight () const override
 Returns the height of the image in pixels.
ImageTile::ImageType getType () const override
Public Member Functions inherited from SourceXtractor::ImageSource
 ImageSource ()
virtual ~ImageSource ()=default
virtual std::string getRepr () const =0
 Human readable representation of this source.
virtual const std::map< std::string, MetadataEntry > & getMetadata () const
virtual void setMetadata (const std::string &key, const MetadataEntry &value)
Public Member Functions inherited from std::enable_shared_from_this< ImageSource >
enable_shared_from_this (T... args)
operator= (T... args)
shared_from_this (T... args)
~enable_shared_from_this (T... args)

Protected Member Functions

virtual void generateTile (const std::shared_ptr< Image< T > > &image, ImageTileWithType< T > &tile, int x, int y, int width, int height) const =0
std::string getImageRepr () const

Private Attributes

std::shared_ptr< Image< T > > m_image

Detailed Description

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

Definition at line 33 of file ProcessingImageSource.h.

Constructor & Destructor Documentation

◆ ProcessingImageSource()

template<typename T>
SourceXtractor::ProcessingImageSource< T >::ProcessingImageSource ( std::shared_ptr< Image< T > > image)
inline

◆ ~ProcessingImageSource()

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

Member Function Documentation

◆ generateTile()

template<typename T>
virtual void SourceXtractor::ProcessingImageSource< T >::generateTile ( const std::shared_ptr< Image< T > > & image,
ImageTileWithType< T > & tile,
int x,
int y,
int width,
int height ) const
protectedpure virtual

◆ getHeight()

template<typename T>
int SourceXtractor::ProcessingImageSource< T >::getHeight ( ) const
inlineoverridevirtual

Returns the height of the image in pixels.

Implements SourceXtractor::ImageSource.

Definition at line 59 of file ProcessingImageSource.h.

References m_image.

◆ getImageRepr()

template<typename T>
std::string SourceXtractor::ProcessingImageSource< T >::getImageRepr ( ) const
inlineprotected

Definition at line 70 of file ProcessingImageSource.h.

References m_image.

Referenced by SourceXtractor::InterpolatedImageSource< T >::getRepr().

◆ getImageTile()

template<typename T>
std::shared_ptr< ImageTile > SourceXtractor::ProcessingImageSource< T >::getImageTile ( int x,
int y,
int width,
int height ) const
inlineoverridevirtual

Implements SourceXtractor::ImageSource.

Definition at line 40 of file ProcessingImageSource.h.

References generateTile(), m_image, std::make_shared(), and ProcessingImageSource().

Here is the call graph for this function:

◆ getType()

template<typename T>
ImageTile::ImageType SourceXtractor::ProcessingImageSource< T >::getType ( ) const
inlineoverridevirtual

Implements SourceXtractor::ImageSource.

Definition at line 63 of file ProcessingImageSource.h.

References SourceXtractor::ImageTile::getTypeValue().

Here is the call graph for this function:

◆ getWidth()

template<typename T>
int SourceXtractor::ProcessingImageSource< T >::getWidth ( ) const
inlineoverridevirtual

Returns the width of the image in pixels.

Implements SourceXtractor::ImageSource.

Definition at line 54 of file ProcessingImageSource.h.

References m_image.

◆ saveTile()

template<typename T>
void SourceXtractor::ProcessingImageSource< T >::saveTile ( ImageTile & )
inlineoverridevirtual

Implements SourceXtractor::ImageSource.

Definition at line 49 of file ProcessingImageSource.h.

Member Data Documentation

◆ m_image

template<typename T>
std::shared_ptr<Image<T> > SourceXtractor::ProcessingImageSource< T >::m_image
private

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