template<typename T>
class msl::MaskBase< T >
Base class for masks, boolean and non-boolean.
|
|
| MaskBase (Shape const &shape={}, T value=T()) |
| | Create a constant mask.
|
|
| MaskBase (MaskBase const &)=default |
|
| MaskBase (MaskBase &&)=default |
|
MaskBase & | operator= (MaskBase const &)=default |
|
MaskBase & | operator= (MaskBase &&)=default |
|
std::size_t | size () const |
| | Return the total number of points in the mask.
|
|
Shape const & | shape () const |
| | Return the shape of the mask.
|
|
void | fill (T value) |
| | Fill all points of mask with value.
|
| T const & | operator[] (Point const &p) const |
| | Read-only access to a mask item.
|
| T & | operator[] (Point const &p) |
| | Read/write access to a mask item.
|
|
|
static bool | lessX (Point const &p, Point const &q) |
| | Compare points according to their x coordinate.
|
|
static bool | lessKy (Point const &p, Point const &q) |
| | Compare points according to their ky coordinate.
|
|
static bool | lessY (Point const &p, Point const &q) |
| | Compare points according to their y coordinate.
|
|
static bool | lessKz (Point const &p, Point const &q) |
| | Compare points according to their kz coordinate.
|