iRoCS Toolbox  1.1.0
Public Types | Public Member Functions
ImageAccessWrapper Class Reference

To allow for different blitz storage formats to be handeled equally. More...

#include <ImageAccessWrapper.hh>

Collaboration diagram for ImageAccessWrapper:

Public Types

enum  ImageType { layeredRGB, layeredGray, vectRGB }
 

Public Member Functions

 ImageAccessWrapper (blitz::Array< unsigned char, 3 > &data)
 
 ImageAccessWrapper (blitz::Array< unsigned char, 2 > &data)
 
 ImageAccessWrapper (blitz::Array< blitz::TinyVector< unsigned char, 3 >, 2 > &data)
 
unsigned char * data () const
 
int getImageType () const
 
unsigned char getPixelB (int y, int x) const
 
unsigned char getPixelG (int y, int x) const
 
unsigned char getPixelR (int y, int x) const
 
int height () const
 
void resize (int y, int x)
 
void resize (blitz::TinyVector< int, 2 > &pos)
 
void setPixel (int y, int x, unsigned char R, unsigned char G, unsigned char B)
 
void setPixel (int y, int x, const BlitzRGBColor &col)
 
void setPixel (blitz::TinyVector< int, 2 > &pos, unsigned char R, unsigned char G, unsigned char B)
 
void setPixel (blitz::TinyVector< int, 2 > &pos, const BlitzRGBColor &col)
 
int width () const
 

Detailed Description

To allow for different blitz storage formats to be handeled equally.

Definition at line 45 of file ImageAccessWrapper.hh.

Member Enumeration Documentation

◆ ImageType

Enumerator
layeredRGB 
layeredGray 
vectRGB 

Definition at line 49 of file ImageAccessWrapper.hh.

Constructor & Destructor Documentation

◆ ImageAccessWrapper() [1/3]

ImageAccessWrapper::ImageAccessWrapper ( blitz::Array< unsigned char, 3 > &  data)

◆ ImageAccessWrapper() [2/3]

ImageAccessWrapper::ImageAccessWrapper ( blitz::Array< unsigned char, 2 > &  data)

◆ ImageAccessWrapper() [3/3]

ImageAccessWrapper::ImageAccessWrapper ( blitz::Array< blitz::TinyVector< unsigned char, 3 >, 2 > &  data)

Member Function Documentation

◆ setPixel() [1/4]

void ImageAccessWrapper::setPixel ( int  y,
int  x,
unsigned char  R,
unsigned char  G,
unsigned char  B 
)

◆ setPixel() [2/4]

void ImageAccessWrapper::setPixel ( int  y,
int  x,
const BlitzRGBColor col 
)

◆ setPixel() [3/4]

void ImageAccessWrapper::setPixel ( blitz::TinyVector< int, 2 > &  pos,
unsigned char  R,
unsigned char  G,
unsigned char  B 
)

◆ setPixel() [4/4]

void ImageAccessWrapper::setPixel ( blitz::TinyVector< int, 2 > &  pos,
const BlitzRGBColor col 
)

◆ resize() [1/2]

void ImageAccessWrapper::resize ( int  y,
int  x 
)

◆ resize() [2/2]

void ImageAccessWrapper::resize ( blitz::TinyVector< int, 2 > &  pos)

◆ height()

int ImageAccessWrapper::height ( ) const

◆ width()

int ImageAccessWrapper::width ( ) const

◆ getPixelR()

unsigned char ImageAccessWrapper::getPixelR ( int  y,
int  x 
) const

◆ getPixelG()

unsigned char ImageAccessWrapper::getPixelG ( int  y,
int  x 
) const

◆ getPixelB()

unsigned char ImageAccessWrapper::getPixelB ( int  y,
int  x 
) const

◆ getImageType()

int ImageAccessWrapper::getImageType ( ) const

◆ data()

unsigned char* ImageAccessWrapper::data ( ) const

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