SourceXtractorPlusPlus  0.14
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::ProcessedImage< T, P > Class Template Reference

Processes two images to create a third combining them by using any function. More...

#include <ProcessedImage.h>

Inheritance diagram for SourceXtractor::ProcessedImage< T, P >:
[legend]
Collaboration diagram for SourceXtractor::ProcessedImage< T, P >:
[legend]

Public Member Functions

virtual ~ProcessedImage ()=default
 Destructor. More...
 
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...
 
std::shared_ptr< ImageChunk< T > > getChunk (int x, int y, int width, int height) const override
 
- Public Member Functions inherited from SourceXtractor::ImageBase< T >
virtual ~ImageBase ()
 
- 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

static std::shared_ptr
< ProcessedImage< T, P > > 
create (std::shared_ptr< const Image< T >> image_a, std::shared_ptr< const Image< T >> image_b)
 
static std::shared_ptr
< ProcessedImage< T, P > > 
create (std::shared_ptr< const Image< T >> image_a, T value)
 

Protected Member Functions

 ProcessedImage (std::shared_ptr< const Image< T >> image_a, std::shared_ptr< const Image< T >> image_b)
 

Private Attributes

std::shared_ptr< const Image< T > > m_image_a
 
std::shared_ptr< const Image< T > > m_image_b
 

Additional Inherited Members

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

Detailed Description

template<typename T, typename P>
class SourceXtractor::ProcessedImage< T, P >

Processes two images to create a third combining them by using any function.

Definition at line 37 of file ProcessedImage.h.

Constructor & Destructor Documentation

template<typename T , typename P >
SourceXtractor::ProcessedImage< T, P >::ProcessedImage ( std::shared_ptr< const Image< T >>  image_a,
std::shared_ptr< const Image< T >>  image_b 
)
inlineprotected
template<typename T , typename P >
virtual SourceXtractor::ProcessedImage< T, P >::~ProcessedImage ( )
virtualdefault

Destructor.

Member Function Documentation

template<typename T , typename P >
static std::shared_ptr<ProcessedImage<T, P> > SourceXtractor::ProcessedImage< T, P >::create ( std::shared_ptr< const Image< T >>  image_a,
std::shared_ptr< const Image< T >>  image_b 
)
inlinestatic
template<typename T , typename P >
static std::shared_ptr<ProcessedImage<T, P> > SourceXtractor::ProcessedImage< T, P >::create ( std::shared_ptr< const Image< T >>  image_a,
value 
)
inlinestatic

Definition at line 59 of file ProcessedImage.h.

References SourceXtractor::ConstantImage< T >::create().

Here is the call graph for this function:

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

Reimplemented from SourceXtractor::ImageBase< T >.

Definition at line 81 of file ProcessedImage.h.

References SourceXtractor::VectorImage< T >::create(), SourceXtractor::UniversalImageChunk< T >::create(), ModelFitting::height, SourceXtractor::ProcessedImage< T, P >::m_image_a, SourceXtractor::ProcessedImage< T, P >::m_image_b, std::move(), and ModelFitting::width.

Here is the call graph for this function:

template<typename T , typename P >
int SourceXtractor::ProcessedImage< T, P >::getHeight ( ) const
inlineoverridevirtual

Returns the height of the image in pixels.

Implements SourceXtractor::Image< T >.

Definition at line 77 of file ProcessedImage.h.

References SourceXtractor::ProcessedImage< T, P >::m_image_a.

template<typename T , typename P >
std::string SourceXtractor::ProcessedImage< T, P >::getRepr ( ) const
inlineoverridevirtual

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

Implements SourceXtractor::Image< T >.

Definition at line 64 of file ProcessedImage.h.

References SourceXtractor::ProcessedImage< T, P >::m_image_a, and SourceXtractor::ProcessedImage< T, P >::m_image_b.

template<typename T , typename P >
T SourceXtractor::ProcessedImage< T, P >::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 69 of file ProcessedImage.h.

References SourceXtractor::ProcessedImage< T, P >::m_image_a, and SourceXtractor::ProcessedImage< T, P >::m_image_b.

template<typename T , typename P >
int SourceXtractor::ProcessedImage< T, P >::getWidth ( ) const
inlineoverridevirtual

Returns the width of the image in pixels.

Implements SourceXtractor::Image< T >.

Definition at line 73 of file ProcessedImage.h.

References SourceXtractor::ProcessedImage< T, P >::m_image_a.

Member Data Documentation

template<typename T , typename P >
std::shared_ptr<const Image<T> > SourceXtractor::ProcessedImage< T, P >::m_image_a
private
template<typename T , typename P >
std::shared_ptr<const Image<T> > SourceXtractor::ProcessedImage< T, P >::m_image_b
private

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