Resolution Struct Reference

Structure containing the width and height of an image. More...

Functions

 Resolution (size_t w_=0, size_t h_=0)
 Default constructor. More...
 
size_t area () const
 Returns the area (width * height) of the image. More...
 
bool operator== (const Resolution &that) const
 Tests if the given sl::Resolution has the same properties. More...
 
bool operator!= (const Resolution &that) const
 Tests if the given sl::Resolution has different properties. More...
 

Attributes

size_t width
 Width of the image in pixels. More...
 
size_t height
 Height of the image in pixels. More...
 

Detailed Description

Structure containing the width and height of an image.

Constructor and Destructor

◆ Resolution()

Resolution ( size_t  w_ = 0,
size_t  h_ = 0 
)
inline

Default constructor.

Functions

◆ area()

size_t area ( ) const
inline

Returns the area (width * height) of the image.

◆ operator==()

bool operator== ( const Resolution that) const
inline

Tests if the given sl::Resolution has the same properties.

Returns
True if the sizes matches.

◆ operator!=()

bool operator!= ( const Resolution that) const
inline

Tests if the given sl::Resolution has different properties.

Returns
True if the sizes are not equal.

Variables

◆ width

◆ height