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

Projects a set of 3D points on a 2D image plane. UUID: 741fc298-0149-4322-a7a9-ccb971e857ba More...

#include <SolARProjectOpencv.h>

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

Public Member Functions

 SolARProjectOpencv ()
 SolARProjectOpencv constructor;.
 
 ~SolARProjectOpencv () override
 SolARProjectOpencv destructor;.
 
void setCameraParameters (const datastructure::CamCalibration &intrinsicParams, const datastructure::CamDistortion &distorsionParams) override
 this method is used to set intrinsic parameters and distorsion of the camera More...
 
FrameworkReturnCode project (const std::vector< datastructure::Point3Df > &inputPoints, std::vector< datastructure::Point2Df > &imagePoints, const datastructure::Transform3Df &pose=datastructure::Transform3Df::Identity()) override
 This method project a set of 3D points in the image plane. More...
 
FrameworkReturnCode project (const std::vector< SRef< datastructure::CloudPoint > > &inputPoints, std::vector< datastructure::Point2Df > &imagePoints, const datastructure::Transform3Df &pose=datastructure::Transform3Df::Identity()) override
 This method project a set of 3D cloud points in the image plane. More...
 
void unloadComponent () override final
 

Detailed Description

Projects a set of 3D points on a 2D image plane. UUID: 741fc298-0149-4322-a7a9-ccb971e857ba

Member Function Documentation

◆ project() [1/2]

FrameworkReturnCode SolAR::MODULES::OPENCV::SolARProjectOpencv::project ( const std::vector< datastructure::Point3Df > &  inputPoints,
std::vector< datastructure::Point2Df > &  imagePoints,
const datastructure::Transform3Df &  pose = datastructure::Transform3Df::Identity() 
)
override

This method project a set of 3D points in the image plane.

Parameters
[in]inputPointsthe set of 3D points to project
[in]posethe 3D pose of the camera (a 4x4 float matrix)
[out]outputPointsthe resulting set of 2D points define in the image coordinate systemn
Returns
FrameworkReturnCode::SUCCESS if 3D projection succeed, else FrameworkReturnCode::_ERROR.

◆ project() [2/2]

FrameworkReturnCode SolAR::MODULES::OPENCV::SolARProjectOpencv::project ( const std::vector< SRef< datastructure::CloudPoint > > &  inputPoints,
std::vector< datastructure::Point2Df > &  imagePoints,
const datastructure::Transform3Df &  pose = datastructure::Transform3Df::Identity() 
)
override

This method project a set of 3D cloud points in the image plane.

Parameters
[in]inputPointsthe set of 3D cloud points to project
[in]posethe 3D pose of the camera (a 4x4 float matrix)
[out]outputPointsthe resulting set of 2D points define in the image coordinate systemn
Returns
FrameworkReturnCode::SUCCESS if 3D projection succeed, else FrameworkReturnCode::_ERROR.

◆ setCameraParameters()

void SolAR::MODULES::OPENCV::SolARProjectOpencv::setCameraParameters ( const datastructure::CamCalibration &  intrinsicParams,
const datastructure::CamDistortion &  distorsionParams 
)
override

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: