mi_scene Class Reference
[Public interface]

A scene keeps track of the recognised micro-objects. More...

#include <mi_scene.hh>

Inheritance diagram for mi_scene:

Inheritance graph
[legend]
Collaboration diagram for mi_scene:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 mi_scene (void)
 Constructor.
std::vector< mi_object_instance_ptr > & get_objects (void)
 Gain access to list of micro-objects.
const std::vector< mi_object_instance_ptr > & get_objects (void) const
 Same as above (but const).
void add_job (const std::string &name, int maxNum)
 Add a recognition task.
std::map< std::string, int > & get_jobs (void)
 Access job-list.

Protected Attributes

std::vector< mi_object_instance_ptrobjects
 List of micro-objects.
std::map< std::string, int > jobs
 List of recognition-jobs.

Detailed Description

A scene keeps track of the recognised micro-objects.

This object is used for exchanging data between the vision-system and the calling program. mi_recognition objects must store all information in this object, which is required for the later recognition-steps.

This class is part of the public interface.

See also:
mi_recognition

mi_recognition::recognise

Author:
Jan Wedekind (j.wedekind@shu.ac.uk)


Constructor & Destructor Documentation

mi_scene::mi_scene void   )  [inline]
 

Constructor.

Constructs an empty scene.


Member Function Documentation

void mi_scene::add_job const std::string &  name,
int  maxNum
 

Add a recognition task.

A job to recognise a new object is being specified. The recognition-job will only be attempted once. Afterwards it has to be added again.

If there are two conflicting specifications for the same type of micro-object, the first one will be overriden.

Parameters:
maxNum Maximum number of instances to be expected.
name Name of type of micro-object.
See also:
mi_recognition::object_types

mi_recognition::recognise

std::vector< mi_object_instance_ptr >& mi_scene::get_objects void   )  [inline]
 

Gain access to list of micro-objects.

This list of objects contains the micro-objects, which are being tracked at the moment. If a object shouldn't be tracked any more, it has to be removed by the calling program.

Returns:
List of micro-objects.
See also:
mi_object_instance


Member Data Documentation

std::map< std::string, int > mi_scene::jobs [protected]
 

List of recognition-jobs.

This is the list of recognition-jobs to be attempted on the next image.

std::vector< mi_object_instance_ptr > mi_scene::objects [protected]
 

List of micro-objects.

This is the list of micro-object being tracked at the moment.

See also:
mi_object_instance


The documentation for this class was generated from the following file:
doxygen-1.4.5 documentation for micron-vision - Tue Jan 17 15:29:15 2006