|
msl 1.3.0
|
A two dimensional indicator of iPAT status.
#include <iPATMask.h>
Public Member Functions | |
| iPATMask (Shape const &shape={}, iPAT::Status value=iPAT::Disabled) | |
| Create a constant mask. | |
| iPATMask (Mask const &mask) | |
| Create an Image mask from a binary mask. | |
| iPATMask (iPATMask const &)=default | |
| iPATMask (iPATMask &&)=default | |
| iPATMask & | operator= (iPATMask const &)=default |
| iPATMask & | operator= (iPATMask &&)=default |
| Points | imagePoints () const |
| Return a vector of image points (including image and reference points). | |
| Points | referencePoints () const |
| Return a vector of reference points (including image and reference points). | |
| Points | enabledPoints () const |
| Return a vector of points which are not disabled. | |
| Public Member Functions inherited from msl::MaskBase< iPAT::Status > | |
| MaskBase (Shape const &shape={}, iPAT::Status value=iPAT::Status()) | |
| Create a constant mask. | |
| MaskBase & | operator= (MaskBase const &)=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 (iPAT::Status value) |
| Fill all points of mask with value. | |
| iPAT::Status const & | operator[] (Point const &p) const |
| Read-only access to a mask item. | |
Additional Inherited Members | |
| Public Types inherited from msl::MaskBase< iPAT::Status > | |
| using | Point |
| 2D point, as (column, row), (x, y) or (ky,kz) | |
| using | Shape |
| Shape of the mask, as (column, row), (x, y) or (ky,kz). | |
| using | Points |
| Container of Point. | |
| Static Public Member Functions inherited from msl::MaskBase< iPAT::Status > | |
| 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. | |
| Protected Member Functions inherited from msl::MaskBase< iPAT::Status > | |
| std::size_t | _index (Point const &p) const |
| Return the linear index corresponding to a point. | |
| Protected Attributes inherited from msl::MaskBase< iPAT::Status > | |
| Shape | _shape |
| Shape of the mask. | |
| std::vector< iPAT::Status > | _mask |
| Linear container of mask points. | |