Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Process Drone (UAV) Imagery

Acquire Aerial Drone Imagery

Collecting aerial imagery has become amazingly easy thanks to autopilot-controlled drones. Today, most drones come with programs for shooting aerial imagery and Structure-from-Motion (SfM)-based digital elevation models (DEMs). Since drone control is model-dependent (e.g., we use a dji Phantom 4 RTK drone for aerial surveys), this tutorial only describes basic settings for shooting aerial imagery and focuses on image processing to create DEMs.

Recommendations for survey flights with drones:

In addition, an imagery-based DEM can also be built for shallow, clear waters (i.e., bathymetries) but other measurement techniques (e.g., Lidar or Sonar) are required for deeper waters (> 0.5 m water depth). Also, imagery-based bathymetry should be validated or corrected with local DGPS or total station measurements.

Metashape

The below figure shows the Metashape interface at program startup, ready for playing with drone imagery and SfM.

metashape agisoft gui interface

Figure 1:The initial Metashape interface.

Create a New Project

To get started, create a new project and save it (as .psx file) preferably one folder level above the images directory. Next, familiarize with the interface and explore the numerous workflows provided in the Workflow menu.

Load Images

Images may be loaded file-by-file, or much easier, from an entire directory. To add a directory (i.e., folder) containing aerial imagery from a single-camera drone, go to the Workflow menu > Add folder > Select folder containing images > Single cameras.

Align Images

When the drone flies over terrains, it sometimes needs to change its direction or position, but it always knows where it is (absolutely or relative to a ground station) if RTK-GPS data is available. As a result, the images may have been taken at different angles and different positions. To merge the images into one big picture of the terrain, the images need to be aligned by matching points that are visible on multiple images. The big picture can be created with Metashape’s alignment tool: go to Workflow > Align Fotos and consider the following settings in the popup window (see figure below) with the Advanced frame expanded:

metashape align fotos images pictures

Figure 2:The align fotos popup window in Metashape.

When the alignment is accomplished, produce a coarse point cloud (select from the Tools menu). A qualitatively good coarse point cloud is characterized by at least 100 tie points per m2^2 or more than 50.000 tie points per 100 images (with a resolution of 4605x3227). In addition, verify errors with a click on the Reference ribbon (typically at the bottom left of the Metashape window). The longitude/latitude error should be \leq 2 cm.

Build Dense Point Cloud

When the quality is sufficient and the error is acceptably low, proceed with building a dense point cloud (select from the Workflow menu). In the dense point cloud popup window (see also figure below), make the following settings:

metashape dense point cloud

Figure 3:The dense point cloud popup dialogue in Metashape.

The quality of the dense point cloud can be considered good if the process found:

Create DEM

The dense or coarse point cloud can be used with many other workflows and the creation of a DEM is only one option. To create a DEM, go to Workflow > Build DEM and consider the following aspects in the build DEM popup window (see figure below):

The OK button launches the DEM creation, which may take again 5-30 minutes.

metashape dem dgm digital elevation model geotiff

Figure 4:The DEM creation popup dialogue in Metashape.

Finally, export the DEM with a right-click on the DEM in the Workspace (if the DEM is not visible, expand the Chunk 1 entry - or whatever name it has - in the Workspace) and select Export DEM.... We recommend to save the DEM in GeoTIFF (.tif) format, which is compatible with QGIS. If .tif was selected, a popup window for exporting the DEM opens. In the popup window, check the export world file option and keep all other defaults (optionally, create a .kml file for working with GoogleEarth). The world file will be important for QGIS (and any other GIS software) to know where the DEM is geographically located with respect to the selected projection.

Create a Mesh

Similar to the DEM workflow, Metashape provides a workflow for creating a mesh (Workflow > Build Mesh) in the form of a triangulated irregular network (TIN). The Source data options are similar to the ones in the DEM workflow, with an additional option of using the DEM for meshing. Also for a mesh, High quality and face counts result in the best representation of the terrain and high computing costs. If the goal of the mesh generation is its usage with a numerical model, lower quality and face counts might be a good choice to keep the time for running the numerical model low. The mesh generation takes again 5-30 minutes.

metashape mesh creation stl numerical model

Figure 5:The mesh creation popup dialogue in Metashape.

Once the mesh creation is finished, it can be exported with a right-click on the 3D Model entry in the Workspace and a left-click on Export Model.... If the 3D Model is not visible in the Workspace, expand the Chunk 1 entry (or whatever name it has). For use with a numerical model (e.g., OpenFOAM), the STL (.stl) format is a good choice.