Undistorting the images coming from LeapMotion using
Correction using bilinear interpolation (C++)
halved the frame rate for my application, and I was thinking of undistorting only the certain points on the raw(distorted) image - instead of undistorting the whole raw image.
For example, take one point in the raw(distorted) image (e.g. (150, 200) ) and I want to calculate where this point would land on the undistorted image.
From my observation, undistorting algorithm goes likes this:
1. take a point on undistorted image.
2. find where this point would land on the raw(distorted) image.
3. take that pixel from the raw(distorted) image, and display it as the undistorted image.
and no way for going backward.
Is there any method to do this?
Thank you in advance.