|
HDK
|
#include <imageio.h>
Public Member Functions | |
| constexpr | ROI () noexcept |
| constexpr | ROI (int xbegin, int xend, int ybegin, int yend, int zbegin=0, int zend=1, int chbegin=0, int chend=10000) noexcept |
| constexpr bool | defined () const noexcept |
| Is a region defined? More... | |
| constexpr int | nchannels () const noexcept |
| constexpr imagesize_t | npixels () const noexcept |
| Total number of pixels in the region. More... | |
| constexpr bool | contains (int x, int y, int z=0, int ch=0) const noexcept |
| Test if the coordinate is within the ROI. More... | |
| constexpr bool | contains (const ROI &other) const noexcept |
| Test if another ROI is entirely within our ROI. More... | |
Spatial size functions. | |
The width, height, and depth of the region. | |
| constexpr int | width () const noexcept |
| Height. More... | |
| constexpr int | height () const noexcept |
| Width. More... | |
| constexpr int | depth () const noexcept |
Static Public Member Functions | |
| static constexpr ROI | All () noexcept |
Public Attributes | |
ROI data members | |
The data members are: int xbegin, xend, ybegin, yend, zbegin, zend; int chbegin, chend; These describe the spatial extent [xbegin,xend) x [ybegin,yend) x [zbegin,zend) And the channel extent: [chbegin,chend)] | |
| int | xbegin |
| int | xend |
| int | ybegin |
| int | yend |
| int | zbegin |
| int | zend |
| int | chbegin |
| int | chend |
Friends | |
| constexpr bool | operator== (const ROI &a, const ROI &b) noexcept |
| Test equality of two ROIs. More... | |
| constexpr bool | operator!= (const ROI &a, const ROI &b) noexcept |
| Test inequality of two ROIs. More... | |
| std::ostream & | operator<< (std::ostream &out, const ROI &roi) |
| Stream output of the range. More... | |
ROI is a small helper struct describing a rectangular region of interest in an image. The region is [xbegin,xend) x [begin,yend) x [zbegin,zend), with the "end" designators signifying one past the last pixel in each dimension, a la STL style.
|
inlinenoexcept |
|
inlinestaticnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
friend |