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

Undistorts a set of points according to the distortion matrix of a camera. UUID: d926e249-8b7f-46e0-8cbd-f981ceb8f921 More...

#include <SolARUndistortPointsOpencv.h>

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

Public Member Functions

void unloadComponent () override final
 
FrameworkReturnCode undistort (const std::vector< datastructure::Point2Df > &inputPoints, std::vector< datastructure::Point2Df > &outputPoints) override
 This method corrects undistortsion to a set of 2D points. More...
 
FrameworkReturnCode undistort (const std::vector< datastructure::Keypoint > &inputKeypoints, std::vector< datastructure::Keypoint > &outputKeypoints) override
 This method corrects undistortsion to a set of 2D keypoints. More...
 
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...
 

Detailed Description

Undistorts a set of points according to the distortion matrix of a camera. UUID: d926e249-8b7f-46e0-8cbd-f981ceb8f921

Member Function Documentation

◆ setCameraParameters()

void SolAR::MODULES::OPENCV::SolARUndistortPointsOpencv::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.

◆ undistort() [1/2]

FrameworkReturnCode SolAR::MODULES::OPENCV::SolARUndistortPointsOpencv::undistort ( const std::vector< datastructure::Keypoint > &  inputKeypoints,
std::vector< datastructure::Keypoint > &  outputKeypoints 
)
override

This method corrects undistortsion to a set of 2D keypoints.

Parameters
[in]inputKeypointsthe set of 2D keypoints to correct
[out]outputKeypointsthe undistorted 2D keypoints
Returns
FrameworkReturnCode::SUCCESS if 2D transformation succeed, else FrameworkReturnCode::_ERROR.

◆ undistort() [2/2]

FrameworkReturnCode SolAR::MODULES::OPENCV::SolARUndistortPointsOpencv::undistort ( const std::vector< datastructure::Point2Df > &  inputPoints,
std::vector< datastructure::Point2Df > &  outputPoints 
)
override

This method corrects undistortsion to a set of 2D points.

Parameters
[in]inputPointsthe set of 2D points to correct
[out]outputPointsthe undistorted 2D Points
Returns
FrameworkReturnCode::SUCCESS if 2D transformation succeed, else FrameworkReturnCode::_ERROR.

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