SourceXtractorPlusPlus  0.13
Please provide a description of the project.
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SourceXtractor::ImageChunk< T > Class Template Reference

#include <ImageChunk.h>

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

Public Member Functions

virtual ~ImageChunk ()
 
std::string getRepr () const override
 
getValue (int x, int y) const final
 Returns the value of the pixel with the coordinates (x,y) More...
 
int getWidth () const final
 Returns the width of the image chunk in pixels. More...
 
int getHeight () const final
 Returns the height of the image chunk in pixels. More...
 
virtual std::shared_ptr< ImageChunk< T > > getChunk (int x, int y, int width, int height) const override
 

Static Public Member Functions

static std::shared_ptr< ImageChunk< T > > create (const T *data, int width, int height, int stride, std::shared_ptr< const Image< T >> image=nullptr)
 

Protected Member Functions

 ImageChunk (const T *data, int width, int height, int stride, std::shared_ptr< const Image< T >> image=nullptr)
 

Protected Attributes

const T * m_data
 
int m_stride
 
int m_width
 
int m_height
 
std::shared_ptr< const Image< T > > m_image
 

Detailed Description

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

Definition at line 34 of file ImageChunk.h.

Constructor & Destructor Documentation

◆ ImageChunk()

template<typename T >
SourceXtractor::ImageChunk< T >::ImageChunk ( const T *  data,
int  width,
int  height,
int  stride,
std::shared_ptr< const Image< T >>  image = nullptr 
)
inlineprotected

Definition at line 36 of file ImageChunk.h.

◆ ~ImageChunk()

template<typename T >
virtual SourceXtractor::ImageChunk< T >::~ImageChunk ( )
inlinevirtual

Definition at line 49 of file ImageChunk.h.

Member Function Documentation

◆ create()

template<typename T >
static std::shared_ptr<ImageChunk<T> > SourceXtractor::ImageChunk< T >::create ( const T *  data,
int  width,
int  height,
int  stride,
std::shared_ptr< const Image< T >>  image = nullptr 
)
inlinestatic

◆ getChunk()

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

Definition at line 72 of file ImageChunk.h.

References SourceXtractor::ImageChunk< T >::create(), SourceXtractor::ImageChunk< T >::m_data, SourceXtractor::ImageChunk< T >::m_stride, x, and y.

Here is the call graph for this function:

◆ getHeight()

template<typename T >
int SourceXtractor::ImageChunk< T >::getHeight ( ) const
inlinefinal

Returns the height of the image chunk in pixels.

Definition at line 68 of file ImageChunk.h.

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

◆ getRepr()

template<typename T >
std::string SourceXtractor::ImageChunk< T >::getRepr ( ) const
inlineoverride

Definition at line 52 of file ImageChunk.h.

References SourceXtractor::ImageChunk< T >::m_height, SourceXtractor::ImageChunk< T >::m_image, SourceXtractor::ImageChunk< T >::m_width, and std::to_string().

Here is the call graph for this function:

◆ getValue()

template<typename T >
T SourceXtractor::ImageChunk< T >::getValue ( int  x,
int  y 
) const
inlinefinal

◆ getWidth()

template<typename T >
int SourceXtractor::ImageChunk< T >::getWidth ( ) const
inlinefinal

Returns the width of the image chunk in pixels.

Definition at line 63 of file ImageChunk.h.

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

Member Data Documentation

◆ m_data

template<typename T >
const T* SourceXtractor::ImageChunk< T >::m_data
protected

◆ m_height

template<typename T >
int SourceXtractor::ImageChunk< T >::m_height
protected

◆ m_image

template<typename T >
std::shared_ptr<const Image<T> > SourceXtractor::ImageChunk< T >::m_image
protected

Definition at line 81 of file ImageChunk.h.

Referenced by SourceXtractor::ImageChunk< T >::getRepr().

◆ m_stride

template<typename T >
int SourceXtractor::ImageChunk< T >::m_stride
protected

◆ m_width

template<typename T >
int SourceXtractor::ImageChunk< T >::m_width
protected

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