Skip to main content
. 2023 Nov 1;23(21):8889. doi: 10.3390/s23218889
Algorithm 1: Pseudocode of objective function definition
Input: Point cloud edges data, camera image edges data, calibration parameters.
Output: Objective function value.
1. Initialize a pixel coordinates pool Pool to store the pixel coordinates that have already contributed in the objective function calculation, initialize the objective function value as Obj.
2. Use the calibration parameters to project the point cloud edges data onto the camera image plane, which results in a list containing the corresponding pixel coordinates ListP.
for pixel (x,y) in ListP do
3. if (x,y) not in Pool then
Add the pixel value with coordinate (x,y) in the camera image edges data Icx,y to the objective function value Obj.
Add the coordinate (x,y) into the pool Pool.
4. Return the objective function value Obj.