Single pixel distortion correction

Skip to first unread message

slawek sobotka

Mar 30, 2022, 1:58:43 PMMar 30
to BoofCV
Hi, we are dealing with image processing that is focused on finding "holes". I need speed so I need to correct distortion of only one pixel instead of whole picture.
We can do some calibration at the beginning of the process.

So my question is: is there any algebraic formula for one pixel or maybe source code at the guts of BoofCV that can correct single point?

Peter A

Mar 30, 2022, 6:03:02 PMMar 30
to boofcv
Lens distortion right? BoofCV does undistort on contours for speed throughout its codebase. Here's an abstract way to compute the transform. In this case it's converting it from pixels to pixels. You could use normalized image coordinates too.

LensDistortionNarrowFOV narrow = LensDistortionFactory.narrow(intrinsics);
Point2Transform2_F32 undistortPixelToPixel = narrow.undistort_F32(/* input pixel */ true, /* output pixels */ true);
undistortPixelToPixel.compute(distorted.x, distorty.y, undistorted);

You received this message because you are subscribed to the Google Groups "BoofCV" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

"Now, now my good man, this is no time for making enemies."    — Voltaire (1694-1778), on his deathbed in response to a priest asking that he renounce Satan.
Reply all
Reply to author
0 new messages