38 #ifndef PCL_FEATURES_MASK_MAP 39 #define PCL_FEATURES_MASK_MAP 42 #include <pcl/pcl_macros.h> 51 MaskMap (
size_t width,
size_t height);
55 resize (
size_t width,
size_t height);
66 inline const unsigned char*
70 getDifferenceMask (
const MaskMap & mask0,
75 set (
const size_t x,
const size_t y)
77 data_[y*width_+x] = 255;
81 unset (
const size_t x,
const size_t y)
83 data_[y*width_+x] = 0;
87 isSet (
const size_t x,
const size_t y)
const 89 return (data_[y*width_+x] != 0);
95 memset (&data_[0], 0, width_*height_);
98 inline unsigned char &
99 operator() (
const size_t x,
const size_t y)
101 return (data_[y*width_+x]);
104 inline const unsigned char &
105 operator() (
const size_t x,
const size_t y)
const 107 return (data_[y*width_+x]);
111 erode (
MaskMap & eroded_mask)
const;
115 std::vector<unsigned char> data_;
const unsigned char * getData() const
unsigned char * getData()
bool isSet(const size_t x, const size_t y) const
void unset(const size_t x, const size_t y)