12#error This is a C++ include file and cannot be used from plain C
55 explicit Mask(cpl_size width, cpl_size height);
106 explicit Mask(
const Image &image,
double lo_cut,
double hi_cut);
181 void Get(cpl_size width,
196 bool Get(cpl_size width,
197 cpl_size height)
const;
210 void Set(cpl_size row,
This class handle the errors produced by the calling of image processing routines.
Definition error.hpp:34
This class is C++ wrapper for a CPL image object. It provides a simplified interface that allows to c...
Definition image.hpp:41
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:177
cpl_mask * m_cpl_mask
Definition mask.hpp:251
bool operator!=(const Mask &) const
Overload operator !=.
Definition mask.cpp:204
void Set(cpl_size row, cpl_size col, bool value)
Set an element value in the mask.
Definition mask.cpp:146
cpl_mask * GetCplMask() const
Get CPL mask pointer.
cpl_size GetWidth() const
Get mask width.
Mask & operator=(const Mask &)
Overload operator=.
Definition mask.cpp:164
void Get(cpl_size width, cpl_size height, bool *value) const
Get value of an element in the mask.
Definition mask.cpp:116
friend std::ostream & operator<<(std::ostream &os, const Mask &mask)
Mask()
Class constructor.
Definition mask.cpp:23
virtual ~Mask()
Class destructor.
Definition mask.cpp:103
void * GetMaskPtr() const
Get pointer to mask data.
Array class source file.
Definition array.cpp:14