Fawkes API  Fawkes Development Version
firevision::SimpleColorClassifier Class Reference

Simple classifier. More...

#include <>>

Inheritance diagram for firevision::SimpleColorClassifier:

List of all members.

Public Member Functions

 SimpleColorClassifier (ScanlineModel *scanline_model, ColorModel *color_model, unsigned int min_num_points=6, unsigned int box_extent=50, bool upward=false, unsigned int neighbourhood_min_match=8, unsigned int grow_by=10, color_t color=C_ORANGE)
 Constructor.
virtual std::list< ROI > * classify ()
 Classify image.
virtual void get_mass_point_of_color (ROI *roi, fawkes::point_t *massPoint)
 Get mass point of primary color.

Detailed Description

Simple classifier.


Constructor & Destructor Documentation

firevision::SimpleColorClassifier::SimpleColorClassifier ( ScanlineModel scanline_model,
ColorModel color_model,
unsigned int  min_num_points = 6,
unsigned int  box_extent = 50,
bool  upward = false,
unsigned int  neighbourhood_min_match = 8,
unsigned int  grow_by = 10,
color_t  color = C_ORANGE 
)

Constructor.

Parameters:
scanline_modelscanline model
color_modelcolor model
min_num_pointsminimum number of points in ROI to be considered
box_extentbasic extent of a new ROI
upwardset to true if you have an upward scanline model, this means that points are traversed from the bottom to the top. In this case the ROIs are initially extended towards the top instead of the bottom.
neighbourhood_min_matchminimum number of object pixels to grow neighbourhood
grow_bygrow region by that many pixels
colorcolor to look for

Definition at line 58 of file simple.cpp.


Member Function Documentation

std::list< ROI > * firevision::SimpleColorClassifier::classify ( ) [virtual]
void firevision::SimpleColorClassifier::get_mass_point_of_color ( ROI roi,
fawkes::point_t massPoint 
) [virtual]

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