SourceXtractorPlusPlus 0.22
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SourceXtractor::PaddedImage< T, nullptr > Class Template Reference

#include <PaddedImage.h>

Inheritance diagram for SourceXtractor::PaddedImage< T, nullptr >:
Collaboration diagram for SourceXtractor::PaddedImage< T, nullptr >:

Public Member Functions

std::string getRepr () const override
 Get a string identifying this image in a human readable manner.
 
int getWidth () const override
 Returns the width of the image in pixels.
 
int getHeight () const override
 Returns the height of the image in pixels.
 
std::shared_ptr< ImageChunk< T > > getChunk (int x, int y, int width, int height) const override
 
std::string getRepr () const override
 Get a string identifying this image in a human readable manner.
 
int getWidth () const override
 Returns the width of the image in pixels.
 
int getHeight () const override
 Returns the height of the image 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< PaddedImage< T, nullptr > > create (Args &&... args)
 
static std::shared_ptr< PaddedImage< T, CoordinateInterpolation > > create (Args &&... args)
 

Protected Member Functions

 PaddedImage (std::shared_ptr< const Image< T > > img, int width, int height, T default_value)
 
 PaddedImage (std::shared_ptr< const Image< T > > img, int width, int height)
 
 PaddedImage (std::shared_ptr< const Image< T > > img, int width, int height)
 

Private Attributes

std::shared_ptr< const Image< T > > m_img
 
int m_width
 
int m_height
 
int m_lpad
 
int m_tpad
 
m_default
 
std::shared_ptr< const Image< T > > m_img
 
int m_width
 
int m_height
 
int m_lpad
 
int m_tpad
 

Additional Inherited Members

- Public Types inherited from SourceXtractor::Image< T >
using PixelType = T
 

Detailed Description

template<typename T>
class SourceXtractor::PaddedImage< T, nullptr >

Definition at line 128 of file PaddedImage.h.

Constructor & Destructor Documentation

◆ PaddedImage() [1/3]

template<typename T>
SourceXtractor::PaddedImage< T, nullptr >::PaddedImage ( std::shared_ptr< const Image< T > > img,
int width,
int height,
T default_value )
inlineprotected

Definition at line 130 of file PaddedImage.h.

References m_default, m_height, m_img, m_lpad, m_tpad, and m_width.

Referenced by create(), and PaddedImage().

◆ PaddedImage() [2/3]

template<typename T>
SourceXtractor::PaddedImage< T, nullptr >::PaddedImage ( std::shared_ptr< const Image< T > > img,
int width,
int height )
inlineprotected

Definition at line 139 of file PaddedImage.h.

References PaddedImage().

Here is the call graph for this function:

◆ PaddedImage() [3/3]

SourceXtractor::PaddedImage< T, CoordinateInterpolation >::PaddedImage ( std::shared_ptr< const Image< T > > img,
int width,
int height )
inlineprotected

Definition at line 78 of file PaddedImage.h.

Member Function Documentation

◆ create() [1/2]

static std::shared_ptr< PaddedImage< T, CoordinateInterpolation > > SourceXtractor::PaddedImage< T, CoordinateInterpolation >::create ( Args &&... args)
inlinestatic

Definition at line 89 of file PaddedImage.h.

◆ create() [2/2]

template<typename T>
template<typename... Args>
static std::shared_ptr< PaddedImage< T, nullptr > > SourceXtractor::PaddedImage< T, nullptr >::create ( Args &&... args)
inlinestatic

Definition at line 144 of file PaddedImage.h.

References std::forward(), and PaddedImage().

Here is the call graph for this function:

◆ getChunk() [1/2]

std::shared_ptr< ImageChunk< T > > SourceXtractor::PaddedImage< T, CoordinateInterpolation >::getChunk ( int x,
int y,
int width,
int height ) const
inlineoverridevirtual

Implements SourceXtractor::Image< T >.

Definition at line 105 of file PaddedImage.h.

◆ getChunk() [2/2]

template<typename T>
std::shared_ptr< ImageChunk< T > > SourceXtractor::PaddedImage< T, nullptr >::getChunk ( int x,
int y,
int width,
int height ) const
inlineoverridevirtual

