Public Member Functions | Public Attributes | Protected Member Functions | List of all members
alvar::MarkerDetector< M > Class Template Reference

MarkerDetector for detecting markers of type M More...

#include <MarkerDetector.h>

Inheritance diagram for alvar::MarkerDetector< M >:
Inheritance graph
[legend]

Public Member Functions

 MarkerDetector ()
 
 ~MarkerDetector ()
 
- Public Member Functions inherited from alvar::MarkerDetectorImpl
int Detect (IplImage *image, Camera *cam, bool track=false, bool visualize=false, double max_new_marker_error=0.08, double max_track_error=0.2, LabelingMethod labeling_method=CVSEQ, bool update_pose=true)
 Detect Marker 's from image More...
 
int DetectAdditional (IplImage *image, Camera *cam, bool visualize=false, double max_track_error=0.2)
 
void SetMarkerSize (double _edge_length=1, int _res=5, double _margin=2)
 
void SetMarkerSizeForId (unsigned long id, double _edge_length=1)
 
void SetOptions (bool _detect_pose_grayscale=false)
 
void TrackMarkerAdd (int id, PointDouble corners[4])
 Add markers to be tracked Sometimes application or e.g. the MultiMarker implementation knows more about marker locations. Then this method can be used after Detect to indicate where additional trackable markers could be found. The DetectAdditional is called for tracking these. More...
 
void TrackMarkersReset ()
 Clear the markers that are tracked. More...
 

Public Attributes

std::vector< M, Eigen::aligned_allocator< M > > * markers
 
std::vector< M, Eigen::aligned_allocator< M > > * track_markers
 

Protected Member Functions

void _markers_clear ()
 
void _markers_push_back (Marker *mn)
 
size_t _markers_size ()
 
void _swap_marker_tables ()
 
Marker_track_markers_at (size_t i)
 
void _track_markers_clear ()
 
void _track_markers_push_back (Marker *mn)
 
size_t _track_markers_size ()
 
Markernew_M (double _edge_length=0, int _res=0, double _margin=0)
 
- Protected Member Functions inherited from alvar::MarkerDetectorImpl
 MarkerDetectorImpl ()
 
virtual ~MarkerDetectorImpl ()
 

Additional Inherited Members

- Protected Attributes inherited from alvar::MarkerDetectorImpl
bool detect_pose_grayscale
 
double edge_length
 
Labelinglabeling
 
std::map< unsigned long, double > map_edge_length
 
double margin
 
int res
 

Detailed Description

template<class M>
class alvar::MarkerDetector< M >

MarkerDetector for detecting markers of type M

Parameters
MClass that extends Marker
Examples:
SampleMarkerDetector.cpp, SampleMarkerHide.cpp, SampleMultiMarker.cpp, and SampleMultiMarkerBundle.cpp.

Definition at line 139 of file MarkerDetector.h.

Constructor & Destructor Documentation

template<class M>
alvar::MarkerDetector< M >::MarkerDetector ( )
inline

Constructor

Definition at line 166 of file MarkerDetector.h.

template<class M>
alvar::MarkerDetector< M >::~MarkerDetector ( )
inline

Destructor

Definition at line 172 of file MarkerDetector.h.

Member Function Documentation

template<class M>
void alvar::MarkerDetector< M >::_markers_clear ( )
inlineprotectedvirtual

Implements alvar::MarkerDetectorImpl.

Definition at line 146 of file MarkerDetector.h.

template<class M>
void alvar::MarkerDetector< M >::_markers_push_back ( Marker mn)
inlineprotectedvirtual

Implements alvar::MarkerDetectorImpl.

Definition at line 147 of file MarkerDetector.h.

template<class M>
size_t alvar::MarkerDetector< M >::_markers_size ( )
inlineprotectedvirtual

Implements alvar::MarkerDetectorImpl.

Definition at line 148 of file MarkerDetector.h.

template<class M>
void alvar::MarkerDetector< M >::_swap_marker_tables ( )
inlineprotectedvirtual

Implements alvar::MarkerDetectorImpl.

Definition at line 154 of file MarkerDetector.h.

template<class M>
Marker* alvar::MarkerDetector< M >::_track_markers_at ( size_t  i)
inlineprotectedvirtual

Implements alvar::MarkerDetectorImpl.

Definition at line 152 of file MarkerDetector.h.

template<class M>
void alvar::MarkerDetector< M >::_track_markers_clear ( )
inlineprotectedvirtual

Implements alvar::MarkerDetectorImpl.

Definition at line 149 of file MarkerDetector.h.

template<class M>
void alvar::MarkerDetector< M >::_track_markers_push_back ( Marker mn)
inlineprotectedvirtual

Implements alvar::MarkerDetectorImpl.

Definition at line 150 of file MarkerDetector.h.

template<class M>
size_t alvar::MarkerDetector< M >::_track_markers_size ( )
inlineprotectedvirtual

Implements alvar::MarkerDetectorImpl.

Definition at line 151 of file MarkerDetector.h.

template<class M>
Marker* alvar::MarkerDetector< M >::new_M ( double  _edge_length = 0,
int  _res = 0,
double  _margin = 0 
)
inlineprotectedvirtual

Implements alvar::MarkerDetectorImpl.

Definition at line 142 of file MarkerDetector.h.

Member Data Documentation

template<class M>
std::vector<M, Eigen::aligned_allocator<M> >* alvar::MarkerDetector< M >::markers

Definition at line 162 of file MarkerDetector.h.

template<class M>
std::vector<M, Eigen::aligned_allocator<M> >* alvar::MarkerDetector< M >::track_markers

Definition at line 163 of file MarkerDetector.h.


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


ar_track_alvar
Author(s): Scott Niekum
autogenerated on Thu Jun 6 2019 19:27:24