Solar
Public Member Functions | List of all members
SolAR::MODULES::OPENCV::SolAR3DOverlayBoxOpencv Class Reference

Draws a 3D box on an image. UUID: 2db01f59-9793-4cd5-8e13-b25d0ed5735b More...

#include <SolAR3DOverlayBoxOpencv.h>

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

Public Member Functions

void draw (const datastructure::Transform3Df &pose, SRef< datastructure::Image > displayImage) override
 draw a projection of 3D box based on 3D pose on an image. More...
 
void setCameraParameters (const datastructure::CamCalibration &intrinsic_parameters, const datastructure::CamDistortion &distorsion_parameters)
 this method is used to set intrinsic parameters and distorsion of the camera More...
 
org::bcom::xpcf::XPCFErrorCode onConfigured () override final
 
void unloadComponent () override final
 

Detailed Description

Draws a 3D box on an image. UUID: 2db01f59-9793-4cd5-8e13-b25d0ed5735b

Properties
orientation orientation of the box in euler angles in degrees
size: 3, elem type: float; range : [MIN FLOAT..MAX FLOAT]; default: { 0.0, 0.0, 0.0 }
position position of the center of the bottom face of the Box defined in world unit
size: 3, elem type: float; range : [MIN FLOAT..MAX FLOAT]; default: { 0.0, 0.0, 0.0 }
size size of the box define in world unit
size: 3, elem type: float; range : [MIN FLOAT..MAX FLOAT]; default: { 1.f, 1.f, 1.f }

Member Function Documentation

◆ draw()

void SolAR::MODULES::OPENCV::SolAR3DOverlayBoxOpencv::draw ( const datastructure::Transform3Df &  pose,
SRef< datastructure::Image >  displayImage 
)
override

draw a projection of 3D box based on 3D pose on an image.

Parameters
[in]pose3D camera pose expressed in the world coordinate.
[in,out]displayImageThe image on which the projection of a 3D box will be drawn.

◆ setCameraParameters()

void SolAR::MODULES::OPENCV::SolAR3DOverlayBoxOpencv::setCameraParameters ( const datastructure::CamCalibration &  intrinsic_parameters,
const datastructure::CamDistortion &  distorsion_parameters 
)

this method is used to set intrinsic parameters and distorsion of the camera

Parameters
[in]Cameracalibration matrix parameters.
[in]Cameradistorsion parameters.

The documentation for this class was generated from the following file: