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

Mirrors an image in both X and Y axes. More...

#include <MirrorImage.h>

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

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
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< MirrorImage< T > > create (Args &&... args)

Protected Member Functions

 MirrorImage (std::shared_ptr< const Image< T > > img)

Private Attributes

std::shared_ptr< const Image< T > > m_img

Additional Inherited Members

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

Detailed Description

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

Mirrors an image in both X and Y axes.

Definition at line 37 of file MirrorImage.h.

Constructor & Destructor Documentation

◆ MirrorImage()

template<typename T>
SourceXtractor::MirrorImage< T >::MirrorImage ( std::shared_ptr< const Image< T > > img)
inlineexplicitprotected

Definition at line 39 of file MirrorImage.h.

References m_img.

Referenced by create().

Member Function Documentation

◆ create()

template<typename T>
template<typename... Args>
std::shared_ptr< MirrorImage< T > > SourceXtractor::MirrorImage< T >::create ( Args &&... args)
inlinestatic

Definition at line 44 of file MirrorImage.h.

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

Referenced by SourceXtractor::BgConvolutionImageSource::BgConvolutionImageSource().

Here is the call graph for this function:

◆ getChunk()

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

◆ getHeight()

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

Returns the height of the image in pixels.

Implements SourceXtractor::Image< T >.

Definition at line 56 of file MirrorImage.h.

References m_img.

◆ getRepr()

template<typename T>
std::string SourceXtractor::MirrorImage< T >::getRepr ( ) const
inlineoverridevirtual

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

Implements SourceXtractor::Image< T >.

Definition at line 48 of file MirrorImage.h.

References m_img.

◆ getWidth()

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

Returns the width of the image in pixels.

Implements SourceXtractor::Image< T >.

Definition at line 52 of file MirrorImage.h.

References m_img.

Member Data Documentation

◆ m_img

template<typename T>
std::shared_ptr<const Image<T> > SourceXtractor::MirrorImage< T >::m_img
private

Definition at line 74 of file MirrorImage.h.

Referenced by getChunk(), getHeight(), getRepr(), getWidth(), and MirrorImage().


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