w2img::ImageAttr< Attr > Class Template Reference

List of all members.

Detailed Description

template<class Attr>
class w2img::ImageAttr< Attr >

Stores attributes of each pixel in an image.

The attribute is the template argument.

Author:
Lakshman
Version:
Id
w2img_ImageAttr.h,v 1.2 2009/06/02 20:17:56 lakshman Exp


Public Member Functions

int dim_x () const
int dim_y () const
const Attr & data (int x, int y) const
Attr & data (int x, int y)
 ImageAttr (size_t numRows, size_t numCols)
 ImageAttr (size_t numRows, size_t numCols, const Attr &initVal)


Constructor & Destructor Documentation

template<class Attr>
w2img::ImageAttr< Attr >::ImageAttr ( size_t  numRows,
size_t  numCols 
) [inline]

template<class Attr>
w2img::ImageAttr< Attr >::ImageAttr ( size_t  numRows,
size_t  numCols,
const Attr &  initVal 
) [inline]


Member Function Documentation

template<class Attr>
Attr& w2img::ImageAttr< Attr >::data ( int  x,
int  y 
) [inline]

template<class Attr>
const Attr& w2img::ImageAttr< Attr >::data ( int  x,
int  y 
) const [inline]

template<class Attr>
int w2img::ImageAttr< Attr >::dim_x (  )  const [inline]

template<class Attr>
int w2img::ImageAttr< Attr >::dim_y (  )  const [inline]


Generated on Fri May 4 13:40:23 2012 for WDSS-IIw2algs by  doxygen 1.4.7