Mission planning & redundant image detection in Agisoft Metashape Professional
Metashape 1.5 introduces functionality for obtaining optimal sets of camera positions based on rough model and creating mission plans using these optimal sets. This functionality may be used as well for analyzing excessive image sets to understand which images are useful and which are redundant. This tutorial covers both scenarios. Please note that these features are in the experimental stage and any feedback is highly appreciated.
This tutorial is for Metashape version 1.5.3.
Mission planning feature works as follows. At first, photos captured during a simple overhead flight are used to create a rough model. Then, a set of the viewpoints which are enough to cover the surface of the object with sufficient overlap is generated. Finally, a round-trip passing through all the generated viewpoints is computed and can be saved in KML file format. Complete workflow is described in the next section.
- Make an overhead flight over the region of interest to capture a basic imagery set. To capture vertical and concave surfaces better, you may use a 3d-photogrammetry survey preset in your drone app instead of taking only nadir photos.
Import photos to Metashape and align them, then build mesh - a rough model of the object - from the sparse cloud.
- Specify "home point" for the drone close to the expected take-off point. This can be done by placing a Point shape on the rough model (use toolbar instrument to draw shapes in the Model View) and assigning label "home" (case-insensitive) to it (Properties dialog available from the Point shape context menu).
Open Tools -> Plan Mission dialog. Specify parameters according to the description given below (in the Plan Mission dialog parameters overview) and run processing. Round-trip will be available as one or more camera tracks in the workspace.
Select generated camera tracks and save them as KML files using Export Camera Track action in the context menu. Import files to drone app that supports KML flight plans with gimbal orientation e.g. Litchi.
Please note that each flight must be watched by a pilot ready to take manual control over the drone in case of gps issues or unreconstructed obstacles such as wires or trees.
Plan Mission dialog parameters overview
- Complete current survey: analyse current camera overlap and generate missing viewpoints for regions with poor coverage.
- Focus on model selection: to consider only selected triangles of the model as target for reconstruction. In any case all available triangles will be used for obstacle avoidance.
- Camera model: choose a camera from the list, with a certain focal length in mm.
- Capture distance: distance in meters which is preferred for taking photos from, measured from the surface of a rough model. In case some parts of the surface are not observable by cameras from the specified distance, more distant cameras will be used for those parts. For an unscaled model this option is disabled and the closest cameras will be given a higher priority.
- Image overlap: value that controls how many cameras should observe each point of the model.
- Max images: limits number of the cameras in the optimal set to be selected.
- Safety distance: distance from the object which is restricted for putting waypoints in or planning path through. Focus on selection parameter is ignored here - all parts of the object available in the rough model are considered.
- Min altitude: relative altitude to home point (in meters) which is restricted for putting waypoints in or planning path through.
Flight plan properties:
- Min waypoint spacing: minimal distance between consecutive waypoints. The default value is set to 0.5 meters according to DJI drones firmware.
- Max waypoints per flight: maximal possible number of waypoints per KML file. If flight plan has more waypoints than specified value, it will be split into chunks. The default value is set to 99 according to DJI drones firmware.
Reduce Overlap feature is made for analyzing excessive image sets to understand which images are useful and which are redundant.
- Align photos using entire dataset and build rough mesh from the sparse cloud.
Open Tools -> Reduce Overlap dialog. Specify preferred capturing distance (in meters) if your model is scaled. Descriptions for other available parameters are given in the Plan Mission dialog parameters overview.
- Run processing. After it, all cameras not included in optimal subset will get disabled.
Original dataset with excessive number of images - 2480 images, 6 h 50 min processing time:
Automatically selected cameras sufficient for the quality model - 833 images, 1 h 59 min processing time:
Successive runs of Reduce Overlap task will remove some cameras each time. This is an expected behaviour conditioned by the current implementation.