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

#include <ImageTile.h>

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

Public Member Functions

 ImageTileWithType (int x, int y, int width, int height, std::shared_ptr< ImageSource > source)
virtual ~ImageTileWithType ()
int getTileMemorySize () const override
void * getDataPtr () override
const std::shared_ptr< VectorImage< T > > & getImage () const
template<typename U>
void getValueImpl (int x, int y, U &value) const
template<typename U>
void setValueImpl (int x, int y, U value)
void getValue (int x, int y, float &value) const override
void getValue (int x, int y, double &value) const override
void getValue (int x, int y, int &value) const override
void getValue (int x, int y, unsigned int &value) const override
void getValue (int x, int y, std::int64_t &value) const override
void setValue (int x, int y, float value) override
void setValue (int x, int y, double value) override
void setValue (int x, int y, int value) override
void setValue (int x, int y, unsigned int value) override
void setValue (int x, int y, std::int64_t value) override
Public Member Functions inherited from SourceXtractor::ImageTile
virtual ~ImageTile ()=default
bool isPixelInTile (int x, int y) const
int getPosX () const
int getPosY () const
int getWidth () const
int getHeight () const
template<typename T>
getValue (int x, int y) const
void setModified (bool modified)
bool isModified () const
void saveIfModified ()
ImageType getType () const

Private Attributes

std::shared_ptr< VectorImage< T > > m_tile_image

Additional Inherited Members

Public Types inherited from SourceXtractor::ImageTile
enum  ImageType {
  AutoType =-1 , FloatImage =0 , DoubleImage , IntImage ,
  UIntImage , LongLongImage
}
Static Public Member Functions inherited from SourceXtractor::ImageTile
static std::shared_ptr< ImageTilecreate (ImageType image_type, int x, int y, int width, int height, std::shared_ptr< ImageSource > source=nullptr)
static ImageType getTypeValue (float)
static ImageType getTypeValue (double)
static ImageType getTypeValue (int)
static ImageType getTypeValue (unsigned int)
static ImageType getTypeValue (std::int64_t)
static size_t getTypeSize (ImageType image_type)
Protected Member Functions inherited from SourceXtractor::ImageTile
 ImageTile (ImageType image_type, int x, int y, int width, int height, std::shared_ptr< ImageSource > source=nullptr)
 ImageTile (const ImageTile &)=delete
 ImageTile (ImageTile &&)=delete
ImageTileoperator= (const ImageTile &)=delete
ImageTileoperator= (ImageTile &&)=delete
Protected Attributes inherited from SourceXtractor::ImageTile
bool m_modified
ImageType m_image_type
std::shared_ptr< ImageSourcem_source
int m_x
int m_y
int m_max_x
int m_max_y

Detailed Description

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

Definition at line 158 of file ImageTile.h.

Constructor & Destructor Documentation

◆ ImageTileWithType()

template<typename T>
SourceXtractor::ImageTileWithType< T >::ImageTileWithType ( int x,
int y,
int width,
int height,
std::shared_ptr< ImageSource > source )
inline

◆ ~ImageTileWithType()

template<typename T>
virtual SourceXtractor::ImageTileWithType< T >::~ImageTileWithType ( )
inlinevirtual

Definition at line 166 of file ImageTile.h.

References SourceXtractor::ImageTile::saveIfModified().

Here is the call graph for this function:

Member Function Documentation

◆ getDataPtr()

template<typename T>
void * SourceXtractor::ImageTileWithType< T >::getDataPtr ( )
inlineoverridevirtual

Implements SourceXtractor::ImageTile.

Definition at line 174 of file ImageTile.h.

References m_tile_image.

◆ getImage()

◆ getTileMemorySize()

template<typename T>
int SourceXtractor::ImageTileWithType< T >::getTileMemorySize ( ) const
inlineoverridevirtual

Implements SourceXtractor::ImageTile.

Definition at line 170 of file ImageTile.h.

References SourceXtractor::ImageTile::getHeight(), and SourceXtractor::ImageTile::getWidth().

Here is the call graph for this function:

◆ getValue() [1/5]

template<typename T>
void SourceXtractor::ImageTileWithType< T >::getValue ( int x,
int y,
double & value ) const
inlineoverridevirtual

Implements SourceXtractor::ImageTile.

Definition at line 198 of file ImageTile.h.

References getValueImpl().

Here is the call graph for this function:

◆ getValue() [2/5]

