Image Component Library (ICL)
Classes | Public Member Functions | Private Attributes | List of all members
icl::markers::AdvancedMarkerGridDetector::Marker Class Reference

internal data-class the represents a more sophisticated More...

#include <AdvancedMarkerGridDetector.h>

Classes

struct  KeyPoints
 internal key-point structure More...
 

Public Member Functions

 Marker ()
 creates an empty marker More...
 
 Marker (int id, const utils::Point32f gridPoints[4], const utils::Point32f &center)
 create a marker with given ID and layout (in grid-space) More...
 
void setImagePoints (const utils::Point32f corners[4], const utils::Point32f &center=utils::Point32f::null)
 sets current image points More...
 
bool operator< (const Marker &m) const
 for sorting (is that needed) More...
 
void setFound (bool found)
 sets the 'found' flag More...
 
bool wasFound () const
 
const KeyPointsgetImagePoints () const
 returns current image points More...
 
const KeyPointsgetGridPoints () const
 returns static grid points More...
 
KeyPointsgetImagePoints ()
 returns current image points (unconst version) More...
 
void visTo (utils::VisualizationDescription &vd) const
 visualizes the marker boundary and the center More...
 
void getImagePointsTo (utils::Point32f *dst) const
 utilty function More...
 
template<class Transform >
void transformImagePointsTo (Marker &dst, Transform t) const
 utility method that transforms the marker's image points ... More...
 

Private Attributes

int id
 marker id More...
 
bool found
 was it found More...
 
KeyPoints imagePts
 internal key-points (in image space, updated at runtime) More...
 
KeyPoints gridPts
 internal key-points (in grid space, initialized at construction time) More...
 

Detailed Description

internal data-class the represents a more sophisticated

Constructor & Destructor Documentation

◆ Marker() [1/2]

icl::markers::AdvancedMarkerGridDetector::Marker::Marker ( )

creates an empty marker

◆ Marker() [2/2]

icl::markers::AdvancedMarkerGridDetector::Marker::Marker ( int  id,
const utils::Point32f  gridPoints[4],
const utils::Point32f center 
)

create a marker with given ID and layout (in grid-space)

Member Function Documentation

◆ getGridPoints()

const KeyPoints& icl::markers::AdvancedMarkerGridDetector::Marker::getGridPoints ( ) const
inline

returns static grid points

◆ getImagePoints() [1/2]

const KeyPoints& icl::markers::AdvancedMarkerGridDetector::Marker::getImagePoints ( ) const
inline

returns current image points

◆ getImagePoints() [2/2]

KeyPoints& icl::markers::AdvancedMarkerGridDetector::Marker::getImagePoints ( )
inline

returns current image points (unconst version)

◆ getImagePointsTo()

void icl::markers::AdvancedMarkerGridDetector::Marker::getImagePointsTo ( utils::Point32f dst) const

utilty function

◆ operator<()

bool icl::markers::AdvancedMarkerGridDetector::Marker::operator< ( const Marker m) const
inline

for sorting (is that needed)

◆ setFound()

void icl::markers::AdvancedMarkerGridDetector::Marker::setFound ( bool  found)
inline

sets the 'found' flag

◆ setImagePoints()

void icl::markers::AdvancedMarkerGridDetector::Marker::setImagePoints ( const utils::Point32f  corners[4],
const utils::Point32f center = utils::Point32f::null 
)

sets current image points

◆ transformImagePointsTo()

template<class Transform >
void icl::markers::AdvancedMarkerGridDetector::Marker::transformImagePointsTo ( Marker dst,
Transform  t 
) const
inline

utility method that transforms the marker's image points ...

◆ visTo()

void icl::markers::AdvancedMarkerGridDetector::Marker::visTo ( utils::VisualizationDescription vd) const

visualizes the marker boundary and the center

◆ wasFound()

bool icl::markers::AdvancedMarkerGridDetector::Marker::wasFound ( ) const
inline

Member Data Documentation

◆ found

bool icl::markers::AdvancedMarkerGridDetector::Marker::found
private

was it found

◆ gridPts

KeyPoints icl::markers::AdvancedMarkerGridDetector::Marker::gridPts
private

internal key-points (in grid space, initialized at construction time)

◆ id

int icl::markers::AdvancedMarkerGridDetector::Marker::id
private

marker id

◆ imagePts

KeyPoints icl::markers::AdvancedMarkerGridDetector::Marker::imagePts
private

internal key-points (in image space, updated at runtime)


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