The final app will extract and visualize structure from motion on a pair of images. We will assume that these two images have been taken with the same camera, whose internal camera parameters we know. If these parameters are not known, they need to be estimated first in a camera calibration process.
The final app will then consist of the following modules and scripts:
- chapter4.main: This is the main function routine for starting the application.
- scene3D.SceneReconstruction3D: This is a class that contains a range of functionalities for calculating and visualizing structure from motion. It includes the following public methods:
- __init__: This constructor will accept the intrinsic camera matrix and the distortion coefficients.
- load_image_pair: This is a method used to load two images that have been taken with the camera described earlier from the file.
- plot_optic_flow...