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);
122 inline bool IsMask()
const;
182 void Get(cpl_size width,
197 bool Get(cpl_size width,
198 cpl_size height)
const;
211 void Set(cpl_size row,
239 friend std::ostream&
operator<<(std::ostream &os,
const Mask &mask);
This class is C++ wrapper for a CPL image object. It provides a simplified interface that allows to c...
Definition: image.hpp:43
virtual ~Mask()
Class destructor.
Definition: mask.cpp:110
bool operator!=(const Mask &) const
Overload operator !=.
Definition: mask.cpp:216
bool operator==(const Mask &) const
Overload operator==.
Definition: mask.cpp:189
friend std::ostream & operator<<(std::ostream &os, const Mask &mask)
Mask()
Class constructor.
Definition: mask.cpp:26
This class handle the errors produced by the calling of image processing routines.
Definition: error.hpp:34
cpl_size GetHeight() const
Get mask height.
void * GetMaskPtr() const
Get pointer to mask data.
cpl_size GetWidth() const
Get mask width.
bool IsMask() const
Check is CPL mask is not null.
void Get(cpl_size width, cpl_size height, bool *value) const
Get value of an element in the mask.
Definition: mask.cpp:124
cpl_mask * GetCplMask() const
Get CPL mask pointer.
Mask & operator=(const Mask &)
Overload operator=.
Definition: mask.cpp:175
This class is C++ wrapper for a CPL mask object. It provides a simplified interface that allows to ca...
Definition: mask.hpp:37
void Set(cpl_size row, cpl_size col, bool value)
Set an element value in the mask.
Definition: mask.cpp:156
void SetCplMask(cpl_mask *mask)
Set CPL mask.
cpl_mask * m_cpl_mask
Definition: mask.hpp:252