Solar
Public Member Functions | List of all members
SolAR::base::geom::AReprojectionStereo Class Reference
Inheritance diagram for SolAR::base::geom::AReprojectionStereo:
Inheritance graph
[legend]
Collaboration diagram for SolAR::base::geom::AReprojectionStereo:
Collaboration graph
[legend]

Public Member Functions

 AReprojectionStereo (std::map< std::string, std::string > componentInfosMap)
 AReprojectionStereo constructor.
 
virtual FrameworkReturnCode reprojectToUnrectification (const std::vector< SolAR::datastructure::Keypoint > &rectifiedKeypoints, const SolAR::datastructure::RectificationParameters &rectParams, std::vector< SolAR::datastructure::Keypoint > &unrectifiedKeypoints) override
 Reproject depth of rectified keypoints to unrectified keypoints. More...
 
virtual FrameworkReturnCode reprojectToCloudPoints (const std::vector< SolAR::datastructure::Keypoint > &undistortedKeypoints, const SRef< SolAR::datastructure::DescriptorBuffer > descriptors, const SolAR::datastructure::Transform3Df &pose, const SolAR::datastructure::CamCalibration &intrinsicParams, std::vector< SRef< SolAR::datastructure::CloudPoint > > &cloudPoints) override
 Reproject 2D keypoints with depths to 3D cloud points in the world coordinate system. More...
 
virtual FrameworkReturnCode reprojectToCloudPoints (SRef< SolAR::datastructure::Frame > frame, const SolAR::datastructure::CamCalibration &intrinsicParams, std::vector< SRef< SolAR::datastructure::CloudPoint > > &cloudPoints) override
 Reproject 2D keypoints with depths of a frame to 3D cloud points in the world coordinate system. More...
 
- Public Member Functions inherited from SolAR::api::geom::IReprojectionStereo
 IReprojectionStereo ()=default
 IReprojectionStereo constructor.
 
virtual ~IReprojectionStereo ()=default
 ~IReprojectionStereo
 

Member Function Documentation

◆ reprojectToCloudPoints() [1/2]

virtual FrameworkReturnCode SolAR::base::geom::AReprojectionStereo::reprojectToCloudPoints ( const std::vector< SolAR::datastructure::Keypoint > &  undistortedKeypoints,
const SRef< SolAR::datastructure::DescriptorBuffer descriptors,
const SolAR::datastructure::Transform3Df pose,
const SolAR::datastructure::CamCalibration intrinsicParams,
std::vector< SRef< SolAR::datastructure::CloudPoint > > &  cloudPoints 
)
inlineoverridevirtual

Reproject 2D keypoints with depths to 3D cloud points in the world coordinate system.

Parameters
[in]undistortedKeypointsThe undistorted keypoints of image.
[in]descriptorsThe descriptors corresponding to the keypoints.
[in]poseThe pose of image.
[in]intrinsicParamsThe intrinsic parameters of the camera.
[out]cloudPointsThe output cloud points.
Returns
FrameworkReturnCode::SUCCESS if reprojecting succeed, else FrameworkReturnCode::_ERROR

Implements SolAR::api::geom::IReprojectionStereo.

◆ reprojectToCloudPoints() [2/2]

FrameworkReturnCode SolAR::base::geom::AReprojectionStereo::reprojectToCloudPoints ( SRef< SolAR::datastructure::Frame frame,
const SolAR::datastructure::CamCalibration intrinsicParams,
std::vector< SRef< SolAR::datastructure::CloudPoint > > &  cloudPoints 
)
overridevirtual

Reproject 2D keypoints with depths of a frame to 3D cloud points in the world coordinate system.

Parameters
[in]frameThe frame including keypoints with their depth estimations.
[in]intrinsicParamsThe intrinsic parameters of the camera.
[out]cloudPointsThe output cloud points.
Returns
FrameworkReturnCode::SUCCESS if reprojecting succeed, else FrameworkReturnCode::_ERROR

Implements SolAR::api::geom::IReprojectionStereo.

◆ reprojectToUnrectification()

virtual FrameworkReturnCode SolAR::base::geom::AReprojectionStereo::reprojectToUnrectification ( const std::vector< SolAR::datastructure::Keypoint > &  rectifiedKeypoints,
const SolAR::datastructure::RectificationParameters rectParams,
std::vector< SolAR::datastructure::Keypoint > &  unrectifiedKeypoints 
)
inlineoverridevirtual

Reproject depth of rectified keypoints to unrectified keypoints.

Parameters
[in]rectifiedKeypointsThe rectified keypoints containing depth information.
[in]rectParamsThe rectification parameters.
[out]unrectifiedKeypointsThe unrectified keypoints for estimating depth information.
Returns
FrameworkReturnCode::SUCCESS if reprojecting succeed, else FrameworkReturnCode::_ERROR

Implements SolAR::api::geom::IReprojectionStereo.


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