Solar
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SolAR::MODULES::OPENCV::SolARMarker2DSquaredBinaryOpencv Class Reference

Loads a 2D squared binary marker from a file. UUID: 5d2b8da9-528e-4e5e-96c1-f883edcf3b1c More...

#include <SolARMarker2DSquaredBinaryOpencv.h>

Inheritance diagram for SolAR::MODULES::OPENCV::SolARMarker2DSquaredBinaryOpencv:
Inheritance graph
[legend]
Collaboration diagram for SolAR::MODULES::OPENCV::SolARMarker2DSquaredBinaryOpencv:
Collaboration graph
[legend]

Public Member Functions

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
 

Protected Member Functions

void unloadComponent () override final
 

Protected Attributes

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
 

Detailed Description

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: ""

Member Function Documentation

◆ 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]imageCornersthe 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]worldCornersthe 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: