SourceXtractorPlusPlus  0.12
Please provide a description of the project.
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SourceXtractor::PaddedImage< T, nullptr > Class Template Reference

#include <PaddedImage.h>

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

Public Member Functions

std::string getRepr () const override
 Get a string identifying this image in a human readable manner. More...
 
getValue (int x, int y) const override
 Returns the value of the pixel with the coordinates (x,y) 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...
 
- 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< PaddedImage< T, nullptr > > 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)
 

Private Attributes

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

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 117 of file PaddedImage.h.

Constructor & Destructor Documentation

◆ PaddedImage() [1/2]

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

Definition at line 119 of file PaddedImage.h.

◆ PaddedImage() [2/2]

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

Definition at line 128 of file PaddedImage.h.

Member Function Documentation

◆ create()

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

Definition at line 133 of file PaddedImage.h.

◆ getHeight()

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 152 of file PaddedImage.h.

References SourceXtractor::PaddedImage< T, CoordinateInterpolation >::m_height.

◆ getRepr()

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 137 of file PaddedImage.h.

References SourceXtractor::PaddedImage< T, CoordinateInterpolation >::m_img.

◆ getValue()

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

◆ getWidth()

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 148 of file PaddedImage.h.

References SourceXtractor::PaddedImage< T, CoordinateInterpolation >::m_width.

Member Data Documentation

◆ m_default

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

Definition at line 160 of file PaddedImage.h.

◆ m_height

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

Definition at line 158 of file PaddedImage.h.

◆ m_img

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

Definition at line 157 of file PaddedImage.h.

◆ m_lpad

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

Definition at line 159 of file PaddedImage.h.

◆ m_tpad

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

Definition at line 159 of file PaddedImage.h.

◆ m_width

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

Definition at line 158 of file PaddedImage.h.


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