template<typename T>
void SourceXtractor::ImageTileWithType< T >::getValue ( int x,
int y,
float & value ) const
inlineoverridevirtual

Implements SourceXtractor::ImageTile.

Definition at line 194 of file ImageTile.h.

References getValueImpl().

Referenced by SourceXtractor::BufferedImage< T >::copyOverlappingPixels().

Here is the call graph for this function:

◆ getValue() [3/5]

template<typename T>
void SourceXtractor::ImageTileWithType< T >::getValue ( int x,
int y,
int & value ) const
inlineoverridevirtual

Implements SourceXtractor::ImageTile.

Definition at line 202 of file ImageTile.h.

References getValueImpl().

Here is the call graph for this function:

◆ getValue() [4/5]

template<typename T>
void SourceXtractor::ImageTileWithType< T >::getValue ( int x,
int y,
std::int64_t & value ) const
inlineoverridevirtual

Implements SourceXtractor::ImageTile.

Definition at line 210 of file ImageTile.h.

References getValueImpl().

Here is the call graph for this function:

◆ getValue() [5/5]

template<typename T>
void SourceXtractor::ImageTileWithType< T >::getValue ( int x,
int y,
unsigned int & value ) const
inlineoverridevirtual

Implements SourceXtractor::ImageTile.

Definition at line 206 of file ImageTile.h.

References getValueImpl().

Here is the call graph for this function:

◆ getValueImpl()

template<typename T>
template<typename U>
void SourceXtractor::ImageTileWithType< T >::getValueImpl ( int x,
int y,
U & value ) const
inline

Definition at line 183 of file ImageTile.h.

References SourceXtractor::ImageTile::isPixelInTile(), m_tile_image, SourceXtractor::ImageTile::m_x, and SourceXtractor::ImageTile::m_y.

Referenced by getValue(), getValue(), getValue(), getValue(), and getValue().

Here is the call graph for this function:

◆ setValue() [1/5]

template<typename T>
void SourceXtractor::ImageTileWithType< T >::setValue ( int x,
int y,
double value )
inlineoverridevirtual

Implements SourceXtractor::ImageTile.

Definition at line 218 of file ImageTile.h.

References setValueImpl().

Here is the call graph for this function:

◆ setValue() [2/5]

template<typename T>
void SourceXtractor::ImageTileWithType< T >::setValue ( int x,
int y,
float value )
inlineoverridevirtual

Implements SourceXtractor::ImageTile.

Definition at line 214 of file ImageTile.h.

References setValueImpl().

Referenced by SourceXtractor::BgDFTConvolutionImageSource::generateTile().

Here is the call graph for this function:

◆ setValue() [3/5]

template<typename T>
void SourceXtractor::ImageTileWithType< T >::setValue ( int x,
int y,
int value )
inlineoverridevirtual

Implements SourceXtractor::ImageTile.

Definition at line 222 of file ImageTile.h.

References setValueImpl().

Here is the call graph for this function:

◆ setValue() [4/5]

template<typename T>
void SourceXtractor::ImageTileWithType< T >::setValue ( int x,
int y,
std::int64_t value )
inlineoverridevirtual

Implements SourceXtractor::ImageTile.

Definition at line 230 of file ImageTile.h.

References setValueImpl().

Here is the call graph for this function:

◆ setValue() [5/5]

template<typename T>
void SourceXtractor::ImageTileWithType< T >::setValue ( int x,
int y,
unsigned int value )
inlineoverridevirtual

Implements SourceXtractor::ImageTile.

Definition at line 226 of file ImageTile.h.

References setValueImpl().

Here is the call graph for this function:

◆ setValueImpl()

template<typename T>
template<typename U>
void SourceXtractor::ImageTileWithType< T >::setValueImpl ( int x,
int y,
U value )
inline

Definition at line 189 of file ImageTile.h.

References SourceXtractor::ImageTile::isPixelInTile(), m_tile_image, SourceXtractor::ImageTile::m_x, and SourceXtractor::ImageTile::m_y.

Referenced by setValue(), setValue(), setValue(), setValue(), and setValue().

Here is the call graph for this function:

Member Data Documentation

◆ m_tile_image

template<typename T>
std::shared_ptr<VectorImage<T> > SourceXtractor::ImageTileWithType< T >::m_tile_image
private

Definition at line 235 of file ImageTile.h.

Referenced by getDataPtr(), getImage(), getValueImpl(), ImageTileWithType(), and setValueImpl().


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