Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Public Types | Public Member Functions | Static Public Attributes | Private Attributes
icl::markers::Fiducial Class Reference

Main class for detected image markers/fiducials. More...

#include <Fiducial.h>

List of all members.

Classes

struct  KeyPoint
 key point structure More...

Public Types

enum  Feature {
  Center2D, Rotation2D, Corners2D, KeyPoints2D,
  ImageRegion, Center3D, Rotation3D, Pose3D,
  FeatureCount
}
 Currently supported feature types. More...
typedef std::bitset<(int)
FeatureCount
FeatureSet
 FeatureSet class.

Public Member Functions

 Fiducial (FiducialImpl *impl=0)
 private Constructor
int getID () const
 the marker ID
std::string getName () const
 returns a string representation of the marker name
bool supports (Feature f) const
 returns wheather the Marker provides given information
const utils::Point32fgetCenter2D () const
 returns the marker'S center in the image
const float & getRotation2D () const
 retrurs the marker's rotation in the image plain
const std::vector
< utils::Point32f > & 
getCorners2D () const
 returns the markers corners
const std::vector< KeyPoint > & getKeyPoints2D () const
 returns key points in the marker
const cv::ImageRegion getImageRegion () const
 returns the associated image region
const geom::VecgetCenter3D () const
 returns the markers
const geom::VecgetRotation3D () const
 returns the markers
const geom::MatgetPose3D () const
 returns the markers
 operator bool () const
 returns whether is marker has been initialized
bool operator! () const
 returns whether is marker has not been initialized
bool isNull () const
 returns whether is marker has not been initialized
bool operator== (const Fiducial &a) const
 returns whether the fiducials have the same impl
bool operator!= (const Fiducial &a) const
 returns whether the fiducials have not the same impl
FiducialImplgetImpl ()
 returns the marker's internal implementation structure
const FiducialImplgetImpl () const
 returns the marker's internal implementation structure (const)
FiducialDetectorPlugingetDetector ()
 returns the parent fiducial detector
const FiducialDetectorPlugingetDetector () const
 returns the parent fiducial detector (const)

Static Public Attributes

static const FeatureSet AllFeatures
 a full feature set

Private Attributes

FiducialImplimpl
 hidden implementation (always managed by the parent MarkerDetector)

Detailed Description

Main class for detected image markers/fiducials.

Internally, each fiducial is just a shallow wrapper around a FiducialImpl instance, which is managed by it's parent FiducialDetectorPlugin instance. Therefore, Fiducial instances can simply be copied as fast as a pointer-copy.


Member Typedef Documentation

FeatureSet class.

given a SeatureSet instances s, Feature x is supported if s[x] is true


Member Enumeration Documentation

Currently supported feature types.

Features can be binary-ored in order to create FeatureSet instances

Enumerator:
Center2D 

center in image coordinates

Rotation2D 

rotation in the image plain

Corners2D 

list of corners

KeyPoints2D 

list of 2D points with corresponding marker coordinates

ImageRegion 

associated image region

Center3D 

3D center information

Rotation3D 

3D orientation information

Pose3D 

3D orientation information

FeatureCount 

number of features


Constructor & Destructor Documentation

private Constructor


Member Function Documentation

returns the marker'S center in the image

returns the markers

returns the markers corners

returns the parent fiducial detector

returns the parent fiducial detector (const)

the marker ID

returns the associated image region

returns the marker's internal implementation structure

const FiducialImpl* icl::markers::Fiducial::getImpl ( ) const [inline]

returns the marker's internal implementation structure (const)

const std::vector<KeyPoint>& icl::markers::Fiducial::getKeyPoints2D ( ) const

returns key points in the marker

std::string icl::markers::Fiducial::getName ( ) const

returns a string representation of the marker name

returns the markers

const float& icl::markers::Fiducial::getRotation2D ( ) const

retrurs the marker's rotation in the image plain

returns the markers

bool icl::markers::Fiducial::isNull ( ) const [inline]

returns whether is marker has not been initialized

icl::markers::Fiducial::operator bool ( ) const [inline]

returns whether is marker has been initialized

bool icl::markers::Fiducial::operator! ( ) const [inline]

returns whether is marker has not been initialized

bool icl::markers::Fiducial::operator!= ( const Fiducial a) const [inline]

returns whether the fiducials have not the same impl

bool icl::markers::Fiducial::operator== ( const Fiducial a) const [inline]

returns whether the fiducials have the same impl

returns wheather the Marker provides given information


Member Data Documentation

a full feature set

hidden implementation (always managed by the parent MarkerDetector)


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines