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::RecenterImage< T > Class Template Reference

Changes the center of an image, wrapping it around the edges. More...

#include <RecenterImage.h>

Inheritance diagram for SourceXtractor::RecenterImage< T >:
[legend]
Collaboration diagram for SourceXtractor::RecenterImage< 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
< RecenterImage< T > > 
create (Args &&...args)
 

Protected Member Functions

 RecenterImage (std::shared_ptr< const Image< T >> img, const PixelCoordinate &new_center)
 

Private Attributes

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

Additional Inherited Members

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

Detailed Description

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

Changes the center of an image, wrapping it around the edges.

Definition at line 35 of file RecenterImage.h.

Constructor & Destructor Documentation

template<typename T >
SourceXtractor::RecenterImage< T >::RecenterImage ( std::shared_ptr< const Image< T >>  img,
const PixelCoordinate new_center 
)
inlineprotected

Definition at line 37 of file RecenterImage.h.

Member Function Documentation

template<typename T >
template<typename... Args>
static std::shared_ptr<RecenterImage<T> > SourceXtractor::RecenterImage< T >::create ( Args &&...  args)
inlinestatic
template<typename T >
int SourceXtractor::RecenterImage< T >::getHeight ( ) const
inlineoverridevirtual

Returns the height of the image in pixels.

Implements SourceXtractor::Image< T >.

Definition at line 55 of file RecenterImage.h.

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

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

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

Implements SourceXtractor::Image< T >.

Definition at line 47 of file RecenterImage.h.

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

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

Returns the width of the image in pixels.

Implements SourceXtractor::Image< T >.

Definition at line 51 of file RecenterImage.h.

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

Member Data Documentation

template<typename T >
PixelCoordinate SourceXtractor::RecenterImage< T >::m_center
private

Definition at line 67 of file RecenterImage.h.

Referenced by SourceXtractor::RecenterImage< T >::getValue().

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

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