Img2Num C++ (Internal Developer Docs)  dev
API Documentation
ImageLib::Image< PixelT > Class Template Reference
+ Collaboration diagram for ImageLib::Image< PixelT >:

Public Types

using iter = typename std::vector< PixelT >::iterator
 
using const_iter = typename std::vector< PixelT >::const_iterator
 

Public Member Functions

 Image (int width, int height, PixelT fill=PixelT())
 
template<typename ConverterT >
void loadFromBuffer (const uint8_t *buffer, int width, int height, PixelConverter< ConverterT > converter)
 
void fill (const PixelT &color)
 
iter begin ()
 
iter end ()
 
const_iter begin () const
 
const_iter end () const
 
int getWidth () const
 
int getHeight () const
 
int getPixelCount () const
 
int getSize () const
 
const std::vector< PixelT > & getData () const
 
const PixelT & getPixel (int x, int y) const
 
PixelT & getPixel (int x, int y)
 
void setPixel (int x, int y, const PixelT &p)
 
PixelT & operator[] (int idx)
 
const PixelT & operator[] (int idx) const
 
PixelT & operator() (int x, int y)
 
const PixelT & operator() (int x, int y) const
 

Private Member Functions

int index (int x, int y) const
 

Private Attributes

std::vector< PixelT > data
 
int width
 
int height
 

Detailed Description

template<typename PixelT>
class ImageLib::Image< PixelT >

Definition at line 14 of file Image.h.


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