INFO702 - TPs
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
GrayLevelImage2D Class Reference

Classes

struct  Iterator
 

Public Types

typedef unsigned char GrayLevel
 
typedef std::vector< GrayLevel > Container
 

Public Member Functions

 GrayLevelImage2D (int w, int h, GrayLevel g=0)
 
void fill (GrayLevel g)
 
int w () const
 
int h () const
 
GrayLevel at (int i, int j) const
 
GrayLevel & at (int i, int j)
 
Iterator begin ()
 [gli2d-sec3]
 
Iterator end ()
 
Iterator start (int x, int y)
 
std::pair< int, int > position (Iterator it) const
 
bool importPGM (std::istream &input)
 
bool exportPGM (std::ostream &output, bool ascii=true)
 

Detailed Description

Definition at line 9 of file GrayLevelImage2D.hpp.

Member Typedef Documentation

◆ Container

typedef std::vector<GrayLevel> GrayLevelImage2D::Container

Definition at line 13 of file GrayLevelImage2D.hpp.

◆ GrayLevel

typedef unsigned char GrayLevelImage2D::GrayLevel

Definition at line 12 of file GrayLevelImage2D.hpp.

Member Function Documentation

◆ at() [1/2]

GrayLevel & GrayLevelImage2D::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]

GrayLevel GrayLevelImage2D::at ( int  i,
int  j 
) const

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

Returns
la valeur du pixel(i,j)

◆ h()

int GrayLevelImage2D::h ( ) const
Returns
la hauteur de l'image.

◆ w()

int GrayLevelImage2D::w ( ) const

[gli2d-sec3]

Returns
la largeur de l'image.

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