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

Version of MarkerDetector using external container. More...

#include <EC.h>

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

Public Member Functions

template<typename T >
int Detect (IplImage *image, Camera *cam, std::map< int, T > &container, int type_id=0, int first_id=0, int last_id=65535, bool track=false, bool visualize=false, double max_new_marker_error=0.08, double max_track_error=0.2, LabelingMethod labeling_method=CVSEQ)
 Detect markers in the image and fill in their 2D-positions in the given external container. More...
 
int GetId (int marker_id, int corner_id, int first_id=0, int last_id=65535)
 
template<typename T >
void MarkerToEC (std::map< int, T > &container, int marker_id, double edge_length, Pose &pose, int type_id=0, int first_id=0, int last_id=65535)
 Fill in 3D-coordinates for marker_id marker corners using edge_length and pose. More...
 
- Public Member Functions inherited from alvar::MarkerDetector< M >
 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...
 

Protected Member Functions

template<typename T >
bool PreDetect (std::pair< const int, T > &p, int type_id)
 
template<typename T >
bool PreDetect (T &p, int type_id)
 
- Protected Member Functions inherited from alvar::MarkerDetector< M >
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

- Public Attributes inherited from alvar::MarkerDetector< M >
std::vector< M, Eigen::aligned_allocator< M > > * markers
 
std::vector< M, Eigen::aligned_allocator< M > > * track_markers
 
- 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::MarkerDetectorEC< M >

Version of MarkerDetector using external container.

Definition at line 656 of file EC.h.

Member Function Documentation

template<class M>
template<typename T >
int alvar::MarkerDetectorEC< M >::Detect ( IplImage *  image,
Camera cam,
std::map< int, T > &  container,
int  type_id = 0,
int  first_id = 0,
int  last_id = 65535,
bool  track = false,
bool  visualize = false,
double  max_new_marker_error = 0.08,
double  max_track_error = 0.2,
LabelingMethod  labeling_method = CVSEQ 
)
inline

Detect markers in the image and fill in their 2D-positions in the given external container.

Definition at line 675 of file EC.h.

template<class M>
int alvar::MarkerDetectorEC< M >::GetId ( int  marker_id,
int  corner_id,
int  first_id = 0,
int  last_id = 65535 
)
inline

Definition at line 669 of file EC.h.

template<class M>
template<typename T >
void alvar::MarkerDetectorEC< M >::MarkerToEC ( std::map< int, T > &  container,
int  marker_id,
double  edge_length,
Pose pose,
int  type_id = 0,
int  first_id = 0,
int  last_id = 65535 
)
inline

Fill in 3D-coordinates for marker_id marker corners using edge_length and pose.

Definition at line 720 of file EC.h.

template<class M>
template<typename T >
bool alvar::MarkerDetectorEC< M >::PreDetect ( std::pair< const int, T > &  p,
int  type_id 
)
inlineprotected

Definition at line 659 of file EC.h.

template<class M>
template<typename T >
bool alvar::MarkerDetectorEC< M >::PreDetect ( T &  p,
int  type_id 
)
inlineprotected

Definition at line 663 of file EC.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