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

Represents whole grid of markers. More...

#include <AdvancedMarkerGridDetector.h>

Inheritance diagram for icl::markers::AdvancedMarkerGridDetector::MarkerGrid:
icl::utils::Array2D< Marker >

Public Member Functions

 MarkerGrid ()
 creates an empty 0x0 grid More...
 
 MarkerGrid (const AdvancedGridDefinition &def)
 creates a grid with given grid-definition (note: 1x1 grids can cause errors) More...
 
void init (const AdvancedGridDefinition &def)
 deferred initialization of a grid More...
 
void update (const MarkerGridDetector::Result &r)
 updates the image-points of all contained markers according to the given 2D-array of fiducials More...
 
const AdvancedGridDefinitiongetGridDef () const
 returns the internal grid definitiion More...
 
const MarkergetMarker (int id) const
 returns the marker for the given ID More...
 
utils::VisualizationDescription vis () const
 visualizes the whole grid (i.e. each marker) More...
 
template<class Transform >
void transformImagePointsTo (MarkerGrid &dst, Transform t) const
 transforms all markers using a transformation function More...
 
- Public Member Functions inherited from icl::utils::Array2D< Marker >
 Array2D ()
 Creates null instance. More...
 
 Array2D (int w, int h)
 Creates an uninitialized matrix of given size. More...
 
 Array2D (const Size &s)
 Creates an uninitialized matrix of given size. More...
 
 Array2D (int w, int h, Init init)
 Creates an initialized matrix with given initializer. More...
 
 Array2D (const Size &s, Init init)
 Creates an initialized matrix with given initializer. More...
 
 Array2D (int w, int h, Marker *data, bool deepCopy=false)
 Creates a matrix of size w x h, using given (optionally shared) data. More...
 
 Array2D (const Size &s, Marker *data, bool deepCopy=false)
 Creates a matrix of given Size, using given (optionally shared) data. More...
 
 Array2D (int w, int h, const Marker *data)
 Creates a matrix of size w x h, using given const data (always deep copy) More...
 
 Array2D (const Size &s, const Marker *data)
 Creates a matrix of given Size using given const data (always deep copy) More...
 
 Array2D (int w, int h, Iterator begin, Iterator end)
 Creates a matrix of size w x h, initialized with content from given range. More...
 
 Array2D (const Size &s, Iterator begin, Iterator end)
 Creates a matrix of size w x h, initialized with content from given range. More...
 
void fill (Value val)
 fills the matrix with given value More...
 
void assign (Iterator begin, Iterator end)
 Assigns the matrix from given range. More...
 
int getWidth () const
 returns the matrix width More...
 
int getHeight () const
 returns the matrix height More...
 
int getDim () const
 returns the matrix dimension (width*height) More...
 
const SizegetSize () const
 returns the matrix size More...
 
Marker & operator[] (int idx)
 returns element at given linear index More...
 
const Marker & operator[] (int idx) const
 returns element at given linear index (const) More...
 
Marker & operator() (int x, int y)
 returns element at given x,y position More...
 
const Marker & operator() (int x, int y) const
 returns element at given x,y position (const) More...
 
iterator begin ()
 upper left matrix element iterator More...
 
const_iterator begin () const
 upper left matrix element iterator (const) More...
 
iterator end ()
 upper left matrix element iterator More...
 
const_iterator end () const
 upper left matrix element iterator More...
 
Array2D< Marker > deepCopy () const
 returns a deep copy of this matrix More...
 
void detach ()
 ensures that the contained data is not shared by other instances More...
 
Marker * data ()
 returns the data pointer More...
 
const Marker * data () const
 returns the data pointer (const version) More...
 
const Marker & minElem (Point *pos=0) const
 returns the minumum element of the matrix (operator < must be defined on T) More...
 
const Marker & maxElem (Point *pos=0) const
 returns the maximum element of the matrix (operator < must be defined on T) More...
 
void setSize (const Size &size)
 sets a new size More...
 
void setSize (const Size &size, const Init &init)
 sets size and fills with new entries More...
 

Private Types

typedef utils::Array2D< MarkerSuper
 convenience typedef More...
 

Private Attributes

AdvancedGridDefinition gridDef
 internal metrics More...
 

Additional Inherited Members

- Public Types inherited from icl::utils::Array2D< Marker >
typedef Marker * iterator
 iterator type (just a T*) More...
 
typedef const Marker * const_iterator
 const iterator type (just a const T*) More...
 

Detailed Description

Represents whole grid of markers.

Member Typedef Documentation

◆ Super

convenience typedef

Constructor & Destructor Documentation

◆ MarkerGrid() [1/2]

icl::markers::AdvancedMarkerGridDetector::MarkerGrid::MarkerGrid ( )

creates an empty 0x0 grid

◆ MarkerGrid() [2/2]

icl::markers::AdvancedMarkerGridDetector::MarkerGrid::MarkerGrid ( const AdvancedGridDefinition def)

creates a grid with given grid-definition (note: 1x1 grids can cause errors)

Member Function Documentation

◆ getGridDef()

const AdvancedGridDefinition& icl::markers::AdvancedMarkerGridDetector::MarkerGrid::getGridDef ( ) const
inline

returns the internal grid definitiion

◆ getMarker()

const Marker& icl::markers::AdvancedMarkerGridDetector::MarkerGrid::getMarker ( int  id) const

returns the marker for the given ID

◆ init()

void icl::markers::AdvancedMarkerGridDetector::MarkerGrid::init ( const AdvancedGridDefinition def)

deferred initialization of a grid

◆ transformImagePointsTo()

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

transforms all markers using a transformation function

◆ update()

void icl::markers::AdvancedMarkerGridDetector::MarkerGrid::update ( const MarkerGridDetector::Result r)

updates the image-points of all contained markers according to the given 2D-array of fiducials

◆ vis()

utils::VisualizationDescription icl::markers::AdvancedMarkerGridDetector::MarkerGrid::vis ( ) const

visualizes the whole grid (i.e. each marker)

Member Data Documentation

◆ gridDef

AdvancedGridDefinition icl::markers::AdvancedMarkerGridDetector::MarkerGrid::gridDef
private

internal metrics


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