Function mrpt::img::camera_geometry::undistort_points(const std::vector<mrpt::img::TPixelCoordf>&, std::vector<mrpt::img::TPixelCoordf>&, const mrpt::img::TCamera&)
Defined in File camera_geometry.h
Function Documentation
-
void mrpt::img::camera_geometry::undistort_points(const std::vector<mrpt::img::TPixelCoordf> &distortedPixels, std::vector<mrpt::img::TPixelCoordf> &undistortedPixels, const mrpt::img::TCamera &cameraParams)
Remove lens distortion from pixel coordinates (batch version).
Converts distorted pixel coordinates to undistorted pixel coordinates using iterative refinement. The output pixels can be used with the undistorted camera model (distortion=none).
- Parameters:
distortedPixels – [IN] Distorted pixel coordinates as captured by camera
undistortedPixels – [OUT] Undistorted pixel coordinates (resized automatically)
cameraParams – [IN] Complete camera model including distortion parameters