UWARG Computer Vision
Public Member Functions | Protected Attributes | List of all members
Filter Class Referenceabstract

Abstract class providing an interface to modify images before edge detection is applied. More...

#include <filter.h>

Inheritance diagram for Filter:
Inheritance graph
Collaboration diagram for Filter:
Collaboration graph

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
 

Detailed Description

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.

Member Function Documentation

virtual cv::Mat* Filter::filter ( const cv::Mat &  src)
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

Returns
A pointer to a new filtered image

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.


The documentation for this class was generated from the following files: