Loads a 2D squared binary marker from a file. UUID: 5d2b8da9-528e-4e5e-96c1-f883edcf3b1c
More...
#include <SolARMarker2DSquaredBinaryOpencv.h>
|
FrameworkReturnCode | loadMarker () override |
|
FrameworkReturnCode | getImageCorners (std::vector< datastructure::Point2Df > &imageCorners) const override |
| Provide the position of 2D corners in image coordinate system. More...
|
|
FrameworkReturnCode | getWorldCorners (std::vector< datastructure::Point3Df > &worldCorners) const override |
| Provide the position of 3D corners in world coordinate system. More...
|
|
void | setSize (const float &width, const float &height) override |
|
float | getWidth () const override |
|
float | getHeight () const override |
|
const datastructure::Sizef & | getSize () const override |
|
const datastructure::SquaredBinaryPattern & | getPattern () const override |
|
|
void | unloadComponent () override final |
|
|
datastructure::Sizef | m_size |
| define the size of the 2D Marker according to the user-defined unit (the same used for the camera calibration)
|
|
datastructure::SquaredBinaryPattern | m_pattern |
|
Loads a 2D squared binary marker from a file. UUID: 5d2b8da9-528e-4e5e-96c1-f883edcf3b1c
- Properties
filePath | the path to the file describing the 2D Squared binary marker | |
type: string; default: "" |
◆ getImageCorners()
FrameworkReturnCode SolAR::MODULES::OPENCV::SolARMarker2DSquaredBinaryOpencv::getImageCorners |
( |
std::vector< datastructure::Point2Df > & |
imageCorners | ) |
const |
|
override |
Provide the position of 2D corners in image coordinate system.
- Parameters
-
[out] | imageCorners | the 2D corners of the marker in image coordinate system |
- Returns
- FrameworkReturnCode::SUCCESS if sucessful, eiher FrameworkRetunrnCode::_ERROR.
◆ getWorldCorners()
FrameworkReturnCode SolAR::MODULES::OPENCV::SolARMarker2DSquaredBinaryOpencv::getWorldCorners |
( |
std::vector< datastructure::Point3Df > & |
worldCorners | ) |
const |
|
override |
Provide the position of 3D corners in world coordinate system.
- Parameters
-
[out] | worldCorners | the 3D corners of the marker in world coordinate system |
- Returns
- FrameworkReturnCode::SUCCESS if sucessful, eiher FrameworkRetunrnCode::_ERROR.
The documentation for this class was generated from the following file: