vision
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | List of all members
ColorRegionDetector_ParamsParser Class Reference

#include <ColorRegionDetector_ParamsParser.h>

Inheritance diagram for ColorRegionDetector_ParamsParser:
ColorRegionDetector

Classes

struct  parser_version_type
 

Public Member Functions

bool parseParams (const yarp::os::Searchable &config) override
 
std::string getDeviceClassName () const override
 
std::string getDeviceName () const override
 
std::string getDocumentationOfDeviceParams () const override
 
std::vector< std::string > getListOfParams () const override
 

Public Attributes

const std::string m_device_classname = {"ColorRegionDetector"}
 
const std::string m_device_name = {"ColorRegionDetector"}
 
bool m_parser_is_strict = false
 
const parser_version_type m_parser_version = {}
 
const std::string m_algorithm_defaultValue = {"blueMinusRed"}
 
const std::string m_morphClosing_defaultValue = {"2.0"}
 
const std::string m_threshold_defaultValue = {"55"}
 
const std::string m_maxNumBlobs_defaultValue = {"1"}
 
std::string m_algorithm = {"blueMinusRed"}
 
double m_morphClosing = {2.0}
 
int m_threshold = {55}
 
int m_maxNumBlobs = {1}
 

Detailed Description

This class is the parameters parser for class ColorRegionDetector.

These are the used parameters:

Group name Parameter name Type Units Default Value Required Description Notes
- algorithm string - blueMinusRed 0 detection algorithm redMinusGreen, redMinusBlue, greenMinusRed, greenMinusBlue, blueMinusRed, blueMinusGreen
- morphClosing double - 2.0 0 morphological closure -
- threshold int - 55 0 binarization threshold -
- maxNumBlobs int - 1 0 maximum number of blobs -

The device can be launched by yarpdev using one of the following examples (with and without all optional parameters):

yarpdev --device ColorRegionDetector --algorithm blueMinusRed --morphClosing 2.0 --threshold 55 --maxNumBlobs 1
yarpdev --device ColorRegionDetector

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