Image Component Library (ICL)
|
Main class for detected image markers/fiducials. More...
#include <Fiducial.h>
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. More... | |
Public Member Functions | |
Fiducial (FiducialImpl *impl=0) | |
private Constructor More... | |
int | getID () const |
the marker ID More... | |
std::string | getName () const |
returns a string representation of the marker name More... | |
bool | supports (Feature f) const |
returns wheather the Marker provides given information More... | |
const utils::Point32f & | getCenter2D () const |
returns the marker'S center in the image More... | |
const float & | getRotation2D () const |
retrurs the marker's rotation in the image plain More... | |
const std::vector< utils::Point32f > & | getCorners2D () const |
returns the markers corners More... | |
const std::vector< KeyPoint > & | getKeyPoints2D () const |
returns key points in the marker More... | |
const cv::ImageRegion | getImageRegion () const |
returns the associated image region More... | |
const geom::Vec & | getCenter3D () const |
returns the markers More... | |
const geom::Vec & | getRotation3D () const |
returns the markers More... | |
const geom::Mat & | getPose3D () const |
returns the markers More... | |
operator bool () const | |
returns whether is marker has been initialized More... | |
bool | operator! () const |
returns whether is marker has not been initialized More... | |
bool | isNull () const |
returns whether is marker has not been initialized More... | |
bool | operator== (const Fiducial &a) const |
returns whether the fiducials have the same impl More... | |
bool | operator!= (const Fiducial &a) const |
returns whether the fiducials have not the same impl More... | |
FiducialImpl * | getImpl () |
returns the marker's internal implementation structure More... | |
const FiducialImpl * | getImpl () const |
returns the marker's internal implementation structure (const) More... | |
FiducialDetectorPlugin * | getDetector () |
returns the parent fiducial detector More... | |
const FiducialDetectorPlugin * | getDetector () const |
returns the parent fiducial detector (const) More... | |
Static Public Attributes | |
static const FeatureSet | AllFeatures |
a full feature set More... | |
Private Attributes | |
FiducialImpl * | impl |
hidden implementation (always managed by the parent MarkerDetector) More... | |
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.
typedef std::bitset<(int)FeatureCount> icl::markers::Fiducial::FeatureSet |
FeatureSet class.
given a SeatureSet instances s, Feature x is supported if s[x] is true
Currently supported feature types.
Features can be binary-ored in order to create FeatureSet instances
|
inline |
private Constructor
const utils::Point32f& icl::markers::Fiducial::getCenter2D | ( | ) | const |
returns the marker'S center in the image
const geom::Vec& icl::markers::Fiducial::getCenter3D | ( | ) | const |
returns the markers
const std::vector<utils::Point32f>& icl::markers::Fiducial::getCorners2D | ( | ) | const |
returns the markers corners
FiducialDetectorPlugin* icl::markers::Fiducial::getDetector | ( | ) |
returns the parent fiducial detector
const FiducialDetectorPlugin* icl::markers::Fiducial::getDetector | ( | ) | const |
returns the parent fiducial detector (const)
int icl::markers::Fiducial::getID | ( | ) | const |
the marker ID
const cv::ImageRegion icl::markers::Fiducial::getImageRegion | ( | ) | const |
returns the associated image region
|
inline |
returns the marker's internal implementation structure
|
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
const geom::Mat& icl::markers::Fiducial::getPose3D | ( | ) | const |
returns the markers
const float& icl::markers::Fiducial::getRotation2D | ( | ) | const |
retrurs the marker's rotation in the image plain
const geom::Vec& icl::markers::Fiducial::getRotation3D | ( | ) | const |
returns the markers
|
inline |
returns whether is marker has not been initialized
|
inline |
returns whether is marker has been initialized
|
inline |
returns whether is marker has not been initialized
|
inline |
returns whether the fiducials have not the same impl
|
inline |
returns whether the fiducials have the same impl
bool icl::markers::Fiducial::supports | ( | Feature | f | ) | const |
returns wheather the Marker provides given information
|
static |
a full feature set
|
private |
hidden implementation (always managed by the parent MarkerDetector)