|
bool | DecodeContent (int *orientation) |
| DecodeContent should be called after UpdateContent to fill content_type, decode_error and data More...
|
|
unsigned long | GetId () const |
| Get ID for recognizing this marker. More...
|
|
| MarkerData (double _edge_length=0, int _res=0, double _margin=0) |
| Default constructor. More...
|
|
void | SetContent (MarkerContentType content_type, unsigned long id, const char *str, bool force_strong_hamming=false, bool verbose=false) |
| Updates the marker_content by "encoding" the given parameters. More...
|
|
void | SetId (unsigned long _id) |
| Set the ID. 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 Compared to the basic implementation in Marker this will also detect the marker resolution automatically when the marker resolution is specified to be 0. More...
|
|
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...
|
|
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...
|
|
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...
|
|
|
void | Add6bitStr (BitsetExt *bs, char *s) |
|
int | DecodeCode (int orientation, BitsetExt *bs, int *erroneous, int *total, unsigned char *content_type) |
|
void | DecodeOrientation (int *error, int *total, int *orientation) |
|
bool | DetectResolution (std::vector< Point< CvPoint2D64f > > &_marker_corners_img, IplImage *gray, Camera *cam) |
|
void | Read6bitStr (BitsetExt *bs, char *s, size_t s_max_len) |
|
int | UsableDataBits (int marker_res, int hamming) |
|
virtual void | VisualizeMarkerContent (IplImage *image, Camera *cam, double datatext_point[2], double content_point[2]) const |
|
bool | UpdateContentBasic (std::vector< Point< CvPoint2D64f > > &_marker_corners_img, IplImage *gray, Camera *cam, int frame_no=0) |
|
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 |
|
MarkerData contains matrix of Hamming encoded data.
- Examples:
- SampleMarkerCreator.cpp.
Definition at line 221 of file Marker.h.