Hi Tboon,
As I understand, you want to know about the computational requirements of using camera calibration parameters, specifically for distortion correction.
Kindly refer to the link of the below example of a camera calibration routine. On running the camera calibration in the example, you obtain the intrinsic, extrinsic, and distortion coefficients for the camera.
The images captured by the camera often have artifacts that can be corrected using the distortion coefficients to produce undistorted images. This process can be performed using the following MATLAB code:
I = imread('image.png');
imageSize = [size(I, 1), size(I, 2)]; %calculate the rows and columns
cameraParams = estimateCameraParameters(imagePoints, worldPoints, 'ImageSize', imageSize);%get camera paramenters in cameraParams object
J1 = undistortImage(I, cameraParams);%remove distortion
To get an estimate of CPU usage, information on camera calibration routine and image un-distortion process, you may refer to the link of MathWorks documentation mentioned below:
For precise execution time measurements, you can consider profiling your code to improve performance. For further information on “profiling”, you may refer to the link mentioned below:
I hope this helps!