This class defines a board with several markers. A Board contains several markers so that they are more robustly detected. More...
#include <board.h>
Public Types | |
enum | MarkerInfoType { NONE = -1, PIX = 0, METERS = 1 } |
Public Member Functions | |
BoardConfiguration () | |
BoardConfiguration (string filePath) throw (cv::Exception) | |
BoardConfiguration (const BoardConfiguration &T) | |
void | getIdList (vector< int > &ids, bool append=true) const |
int | getIndexOfMarkerId (int id) const |
const MarkerInfo & | getMarkerInfo (int id) const throw (cv::Exception) |
bool | isExpressedInMeters () const |
bool | isExpressedInPixels () const |
BoardConfiguration & | operator= (const BoardConfiguration &T) |
void | readFromFile (string sfile) throw (cv::Exception) |
void | saveToFile (string sfile) throw (cv::Exception) |
Public Attributes | |
int | mInfoType |
Private Member Functions | |
void | readFromFile (cv::FileStorage &fs) throw (cv::Exception) |
void | saveToFile (cv::FileStorage &fs) throw (cv::Exception) |
Friends | |
class | Board |
This class defines a board with several markers. A Board contains several markers so that they are more robustly detected.
In general, a board is a set of markers. So BoardConfiguration is only a list of the id of the markers along with the position of their corners.
The position of the corners can be specified either in pixels (in a non-specific size) or in meters. The first is the typical case in which you generate the image of board and the print it. Since you do not know in advance the real size of the markers, their corners are specified in pixels, and then, the translation to meters can be made once you know the real size.
On the other hand, you may want to have the information of your boards in meters. The BoardConfiguration allows you to do so.
The point is in the mInfoType variable. It can be either PIX or METERS according to your needs.
aruco::BoardConfiguration::BoardConfiguration | ( | string | filePath | ) | |
throw | ( | cv::Exception | |||
) |
aruco::BoardConfiguration::BoardConfiguration | ( | const BoardConfiguration & | T | ) |
void aruco::BoardConfiguration::getIdList | ( | std::vector< int > & | ids, |
bool | append = true |
||
) | const |
int aruco::BoardConfiguration::getIndexOfMarkerId | ( | int | id | ) | const |
const MarkerInfo & aruco::BoardConfiguration::getMarkerInfo | ( | int | id | ) | const |
throw | ( | cv::Exception | |||
) |
|
inline |
|
inline |
BoardConfiguration & aruco::BoardConfiguration::operator= | ( | const BoardConfiguration & | T | ) |
void aruco::BoardConfiguration::readFromFile | ( | string | sfile | ) | |
throw | ( | cv::Exception | |||
) |
|
private |
void aruco::BoardConfiguration::saveToFile | ( | string | sfile | ) | |
throw | ( | cv::Exception | |||
) |
|
private |