#include <mi_recognition.hh>
Inheritance diagram for mi_recognition:
Public Member Functions | |
mi_recognition (const mimas::mm_xml_reference< XalanElement > &configuration, bool _verbose) | |
Constructor. | |
void | recognise (const mimas::mm_image< unsigned char > &image, double timestamp, mi_scene_ptr scene) const |
Perform recognition/tracking. | |
calibration_ptr | get_calibration (void) |
Access calibration object. | |
std::map< std::string, mi_object_type_ptr > & | get_object_types (void) |
Access list with types of micro-objects. | |
virtual bool | human_vision (const std::string &type, const mimas::mm_image< unsigned char > &image, double timestamp, double *angle, int *x, int *y) const |
Human vision. | |
Protected Member Functions | |
void | remove_objects (const std::string &method, mi_scene_ptr scene) const |
Remove some objects from the tracking-list. | |
void | reschedule (const std::string &method, mi_scene_ptr scene) const |
Remove some objects from the tracking-list. | |
void | take_best_matches (std::vector< match > &matches, double timestamp, mi_scene_ptr scene, vision_type method) const |
Take best recognition-results. | |
Protected Attributes | |
calibration_ptr | calib |
Calibration object. | |
std::map< std::string, recognition_method_ptr > | methods |
Initial recognition. | |
std::map< std::string, mi_object_type_ptr > | object_types |
General information about the different type of micro-objects. | |
bool | verbose |
The recognition class hides the use of different recognition- and tracking-methods from the calling program.
This class is part of the public interface.
|
Constructor. Initialise the recognition algorithms and the database of micro-objects.
|
|
Access calibration object. Get access to parameters of camera-calibration
|
|
Access list with types of micro-objects. A map is returned, which maps strings on pointers to mi_object_type objects.
|
|
Human vision. Recognise objects using a human. If you want to recognise an object with human-vision, you need to override this method and modify the configuration-file (see f.e. gripper.xml).
|
|
Perform recognition/tracking.
The micro-objects known to the
|
|
Remove some objects from the tracking-list. All entries of micro-objects being tracked with a specific vision-method are removed.
|
|
Remove some objects from the tracking-list. All entries of micro-objects being tracked/recognised with a specific vision-method are rescheduled for recognition and removed from the tracking-list.
|
|
Take best recognition-results.
|