13#error This is a C++ include file and cannot be used from plain C
56 explicit Mask(cpl_size width, cpl_size height);
107 explicit Mask(
const Image &image,
double lo_cut,
double hi_cut);
182 void Get(cpl_size width,
197 bool Get(cpl_size width,
198 cpl_size height)
const;
211 void Set(cpl_size row,
This class handle the errors produced by the calling of image processing routines.
Definition error.hpp:35
This class is C++ wrapper for a CPL image object. It provides a simplified interface that allows to c...
Definition image.hpp:44
This class is C++ wrapper for a CPL mask object. It provides a simplified interface that allows to ca...
Definition mask.hpp:38
bool IsMask() const
Check is CPL mask is not null.
void SetCplMask(cpl_mask *mask)
Set CPL mask.
cpl_size GetHeight() const
Get mask height.
bool operator==(const Mask &) const
Overload operator==.
Definition mask.cpp:179
cpl_mask * m_cpl_mask
Definition mask.hpp:252
bool operator!=(const Mask &) const
Overload operator !=.
Definition mask.cpp:206
void Set(cpl_size row, cpl_size col, bool value)
Set an element value in the mask.
Definition mask.cpp:148
cpl_mask * GetCplMask() const
Get CPL mask pointer.
cpl_size GetWidth() const
Get mask width.
Mask & operator=(const Mask &)
Overload operator=.
Definition mask.cpp:166
void Get(cpl_size width, cpl_size height, bool *value) const
Get value of an element in the mask.
Definition mask.cpp:118
friend std::ostream & operator<<(std::ostream &os, const Mask &mask)
Mask()
Class constructor.
Definition mask.cpp:25
virtual ~Mask()
Class destructor.
Definition mask.cpp:105
void * GetMaskPtr() const
Get pointer to mask data.