Going forward, we will be using a famous open source dataset called fountain-P11. It depicts a Swiss fountain viewed from various angles:
The dataset consists of 11 high-resolution images and can be downloaded from https://icwww.epfl.ch/multiview/denseMVS.html. Had we taken the pictures ourselves, we would have had to go through the entire camera calibration procedure to recover the intrinsic camera matrix and the distortion coefficients. Luckily, these parameters are known for the camera that took the fountain dataset, so we can go ahead and hardcode these values in our code.
Let's prepare the main routine function in the next section.