#include <IntImage.hh>
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 |
IntImage & | operator= (const IntImage &image) |
|
Default Constructor. Creates an empty image |
|
Copy Constructor. |
|
Size Constructor. Creates an image of arbitrary dimensions
|
|
Destructor |
|
begin of image
|
|
end of image
|
|
height of the image
|
|
unchecked access to a pixel (two-dimensional position)
|
|
operator=
|
|
operator[]
|
|
resize image to width*height. If it has already this size, nothing is done
|
|
size of the image (number of pixels)
|
|
width of the image
|