Ingest and photogrammetry

On this page 10

Frames and a flight log go in. Georeferenced, calibrated raster layers come out. This is the stage that is normally rented per hectare, and the one where the open source alternatives are strongest.

Geotagging

StepDetail
MatchShutter trigger events in the flight log to frame files, in order, with a count check
InterpolateThe exposure falls between GNSS epochs. Interpolate the trajectory to the exposure timestamp
Lever armApply the measured offset from the GNSS antenna phase centre to the camera's optical centre
AttitudeRecord roll, pitch and yaw at exposure, for projecting the frame footprint
WriteEXIF GPS tags plus a sidecar with the full pose and its uncertainty

See Positioning. The lever arm is the step everybody skips and it is systematic, so it does not average out.

Radiometric calibration, for multispectral

Run this before anything else touches the pixels.

  1. Dark current and vignetting, per band, from the camera's calibration data.
  2. Panel calibration: the reflectance panel imaged before and after the flight gives the digital-number to reflectance scaling.
  3. Downwelling correction: the light sensor's per-frame irradiance handles cloud passing during the flight.
  4. Band alignment: separate lenses see slightly different scenes. Register the bands with feature matching before computing any index.

The reference implementation everybody learns from is MicaSense's own imageprocessing notebooks. Read them, then write your own, because the discipline has to fit your workflow.

Without this, a "change layer" is largely a record of the weather. See disease detection.

Photogrammetry

OptionLicenceNotes
OpenDroneMap via NodeODMAGPL-3.0Reconstruction pipeline candidate; review the selected components and integration
COLMAPBSDStructure from motion, permissive, excellent
OpenMVSAGPL-3.0Dense reconstruction. Check the licence against your product
OpenMVGMPL-2.0Structure from motion with file-level copyleft
MicMacCeCILL-BReconstruction candidate; review its licence and external tools

A batch boundary does not establish licence compliance. Review the selected versions, modifications, dependencies, distribution and network interaction. In particular, OpenMVS remains AGPL-licensed when paired with BSD-licensed COLMAP. See the licence table and the GNU licence FAQ before choosing a reconstruction integration.

Getting a good reconstruction

ParameterPlan and verify
Forward and side overlapChoose for the scene and required views; use ODM collection guidance as a starting point
Altitude consistencyCompute height above the actual surface and check resulting GSD throughout the route
ShutterCalculate motion smear from speed, exposure and GSD; inspect angular motion and vibration too
IlluminationRecord lighting and shadow changes rather than assuming one sun angle works for every surface
Ground controlDesign surveyed control and independent checkpoints for the required output accuracy

See the worked mapping example for complete geometry, overlap, frame-count and exposure inputs. There is no universal overlap percentage below which every reconstruction fails, and a fixed shutter speed does not establish a pixel-blur limit for every camera.

Runtime

No reconstruction-time benchmark is qualified here. The example's 770 planned frames and approximately 1.63 cm/px GSD do not imply a fixed runtime. Before sizing a processing machine, retain a benchmark record with:

  • Dataset identity or hash, actual image count and dimensions, sensor and scene.
  • Exact ODM or alternative version, container digest, reconstruction options, output resolution and enabled stages.
  • CPU, GPU and driver, RAM, storage, operating system and worker concurrency.
  • Cold or warm run conditions, wall time, peak memory, per-stage results and output quality against independent checkpoints.

Use the measured record to plan capacity. Queue the workload with bounded retries and retained stage outputs so a failed reconstruction does not erase the source flight. Until that orchestration is implemented and qualified, this is a design requirement rather than an unattended-service claim.

Raster derivatives

These tools are available under open-source licences. Retain the required notices and review the licences of the selected versions and dependencies.

LayerToolNote
OrthomosaicODM output, or per-frame projectionFor many capabilities per-frame is enough. See below
DSM and DTMODM, or PDAL from the point cloudThe DTM is what drainage needs
Slope, aspectgdaldemOne command
Flow accumulation, depressionsWhiteboxTools, pysheds, GRASS r.watershedThe drainage layer
Vegetation indicesrasterio plus numpyArithmetic
ReprojectionPROJ via pyproj or gdalwarp
Web imageryCloud Optimized GeoTIFF plus overviewsSee Platform

You often do not need a mosaic

A full photogrammetric stitch is expensive and, for several capabilities, unnecessary. If every frame has an accurate pose, you can project its corners onto the ground and place detections in field coordinates directly, then deduplicate across overlap.

CapabilityNeeds a stitch?
Field mappingYes. The stitch is the product
Disease, fertilisationYes, for continuous index maps
Weed controlNo. Detections in field space are enough
PestNo, on a fixed route
WildlifeNo. Points, not pictures
Yield countingNo, with careful de-duplication
IrrigationYes, and use RGB frames to solve the geometry for the thermal ones

Skipping the mosaic where it is not needed is the single largest processing cost saving available, and it also removes hours of latency between landing and a usable result.

Thermal alignment

Thermal frames over a uniform canopy have almost no features to match, so they mosaic badly on their own. Fly an RGB camera alongside, solve the geometry from the RGB frames, and apply that solution to the thermal frames using the fixed transform between the two. It is the most useful trick in the whole thermal pipeline.

Publishing a stitch to the site

The web derivative, not the master:

gdal_translate -of WEBP -outsize 3000 0 -co QUALITY=82 ortho.tif ortho-web.webp

Then attach it to the flight record, with the footprint in the field's normalised space:

buddy imagery:attach ./ortho-web.webp --bounds="-0.04,-0.03,1.05,1.02" --resolution 4

The footprint comes out of the GeoTIFF rather than being guessed: read the geotransform, express the image's corners in the field's own bounding box, and that is your minX,minY,maxX,maxY. See The field map for why the equals sign is required and why the bounds matter.

Quality gates

Write these as automated checks that fail the flight rather than as things somebody notices later:

CheckFails when
Frame count against trigger countA card wrote fewer frames than the aircraft triggered
Pose coverageAny frame without an interpolated pose
RTK fix ratioBelow the project threshold, with per-frame uncertainty and checkpoint evidence retained
Checkpoint residualAbove the tolerance for the capability
Reconstruction coverageHoles inside the boundary
Calibration presentA multispectral flight with no panel capture
Ground resolutionAchieved GSD outside the planned range

A failed gate prevents publication of a qualified output. Retain the reason and source data, then decide whether calibration, reprocessing or new acquisition is needed. This gate list describes the intended qualification workflow; see the mapping implementation roadmap.

Released under the MIT License.