INFO702 - TPs
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Image2D< TValue > Class Template Reference

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)
 

Detailed Description

template<typename TValue>
class Image2D< TValue >

Classe générique pour représenter des images 2D.

Definition at line 8 of file Image2D.hpp.

Member Typedef Documentation

◆ Container

template<typename TValue >
typedef std::vector<Value> Image2D< TValue >::Container

Definition at line 12 of file Image2D.hpp.

◆ Self

template<typename TValue >
typedef Image2D<TValue> Image2D< TValue >::Self

Definition at line 10 of file Image2D.hpp.

◆ Value

template<typename TValue >
typedef TValue Image2D< TValue >::Value

Definition at line 11 of file Image2D.hpp.

Member Function Documentation

◆ at() [1/2]

template<typename TValue >
Value & Image2D< TValue >::at ( int  i,
int  j 
)

Accesseur read-write à la valeur d'un pixel.

Returns
une référence à la valeur du pixel(i,j)

◆ at() [2/2]

template<typename TValue >
Value Image2D< TValue >::at ( int  i,
int  j 
) const

Accesseur read-only à la valeur d'un pixel.

Returns
la valeur du pixel(i,j)

◆ h()

template<typename TValue >
int Image2D< TValue >::h ( ) const
Returns
la hauteur de l'image.

◆ w()

template<typename TValue >
int Image2D< TValue >::w ( ) const
Returns
la largeur de l'image.

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