SourceXtractorPlusPlus 0.19.2
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
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 >:
Inheritance graph
[legend]
Collaboration diagram for SourceXtractor::BufferedImage< T >:
Collaboration graph
[legend]

Public Member Functions

virtual ~BufferedImage ()=default
 
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.
 
virtual std::string getRepr () const =0
 Get a string identifying this image in a human readable manner.
 
virtual int getWidth () const =0
 Returns the width of the image in pixels.
 
virtual int getHeight () const =0
 Returns the height of the image in pixels.
 
virtual std::shared_ptr< ImageChunk< T > > getChunk (int x, int y, int width, int height) const =0
 
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< BufferedImage< T > > create (std::shared_ptr< const ImageSource > source, std::shared_ptr< TileManager > tile_manager=TileManager::getInstance())
 

Protected Member Functions

 BufferedImage (std::shared_ptr< const ImageSource > source, std::shared_ptr< TileManager > tile_manager)
 
void copyOverlappingPixels (const ImageTileWithType< 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 ImageSourcem_source
 
std::shared_ptr< TileManagerm_tile_manager
 

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

◆ BufferedImage()

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

Definition at line 26 of file BufferedImage.cpp.

◆ ~BufferedImage()

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

Member Function Documentation

◆ copyOverlappingPixels()

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

◆ create()

template<typename T >
std::shared_ptr< BufferedImage< T > > SourceXtractor::BufferedImage< T >::create ( std::shared_ptr< const ImageSource source,
std::shared_ptr< TileManager tile_manager = TileManager::getInstance() 
)
static

◆ getChunk()

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

Implements SourceXtractor::Image< T >.

Definition at line 57 of file BufferedImage.cpp.

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

Here is the call graph for this function:

◆ getHeight()

template<typename T >
int SourceXtractor::BufferedImage< T >::getHeight
overridevirtual

Returns the height of the image in pixels.

Implements SourceXtractor::Image< T >.

Definition at line 51 of file BufferedImage.cpp.

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

◆ getRepr()

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 39 of file BufferedImage.cpp.

◆ getWidth()

template<typename T >
int SourceXtractor::BufferedImage< T >::getWidth
overridevirtual

Returns the width of the image in pixels.

Implements SourceXtractor::Image< T >.

Definition at line 45 of file BufferedImage.cpp.

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

Member Data Documentation

◆ m_source

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

Definition at line 61 of file BufferedImage.h.

◆ m_tile_manager

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

Definition at line 62 of file BufferedImage.h.


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