Solar
Public Member Functions | List of all members
SolAR::api::geom::IUnproject Class Referenceabstract

Recovers 3D points defined in world coordinate system from a set of 2D points defined in the image coordinate system. UUID: 21113a74-de60-4a3c-8b65-f3112beb3dc6 More...

#include <IUnproject.h>

Inheritance diagram for SolAR::api::geom::IUnproject:
Inheritance graph
[legend]
Collaboration diagram for SolAR::api::geom::IUnproject:
Collaboration graph
[legend]

Public Member Functions

 IUnproject ()=default
 IUnproject default constructor.
 
virtual ~IUnproject ()=default
 IUnproject default destructor.
 
virtual void setCameraParameters (const SolAR::datastructure::CamCalibration &intrinsicParams, const SolAR::datastructure::CamDistortion &distorsionParams)=0
 this method is used to set intrinsic parameters and distorsion of the camera More...
 
virtual FrameworkReturnCode unproject (const std::vector< SolAR::datastructure::Point2Df > &imagePoints, std::vector< SolAR::datastructure::Point3Df > &worldPoints, const SolAR::datastructure::Transform3Df &pose=SolAR::datastructure::Transform3Df::Identity())=0
 This method unproject a set of 2D image points in the 3D world coordinate system. More...
 
virtual FrameworkReturnCode unproject (const std::vector< SolAR::datastructure::Keypoint > &imageKeypoints, std::vector< SolAR::datastructure::Point3Df > &worldPoints, const SolAR::datastructure::Transform3Df &pose=SolAR::datastructure::Transform3Df::Identity())=0
 This method unproject a set of 2D image points in the 3D world coordinate system. More...
 

Detailed Description

Recovers 3D points defined in world coordinate system from a set of 2D points defined in the image coordinate system. UUID: 21113a74-de60-4a3c-8b65-f3112beb3dc6

Member Function Documentation

◆ setCameraParameters()

virtual void SolAR::api::geom::IUnproject::setCameraParameters ( const SolAR::datastructure::CamCalibration intrinsicParams,
const SolAR::datastructure::CamDistortion distorsionParams 
)
pure virtual

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

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

◆ unproject() [1/2]

virtual FrameworkReturnCode SolAR::api::geom::IUnproject::unproject ( const std::vector< SolAR::datastructure::Keypoint > &  imageKeypoints,
std::vector< SolAR::datastructure::Point3Df > &  worldPoints,
const SolAR::datastructure::Transform3Df pose = SolAR::datastructure::Transform3Df::Identity() 
)
pure virtual

This method unproject a set of 2D image points in the 3D world coordinate system.

Parameters
[in]imageKeypointsthe set of 2D keypoints to unproject
[out]worldPointsa set of world 3D points resulting from the unprojection of the 2D image points
[in]posethe 3D pose of the camera (a 4x4 float matrix)
Returns
FrameworkReturnCode::SUCCESS if 3D projection succeed, else FrameworkReturnCode::_ERROR.

◆ unproject() [2/2]

virtual FrameworkReturnCode SolAR::api::geom::IUnproject::unproject ( const std::vector< SolAR::datastructure::Point2Df > &  imagePoints,
std::vector< SolAR::datastructure::Point3Df > &  worldPoints,
const SolAR::datastructure::Transform3Df pose = SolAR::datastructure::Transform3Df::Identity() 
)
pure virtual

This method unproject a set of 2D image points in the 3D world coordinate system.

Parameters
[in]imagePointsthe set of 2D points to unproject
[out]worldPointsa set of world 3D points resulting from the unprojection of the 2D image points
[in]posethe 3D pose of the camera (a 4x4 float matrix)
Returns
FrameworkReturnCode::SUCCESS if 3D projection succeed, else FrameworkReturnCode::_ERROR.

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