UWARG Computer Vision
filter.h
Go to the documentation of this file.
1 
16 #ifndef FILTER_H_INCLUDED
17 #define FILTER_H_INCLUDED
18 
19 #include <opencv2/core/core.hpp>
20 #include <map>
21 #include <string>
22 
23 
31 class Filter {
32 public:
33  Filter();
34  virtual ~Filter();
35 
48  virtual cv::Mat * filter(const cv::Mat & src) = 0;
49 
57  void setParameter(std::string param, int value);
58 
59 protected:
60  std::map<std::string, int> * parameters;
61 };
62 
63 #endif // FILTER_H_INCLUDED
virtual cv::Mat * filter(const cv::Mat &src)=0
run the filter on a given image
Abstract class providing an interface to modify images before edge detection is applied.
Definition: filter.h:31
void setParameter(std::string param, int value)
Sets parameter in internal map.
Definition: filter.cpp:25