UWARG Computer Vision
|
Abstract class providing an interface to modify images before edge detection is applied. More...
#include <filter.h>
Public Member Functions | |
virtual cv::Mat * | filter (const cv::Mat &src)=0 |
run the filter on a given image More... | |
void | setParameter (std::string param, int value) |
Sets parameter in internal map. More... | |
Protected Attributes | |
std::map< std::string, int > * | parameters |
Abstract class providing an interface to modify images before edge detection is applied.
Any particular Filter will be run only once on each image, allowing incremental data to be gathered by a Filter.
|
pure virtual |
run the filter on a given image
Filters should be implemented to enhance potential targets in the image so that they can be more easily picked up by an edge detector and supress other features of the image The filter should not make decisions on what constitutes a target. Any unusual object in the frame should be considered a target for the purposes of the filter
Implemented in KMeansFilter.
void Filter::setParameter | ( | std::string | param, |
int | value | ||
) |
Sets parameter in internal map.
These parameters are used for doing on the fly adjustments to a filter during testing. There is no guarantee that a given filter will use any given parameter.