Public Member Functions | Public Attributes | Private Attributes | List of all members
alvar::MultiMarkerInitializer::MarkerMeasurement Class Reference

MarkerMeasurement that holds the maker id. More...

#include <MultiMarkerInitializer.h>

Inheritance diagram for alvar::MultiMarkerInitializer::MarkerMeasurement:
Inheritance graph
[legend]

Public Member Functions

unsigned long GetId () const
 Get id for this marker This is used e.g. in MarkerDetector to associate a marker id with an appropriate edge length. This method should be overwritten to return a suitable identification number for each marker type. More...
 
 MarkerMeasurement ()
 
void SetId (unsigned long _id)
 
- Public Member Functions inherited from alvar::Marker
void CompareContent (std::vector< Point< CvPoint2D64f > > &_marker_corners_img, IplImage *gray, Camera *cam, int *orientation) const
 Compares the marker corners with the previous match. More...
 
void CompareCorners (std::vector< Point< CvPoint2D64f > > &_marker_corners_img, int *orientation, double *error)
 Compares the marker corners with the previous match. More...
 
virtual bool DecodeContent (int *orientation)
 Decodes the marker content. Please call UpdateContent before this. This virtual method is meant to be implemented by heirs. More...
 
CvMat * GetContent () const
 Returns the content as a matrix. More...
 
double GetError (int errors=(MARGIN_ERROR|DECODE_ERROR)) const
 Get marker detection error estimate. More...
 
double GetMargin () const
 
double GetMarkerEdgeLength () const
 Get edge length (to support different size markers. More...
 
int GetRes () const
 
 Marker (double _edge_length=0, int _res=0, double _margin=0)
 Default constructor. More...
 
 Marker (const Marker &m)
 Copy constructor. More...
 
void SaveMarkerImage (const char *filename, int save_res=0) const
 Saves the marker as an image. More...
 
void ScaleMarkerToImage (IplImage *image) const
 Draw the marker filling the ROI in the given image. More...
 
void SetError (int error_type, double value)
 Set the marker error estimate. More...
 
void SetMarkerSize (double _edge_length=0, int _res=0, double _margin=0)
 Method for resizing the marker dimensions. More...
 
virtual bool UpdateContent (std::vector< Point< CvPoint2D64f > > &_marker_corners_img, IplImage *gray, Camera *cam, int frame_no=0)
 Updates the marker_content from the image using Homography. More...
 
void UpdatePose (std::vector< Point< CvPoint2D64f > > &_marker_corners_img, Camera *cam, int orientation, int frame_no=0, bool update_pose=true)
 Updates the markers pose estimation. More...
 
void Visualize (IplImage *image, Camera *cam, CvScalar color=CV_RGB(255, 0, 0)) const
 Visualize the marker. More...
 
 ~Marker ()
 Destructor. More...
 

Public Attributes

bool globalPose
 
- Public Attributes inherited from alvar::Marker
std::vector< PointDoublemarker_corners
 Marker corners in marker coordinates. More...
 
std::vector< PointDoublemarker_corners_img
 Marker corners in image coordinates. More...
 
std::vector< PointDoublemarker_margin_b
 Samples to be used in figuring out min/max for thresholding. More...
 
std::vector< PointDoublemarker_margin_w
 Samples to be used in figuring out min/max for thresholding. More...
 
std::vector< PointDoublemarker_points
 Marker color points in marker coordinates. More...
 
Pose pose
 The current marker Pose. More...
 
ar_track_alvar::ARCloud ros_corners_3D
 
std::vector< PointDoubleros_marker_points_img
 Marker points in image coordinates. More...
 
int ros_orientation
 
EIGEN_MAKE_ALIGNED_OPERATOR_NEW bool valid
 

Private Attributes

long _id
 

Additional Inherited Members

- Static Public Attributes inherited from alvar::Marker
static const int DECODE_ERROR =2
 
static const int MARGIN_ERROR =1
 
static const int TRACK_ERROR =4
 
- Protected Member Functions inherited from alvar::Marker
bool UpdateContentBasic (std::vector< Point< CvPoint2D64f > > &_marker_corners_img, IplImage *gray, Camera *cam, int frame_no=0)
 
virtual void VisualizeMarkerContent (IplImage *image, Camera *cam, double datatext_point[2], double content_point[2]) const
 
virtual void VisualizeMarkerError (IplImage *image, Camera *cam, double errortext_point[2]) const
 
void VisualizeMarkerPose (IplImage *image, Camera *cam, double visualize2d_points[12][2], CvScalar color=CV_RGB(255, 0, 0)) const
 
- Protected Attributes inherited from alvar::Marker
double decode_error
 
double edge_length
 
double margin
 
double margin_error
 
CvMat * marker_content
 
int res
 
double track_error
 

Detailed Description

MarkerMeasurement that holds the maker id.

Definition at line 56 of file MultiMarkerInitializer.h.

Constructor & Destructor Documentation

alvar::MultiMarkerInitializer::MarkerMeasurement::MarkerMeasurement ( )
inline

Definition at line 59 of file MultiMarkerInitializer.h.

Member Function Documentation

unsigned long alvar::MultiMarkerInitializer::MarkerMeasurement::GetId ( ) const
inlinevirtual

Get id for this marker This is used e.g. in MarkerDetector to associate a marker id with an appropriate edge length. This method should be overwritten to return a suitable identification number for each marker type.

Reimplemented from alvar::Marker.

Definition at line 61 of file MultiMarkerInitializer.h.

void alvar::MultiMarkerInitializer::MarkerMeasurement::SetId ( unsigned long  _id)
inlinevirtual

Reimplemented from alvar::Marker.

Definition at line 62 of file MultiMarkerInitializer.h.

Member Data Documentation

long alvar::MultiMarkerInitializer::MarkerMeasurement::_id
private

Definition at line 57 of file MultiMarkerInitializer.h.

bool alvar::MultiMarkerInitializer::MarkerMeasurement::globalPose

Definition at line 60 of file MultiMarkerInitializer.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