Hello,
Can anybody advise on an existing function (if it exists) or algorithm to undistort and align a depth image received from a ToF camera (IFM O3D312)?
The task is to get an object’s dimensions lying on a flat surface. The camera is rigidly mounted above the surface at a 15° angle.
I am looking for a way to “calibrate” the datum plane, so all dark pixels (above the datum) could be captured by the findContours function.
As you can see in the picture below, the points located further away from the camera are brighter than the ones that are closer to it since the internal camera calibration is not applied to the image grabbed with the Python script.
The camera’s proprietary software is able to do this job but it filters out some external contours that I would like to keep.