◆ getHeight() [1/2]

int SourceXtractor::PaddedImage< T, CoordinateInterpolation >::getHeight ( ) const
inlineoverridevirtual

Returns the height of the image in pixels.

Implements SourceXtractor::Image< T >.

Definition at line 101 of file PaddedImage.h.

◆ getHeight() [2/2]

template<typename T>
int SourceXtractor::PaddedImage< T, nullptr >::getHeight ( ) const
inlineoverridevirtual

Returns the height of the image in pixels.

Implements SourceXtractor::Image< T >.

Definition at line 156 of file PaddedImage.h.

References m_height.

◆ getRepr() [1/2]

std::string SourceXtractor::PaddedImage< T, CoordinateInterpolation >::getRepr ( ) const
inlineoverridevirtual

Get a string identifying this image in a human readable manner.

Implements SourceXtractor::Image< T >.

Definition at line 93 of file PaddedImage.h.

◆ getRepr() [2/2]

template<typename T>
std::string SourceXtractor::PaddedImage< T, nullptr >::getRepr ( ) const
inlineoverridevirtual

Get a string identifying this image in a human readable manner.

Implements SourceXtractor::Image< T >.

Definition at line 148 of file PaddedImage.h.

References m_img.

◆ getWidth() [1/2]

int SourceXtractor::PaddedImage< T, CoordinateInterpolation >::getWidth ( ) const
inlineoverridevirtual

Returns the width of the image in pixels.

Implements SourceXtractor::Image< T >.

Definition at line 97 of file PaddedImage.h.

◆ getWidth() [2/2]

template<typename T>
int SourceXtractor::PaddedImage< T, nullptr >::getWidth ( ) const
inlineoverridevirtual

Returns the width of the image in pixels.

Implements SourceXtractor::Image< T >.

Definition at line 152 of file PaddedImage.h.

References m_width.

Member Data Documentation

◆ m_default

template<typename T>
T SourceXtractor::PaddedImage< T, nullptr >::m_default
private

Definition at line 186 of file PaddedImage.h.

Referenced by getChunk(), and PaddedImage().

◆ m_height [1/2]

int SourceXtractor::PaddedImage< T, CoordinateInterpolation >::m_height
private

Definition at line 122 of file PaddedImage.h.

◆ m_height [2/2]

template<typename T>
int SourceXtractor::PaddedImage< T, nullptr >::m_height
private

Definition at line 184 of file PaddedImage.h.

Referenced by getHeight(), and PaddedImage().

◆ m_img [1/2]

std::shared_ptr<const Image<T> > SourceXtractor::PaddedImage< T, CoordinateInterpolation >::m_img
private

Definition at line 121 of file PaddedImage.h.

◆ m_img [2/2]

template<typename T>
std::shared_ptr<const Image<T> > SourceXtractor::PaddedImage< T, nullptr >::m_img
private

Definition at line 183 of file PaddedImage.h.

Referenced by getChunk(), getRepr(), and PaddedImage().

◆ m_lpad [1/2]

int SourceXtractor::PaddedImage< T, CoordinateInterpolation >::m_lpad
private

Definition at line 123 of file PaddedImage.h.

◆ m_lpad [2/2]

template<typename T>
int SourceXtractor::PaddedImage< T, nullptr >::m_lpad
private

Definition at line 185 of file PaddedImage.h.

Referenced by getChunk(), and PaddedImage().

◆ m_tpad [1/2]

int SourceXtractor::PaddedImage< T, CoordinateInterpolation >::m_tpad
private

Definition at line 123 of file PaddedImage.h.

◆ m_tpad [2/2]

template<typename T>
int SourceXtractor::PaddedImage< T, nullptr >::m_tpad
private

Definition at line 185 of file PaddedImage.h.

Referenced by getChunk(), and PaddedImage().

◆ m_width [1/2]

int SourceXtractor::PaddedImage< T, CoordinateInterpolation >::m_width
private

Definition at line 122 of file PaddedImage.h.

◆ m_width [2/2]

template<typename T>
int SourceXtractor::PaddedImage< T, nullptr >::m_width
private

Definition at line 184 of file PaddedImage.h.

Referenced by getWidth(), and PaddedImage().


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