SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
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 >:
Collaboration diagram for SourceXtractor::ProcessedImage< T, P >:

Public Member Functions

virtual ~ProcessedImage ()=default
 Destructor.
std::string getRepr () const override
 Get a string identifying this image in a human readable manner.
int getWidth () const override
 Returns the width of the image in pixels.
int getHeight () const override
 Returns the height of the image in pixels.
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.
std::shared_ptr< ImageChunk< T > > getChunk (const PixelCoordinate &start, const PixelCoordinate &end) const
bool isInside (int x, int y) const
 Returns true if the given coordinates are inside the image bounds.

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 36 of file ProcessedImage.h.

Constructor & Destructor Documentation

◆ ProcessedImage()

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

◆ ~ProcessedImage()

template<typename T, typename P>
virtual SourceXtractor::ProcessedImage< T, P >::~ProcessedImage ( )
virtualdefault

Destructor.

Member Function Documentation

◆ create() [1/2]

template<typename T, typename P>
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

Definition at line 53 of file ProcessedImage.h.

◆ create() [2/2]

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

Definition at line 58 of file ProcessedImage.h.

◆ getChunk()

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

Implements SourceXtractor::Image< T >.

Definition at line 75 of file ProcessedImage.h.

◆ getHeight()

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 71 of file ProcessedImage.h.

◆ getRepr()

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 63 of file ProcessedImage.h.

◆ getWidth()

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 67 of file ProcessedImage.h.

Member Data Documentation

◆ m_image_a

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

Definition at line 89 of file ProcessedImage.h.

◆ m_image_b

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

Definition at line 90 of file ProcessedImage.h.


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