SourceXtractorPlusPlus  0.8
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SourceXtractor::FunctionalImage< T > Class Template Reference

#include <FunctionalImage.h>

Inheritance diagram for SourceXtractor::FunctionalImage< T >:
[legend]
Collaboration diagram for SourceXtractor::FunctionalImage< T >:
[legend]

Public Types

using FunctorType = std::function< T(int x, int y)>
 
- Public Types inherited from SourceXtractor::Image< T >
using PixelType = T
 

Public Member Functions

virtual ~FunctionalImage ()=default
 
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
 
- 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
< ImageBase< T > > 
create (Args &&...args)
 

Protected Member Functions

 FunctionalImage (int width, int height, FunctorType functor)
 

Private Attributes

int m_width
 
int m_height
 
FunctorType m_functor
 

Detailed Description

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

Definition at line 31 of file FunctionalImage.h.

Member Typedef Documentation

template<typename T>
using SourceXtractor::FunctionalImage< T >::FunctorType = std::function<T(int x, int y)>

Definition at line 33 of file FunctionalImage.h.

Constructor & Destructor Documentation

template<typename T>
SourceXtractor::FunctionalImage< T >::FunctionalImage ( int  width,
int  height,
FunctorType  functor 
)
inlineprotected

Definition at line 36 of file FunctionalImage.h.

template<typename T>
virtual SourceXtractor::FunctionalImage< T >::~FunctionalImage ( )
virtualdefault

Member Function Documentation

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

Returns the height of the image in pixels.

Implements SourceXtractor::Image< T >.

Definition at line 60 of file FunctionalImage.h.

References SourceXtractor::FunctionalImage< T >::m_height.

Referenced by SourceXtractor::BgDFTConvolutionImageSource::generateTile().

template<typename T>
std::string SourceXtractor::FunctionalImage< 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 FunctionalImage.h.

References SourceXtractor::FunctionalImage< T >::m_functor, and std::function::target_type().

Here is the call graph for this function:

template<typename T>
T SourceXtractor::FunctionalImage< 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 52 of file FunctionalImage.h.

References SourceXtractor::FunctionalImage< T >::m_functor.

Referenced by SourceXtractor::BgDFTConvolutionImageSource::generateTile().

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

Returns the width of the image in pixels.

Implements SourceXtractor::Image< T >.

Definition at line 56 of file FunctionalImage.h.

References SourceXtractor::FunctionalImage< T >::m_width.

Referenced by SourceXtractor::BgDFTConvolutionImageSource::generateTile().

Member Data Documentation

template<typename T>
FunctorType SourceXtractor::FunctionalImage< T >::m_functor
private
template<typename T>
int SourceXtractor::FunctionalImage< T >::m_height
private

Definition at line 65 of file FunctionalImage.h.

Referenced by SourceXtractor::FunctionalImage< T >::getHeight().

template<typename T>
int SourceXtractor::FunctionalImage< T >::m_width
private

Definition at line 65 of file FunctionalImage.h.

Referenced by SourceXtractor::FunctionalImage< T >::getWidth().


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