00001 #ifndef FACE_CONTOUR_DETECTOR_FILTERS_DELETESHORTLINES_H_ 00002 #define FACE_CONTOUR_DETECTOR_FILTERS_DELETESHORTLINES_H_ 00003 00004 #include <face_contour_detector/filters/Filter.h> 00005 #include <face_contour_detector/filters/Parameter.h> 00006 #include <vector> 00007 #include <string> 00008 #include <opencv/cv.h> 00009 00010 namespace face_contour_detector { 00011 namespace filters { 00013 class DeleteShortLines : public Filter { 00014 public: 00015 DeleteShortLines(); 00016 00017 virtual std::vector<filters::Parameter> GetParameters(); 00018 virtual void Apply(const cv::Mat& input, cv::Mat& result); 00019 virtual void ResetParameters(); 00020 virtual const std::string& GetFilterName(); 00021 protected: 00022 int m_minNumPixels; 00023 //static 00024 static std::string m_filterName; 00025 }; 00026 } 00027 } 00028 00029 #endif /* FACE_CONTOUR_DETECTOR_FILTERS_DELETESHORTLINES_H_ */