Creation of Orthophotos with Cloud Compare and Bundler

0
1175

After the AirPhotoSE article for Windows platforms, I found it interesting to do the same but on Mac OsX or Linux, so I started investigating the workflows between SFM tools and point cloud analysis.

The workflow practice of AirPhotoSE is really simple for creating orthophotos from image mosaics and therefore more or less easy to reproduce without the need for this particular tool.

When we use the Bundler tool, which as I indicated in another monographic article about it, is nothing more than a package containing the typical tools for SFM PMVS2, CMVS and Sift for detecting common points between images, all directed by a series of scripts that each author proposes in a more or less automated way, and which have become very popular for creating 3D models or photogrammetry in the fields of archaeology, heritage, or scientific photography.

When we create a 3D model from Bundler, the process generates a good number of auxiliary files that exchange information between the different SFM tools. Often all of them are contained in the directory called Bundler, which is generated alongside the images used in the project.

Inside this folder we will find the necessary files to create the orthophotos; for this, we must locate the following documents:

  • bundle.out
  • list.txt
  • pmvs/models/option-000.ply

snavely cloud compare, ortofotosWith these three files, we already have all the information to go to Cloud Compare (CC) and in the Open menu choose the file type “Snavely’s Bundler Output”; then a dialog will open with the following options:

Import Images: Image List, which indicates the path to our list.txt file, with the list of images we need to load.

The options “Generate 2D Orthophotos,” “Undistort images,” and “Keep Images in Memory” as basic options to have activated. Optionally, we must activate the “Alternative Keypoints” option with the path to our .ply point cloud. In the tests I have conducted on Mac OsX and Linux, I have always needed this option activated; however, in tests with Windows, it was not necessary.

Once we activate OK on this window, the orthophoto mosaic creation process is triggered, which we can follow in the CC console (F8). When this process finishes, in our Bundler directory, a series of orthophotos should appear, correctly rectified in PNG format.

For stitching this image mosaic, depending on the type and degree of rectification of the images, we can use panorama assembly programs like Hugin; however, it is not always feasible, since these tools are designed to process captures resulting from camera rotation movement and not displacement. Although Hugin, for example, can create mosaic-type panoramas or from images captured with flatbed scanners, the reality is that the process can become somewhat complex. The tool Autopano Giga does achieve good results with this type of mosaics, unfortunately it is paid. A very quick choice to assemble this type of images is offered by the panorama tool Microsoft Image Composite Editor (ICE), which despite being free, is obviously only for Windows, but it has a powerful image stitching engine, as it incorporates options for Planar Motion that yield excellent results in this process and which is part of the workflow with AirPhotoSE.