msl 1.3.0
Loading...
Searching...
No Matches
iPATMask.h
Go to the documentation of this file.
1// Copyright 2026 Julien Lamy, ICube, Université de Strasbourg-CNRS.
2// Part of msl, distributed under the terms of the MIT license.
3
4#ifndef _0e6dd41f_29b1_46a6_8410_54c18d43154e
5#define _0e6dd41f_29b1_46a6_8410_54c18d43154e
6
7#include <MrProtSrv/Domain/MrProtData/MrProt/MrProt.h>
8
9#include "msl/MaskBase.h"
10#include "msl/Mask.h"
11
12namespace msl
13{
14
15namespace iPAT
16{
17
20{
21 Disabled = 0,
22 Image = 1,
23 Reference = 2,
24 ImageAndReference = (1 | 2)
25};
26}
27
29class iPATMask: public MaskBase<iPAT::Status>
30{
31public:
33 iPATMask(Shape const & shape={}, iPAT::Status value=iPAT::Disabled);
34
36 iPATMask(Mask const & mask);
37
38 iPATMask(iPATMask const &) = default;
39 iPATMask(iPATMask &&) = default;
40 iPATMask & operator=(iPATMask const &) = default;
41 iPATMask & operator=(iPATMask &&) = default;
42 ~iPATMask() override = default;
43
46
49
52};
53
55std::ostream & operator<<(std::ostream & stream, iPATMask const & mask);
56
57}
58
59#endif // _0e6dd41f_29b1_46a6_8410_54c18d43154e
Shape const & shape() const
std::vector< Point > Points
Definition MaskBase.h:25
MaskBase(Shape const &shape={}, iPAT::Status value=iPAT::Status())
Vector2l Shape
Definition MaskBase.h:22
A two dimensional binary mask.
Definition Mask.h:16
A two dimensional indicator of iPAT status.
Definition iPATMask.h:30
Points referencePoints() const
Return a vector of reference points (including image and reference points).
iPATMask(Mask const &mask)
Create an Image mask from a binary mask.
Points enabledPoints() const
Return a vector of points which are not disabled.
iPATMask(Shape const &shape={}, iPAT::Status value=iPAT::Disabled)
Create a constant mask.
Points imagePoints() const
Return a vector of image points (including image and reference points).
Status
iPAT status: disabled, image, reference, or both
Definition iPATMask.h:20
Top-level namespace of the msl library.
Definition acceleration.h:17
std::ostream & operator<<(std::ostream &stream, iPATMask const &mask)
Visual representation of the mask.