SourceXtractorPlusPlus  0.13
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
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 >:
[legend]
Collaboration diagram for SourceXtractor::MirrorImage< T >:
[legend]

Public Member Functions

std::string getRepr () const override
 Get a string identifying this image in a human readable manner. More...
 
int getWidth () const override
 Returns the width of the image in pixels. More...
 
int getHeight () const override
 Returns the height of the image in pixels. More...
 
getValue (int x, int y) const override
 Returns the value of the pixel with the coordinates (x,y) More...
 
- Public Member Functions inherited from SourceXtractor::ImageBase< T >
virtual ~ImageBase ()
 
virtual 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. More...
 
getValue (PixelCoordinate pc) const
 
bool isInside (int x, int y) const
 Returns true if the given coordinates are inside the image bounds. More...
 
- Public Member Functions inherited from std::enable_shared_from_this< ImageBase< T > >
enable_shared_from_this (T...args)
 
operator= (T...args)
 
shared_from_this (T...args)
 
~enable_shared_from_this (T...args)
 

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 35 of file MirrorImage.h.

Constructor & Destructor Documentation

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

Definition at line 37 of file MirrorImage.h.

Member Function Documentation

template<typename T >
template<typename... Args>
static std::shared_ptr<MirrorImage<T> > SourceXtractor::MirrorImage< T >::create ( Args &&...  args)
inlinestatic
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 54 of file MirrorImage.h.

References SourceXtractor::MirrorImage< T >::m_img.

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 46 of file MirrorImage.h.

References SourceXtractor::MirrorImage< T >::m_img.

template<typename T >
T SourceXtractor::MirrorImage< T >::getValue ( int  x,
int  y 
) const
inlineoverridevirtual

Returns the value of the pixel with the coordinates (x,y)

Implements SourceXtractor::Image< T >.

Definition at line 58 of file MirrorImage.h.

References SourceXtractor::MirrorImage< T >::m_img.

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 50 of file MirrorImage.h.

References SourceXtractor::MirrorImage< T >::m_img.

Member Data Documentation

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

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