INFO702 - TPs
|
Classe générique pour représenter des images 2D. More...
#include <Image2D.hpp>
Public Types | |
typedef Image2D< TValue > | Self |
typedef TValue | Value |
typedef std::vector< Value > | Container |
Public Member Functions | |
Image2D (int w, int h, Value g=Value()) | |
void | fill (Value g) |
int | w () const |
int | h () const |
Value | at (int i, int j) const |
Value & | at (int i, int j) |
Classe générique pour représenter des images 2D.
Definition at line 8 of file Image2D.hpp.
typedef std::vector<Value> Image2D< TValue >::Container |
Definition at line 12 of file Image2D.hpp.
Definition at line 10 of file Image2D.hpp.
typedef TValue Image2D< TValue >::Value |
Definition at line 11 of file Image2D.hpp.
Value & Image2D< TValue >::at | ( | int | i, |
int | j | ||
) |
Accesseur read-write à la valeur d'un pixel.
Value Image2D< TValue >::at | ( | int | i, |
int | j | ||
) | const |
Accesseur read-only à la valeur d'un pixel.
int Image2D< TValue >::h | ( | ) | const |
int Image2D< TValue >::w | ( | ) | const |