Step 1 - Points Selection

 

In order to calibrate a catadioptric system you need a minimum of three line projections. The GUI allows you to manually select the lines in an image.

 

ManualSelectionGUI(filename);

 

To call the GUI you just need to introduce the above command with <filename> being the catadioptric image. The file type must be supported by the IMREAD function.

 

Before exiting, the program writes a file 'filenamePoints.mat' with the matlab variables X, Y (point coordinates) and img (the image). X and Y are m x n with n being the number of lines and m the number of point of the longest line.

  

In the image below you have an overview of the GUI (click on the image to see the animation).

 

 

First, apply the edge detection to the image pressing the "Edge Detection" button.

 

You need to select more than three lines in the image and these lines have to be isolated. To obtain isolated lines you can erase line intersections pressing the button "Erase Area".

 

Pressing the option button "Connected" you can select and associate fragments of a line.

 

Finally, don’t forget to press "NewSet" button to start each new line selection and don't forget to save the set after each selection.

 

The result will be the input data for Calibration.