Single pixel distortion correction

23 views
Skip to first unread message

slawek sobotka

unread,
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

unread,
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 boofcv+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/boofcv/586e416c-4f03-40a9-9d42-e6f6b3d24570n%40googlegroups.com.


--
"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
Forward
0 new messages