Type:
ImageSize represents the width and height of an image. Horizontal dimensions range between 0 and width-1, and vertical dimensions range between 0 and height-1 |
ImageSize | (void) ; |
Construct null ImageSize |
ImageSize | (unsigned int w, unsigned int h) ; |
Construct ImageSize with specified width and height |
ImageSize | (const ImageSize& is) ; |
Construct ImageSize given another ImageSize |
void reset | () ; |
Reset dimensions to zero width and height |
unsigned int elements | () const ; |
Return the corresponding number of pixels |
unsigned int iwidth | () const ; |
Return the image width |
unsigned int iheight | () const ; |
Return the image height |
bool operator== | (const ImageSize& is) const ; |
Equality test |
bool operator!= | (const ImageSize& is) const ; |
Inequality test |
bool null | () ; |
Test for null dimensions (zero width and height) |
void transpose | () ; |
Transpose the dimensions (width become height and vice versa) |
bool withinbounds | (const PixelIndex& pi) const ; |
Test whether a PixelIndex lies within the bounds of the image dimensions |
bool boundary | (const PixelIndex& pi) const ; |
Test whether a PixelIndex lies on any of the image boundaries |
bool leftboundary | (const PixelIndex& pi) const ; |
Test whether a PixelIndex lies on the left side boundary |
bool topboundary | (const PixelIndex& pi) const ; |
Test whether a PixelIndex lies on the top boundary |
bool rightboundary | (const PixelIndex& pi) const ; |
Test whether a PixelIndex lies on the right side boundary |
bool bottomboundary | (const PixelIndex& pi) const ; |
Test whether a PixelIndex lies on the bottom boundary |