Main Page | Class Hierarchy | Class List | File List | Class Members

IntImage Class Reference

The IntImage class is a very basic image class for storing and manipulating Int images. More...

#include <IntImage.hh>

List of all members.

Public Member Functions

 IntImage ()
 IntImage (const IntImage &image)
 IntImage (unsigned int width, unsigned int height)
 ~IntImage ()
void resize (unsigned int width, unsigned int height)
int & operator() (unsigned int x, unsigned int y)
const int & operator() (unsigned int x, unsigned int y) const
unsigned int width () const
unsigned int height () const
size_t size () const
int * begin ()
const int * begin () const
int * end ()
const int * end () const
int & operator[] (size_t n)
const int & operator[] (size_t n) const
IntImageoperator= (const IntImage &image)


Detailed Description

The IntImage class is a very basic image class for storing and manipulating Int images.


Constructor & Destructor Documentation

IntImage::IntImage  ) 
 

Default Constructor. Creates an empty image

IntImage::IntImage const IntImage image  ) 
 

Copy Constructor.

IntImage::IntImage unsigned int  width,
unsigned int  height
 

Size Constructor. Creates an image of arbitrary dimensions

Parameters:
width width of image
height height of image

IntImage::~IntImage  ) 
 

Destructor


Member Function Documentation

int* IntImage::begin  ) 
 

begin of image

Returns:
pointer to first RGBColor of image

int* IntImage::end  ) 
 

end of image

Returns:
pointer to the first RGBColor BEHIND the last RGBColor of the image

unsigned int IntImage::height  )  const
 

height of the image

Returns:
image height

int& IntImage::operator() unsigned int  x,
unsigned int  y
 

unchecked access to a pixel (two-dimensional position)

Parameters:
x horizontal pixel coordinate
y vertical pixel coordinate
Returns:
reference to the pixel at position row,col

IntImage & IntImage::operator= const IntImage image  ) 
 

operator=

Parameters:
image image to copy
Returns:
reference to modified image

int& IntImage::operator[] size_t  n  ) 
 

operator[]

Parameters:
n pixel number
Returns:
reference to RGBColor number n of image

void IntImage::resize unsigned int  width,
unsigned int  height
 

resize image to width*height. If it has already this size, nothing is done

Parameters:
width width of image
height height of image

size_t IntImage::size  )  const
 

size of the image (number of pixels)

Returns:
number of pixels

unsigned int IntImage::width  )  const
 

width of the image

Returns:
image width


The documentation for this class was generated from the following files:
Generated on Tue May 3 10:15:35 2005 by doxygen 1.3.7