A filter which blurs out the areas which are not in the mask Note: This class is not supported by filters::RosServices or filters::List, because filters::Parameter does not support cv::Mat as arguments (yet) More...
#include <MaskBlur.h>
Public Member Functions | |
virtual void | Apply (const cv::Mat &input, cv::Mat &output) const |
MaskBlur (int blurWidth, Bgr8 blurColor) | |
void | SetMask (const cv::Mat &mask, unsigned char maskTrue=0, unsigned char maskFalse=255) |
Private Attributes | |
Bgr8 | m_blurColor |
int | m_blurWidth |
unsigned char | m_maskFalse |
const cv::Mat * | m_maskPtr |
unsigned char | m_maskTrue |
A filter which blurs out the areas which are not in the mask Note: This class is not supported by filters::RosServices or filters::List, because filters::Parameter does not support cv::Mat as arguments (yet)
Definition at line 12 of file MaskBlur.h.
face_contour_detector::filters::MaskBlur::MaskBlur | ( | int | blurWidth, |
face_contour_detector::Bgr8 | blurColor | ||
) |
void face_contour_detector::filters::MaskBlur::Apply | ( | const cv::Mat & | input, |
cv::Mat & | output | ||
) | const [virtual] |
Applys the filter with the previous set mask
input | the input image |
output | the output image |
Definition at line 19 of file MaskBlur.cpp.
void face_contour_detector::filters::MaskBlur::SetMask | ( | const cv::Mat & | mask, |
unsigned char | maskTrue = 0 , |
||
unsigned char | maskFalse = 255 |
||
) |
Sets the pointer to the mask image
mask | the mask image (must be a 8bit mono image) |
maskTrue | the value where the mask value is true |
maskFalse | if the point in the mask has this value, this point will be blured out in the given image |
Definition at line 13 of file MaskBlur.cpp.
Definition at line 29 of file MaskBlur.h.
int face_contour_detector::filters::MaskBlur::m_blurWidth [private] |
Definition at line 28 of file MaskBlur.h.
unsigned char face_contour_detector::filters::MaskBlur::m_maskFalse [private] |
Definition at line 31 of file MaskBlur.h.
const cv::Mat* face_contour_detector::filters::MaskBlur::m_maskPtr [private] |
Definition at line 32 of file MaskBlur.h.
unsigned char face_contour_detector::filters::MaskBlur::m_maskTrue [private] |
Definition at line 30 of file MaskBlur.h.