SourceXtractorPlusPlus  0.10
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 | Protected Attributes | List of all members
SourceXtractor::BufferedImage< T > Class Template Reference

#include <BufferedImage.h>

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

Public Member Functions

virtual ~BufferedImage ()=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...
 
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
 
- 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
< BufferedImage< T > > 
create (std::shared_ptr< const ImageSource< T >> source, std::shared_ptr< TileManager > tile_manager=TileManager::getInstance())
 

Protected Member Functions

 BufferedImage (std::shared_ptr< const ImageSource< T >> source, std::shared_ptr< TileManager > tile_manager)
 
void copyOverlappingPixels (const ImageTile< T > &tile, std::vector< T > &output, int x, int y, int w, int h, int tile_w, int tile_h) const
 

Protected Attributes

std::shared_ptr< const
ImageSource< T > > 
m_source
 
std::shared_ptr< TileManagerm_tile_manager
 
std::shared_ptr< ImageTile< T > > m_current_tile
 

Additional Inherited Members

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

Detailed Description

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

Definition at line 39 of file BufferedImage.h.

Constructor & Destructor Documentation

template<typename T >
SourceXtractor::BufferedImage< T >::BufferedImage ( std::shared_ptr< const ImageSource< T >>  source,
std::shared_ptr< TileManager tile_manager 
)
protected

Definition at line 28 of file BufferedImage.cpp.

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

Member Function Documentation

template<typename T >
void SourceXtractor::BufferedImage< T >::copyOverlappingPixels ( const ImageTile< T > &  tile,
std::vector< T > &  output,
int  x,
int  y,
int  w,
int  h,
int  tile_w,
int  tile_h 
) const
protected

Definition at line 114 of file BufferedImage.cpp.

References SourceXtractor::ImageTile< T >::getPosX(), SourceXtractor::ImageTile< T >::getPosY(), SourceXtractor::ImageTile< T >::getValue(), std::max(), std::min(), x, and y.

Here is the call graph for this function:

template<typename T >
std::shared_ptr< BufferedImage< T > > SourceXtractor::BufferedImage< T >::create ( std::shared_ptr< const ImageSource< T >>  source,
std::shared_ptr< TileManager tile_manager = TileManager::getInstance() 
)
static
template<typename T >
std::shared_ptr< ImageChunk< T > > SourceXtractor::BufferedImage< T >::getChunk ( int  x,
int  y,
int  width,
int  height 
) const
overridevirtual

Reimplemented from SourceXtractor::ImageBase< T >.

Definition at line 70 of file BufferedImage.cpp.

References SourceXtractor::ImageChunk< T >::create(), SourceXtractor::UniversalImageChunk< T >::create(), and std::move().

Here is the call graph for this function:

template<typename T >
int SourceXtractor::BufferedImage< T >::getHeight ( ) const
overridevirtual

Returns the height of the image in pixels.

Implements SourceXtractor::Image< T >.

Definition at line 64 of file BufferedImage.cpp.

Referenced by SourceXtractor::WriteableBufferedImage< T >::setValue().

template<typename T >
std::string SourceXtractor::BufferedImage< T >::getRepr ( ) const
overridevirtual

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

Implements SourceXtractor::Image< T >.

Definition at line 41 of file BufferedImage.cpp.

template<typename T >
T SourceXtractor::BufferedImage< T >::getValue ( int  x,
int  y 
) const
overridevirtual

Returns the value of the pixel with the coordinates (x,y)

Implements SourceXtractor::Image< T >.

Definition at line 46 of file BufferedImage.cpp.

template<typename T >
int SourceXtractor::BufferedImage< T >::getWidth ( ) const
overridevirtual

Returns the width of the image in pixels.

Implements SourceXtractor::Image< T >.

Definition at line 58 of file BufferedImage.cpp.

Referenced by SourceXtractor::WriteableBufferedImage< T >::setValue().

Member Data Documentation

template<typename T >
std::shared_ptr<ImageTile<T> > SourceXtractor::BufferedImage< T >::m_current_tile
mutableprotected
template<typename T >
std::shared_ptr<const ImageSource<T> > SourceXtractor::BufferedImage< T >::m_source
protected

Definition at line 64 of file BufferedImage.h.

template<typename T >
std::shared_ptr<TileManager> SourceXtractor::BufferedImage< T >::m_tile_manager
protected

Definition at line 65 of file BufferedImage.h.


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