Multispectral data
UAT 365 Unmanned Aircraft Systems Technology for Smart Agriculture and Remote Sensing
Lesson
By the end of this module you will be able to
- Distinguish pixel values (DN) from reflectance and explain why calibration is needed
- Explain the roles of the calibrated reflectance panel (CRP) and the downwelling light sensor (DLS)
- Calibrate images with the empirical line method from two reference panels
- Explain how changing light during flight and band alignment affect vegetation indices
- Explain how photos become an orthomosaic, DSM and DTM, and compute crop height from them
Why this matters
The values in a camera image are digital numbers (DN), which depend on the sunlight at the time, the camera settings and the sensitivity of each band. The same rice leaf photographed in bright sun and under cloud gives very different DNs. Compute a vegetation index directly from DN, compare two weeks, and you may conclude the crop got worse when it was only cloudier that day. Calibration converts DN to reflectance, a property of the surface itself, so it can be compared across days and cameras.
Pixel values and reflectance
Reflectance is the fraction of incoming light a surface reflects, from 0 to 1. It is like measuring how white a sheet of paper is, which should not change whether the lights are bright or dim. DN is like the brightness you see in a photo, which does change with the light.
The MicaSense RedEdge-P comes with two items for this:
- Calibrated reflectance panel (CRP) with known reflectance in each band, photographed before and after each flight
- Downwelling light sensor (DLS2) on top of the drone, measuring incoming sunlight in each band throughout the flight, used to correct for changing light
The empirical line method
The empirical line method (Smith and Milton, 1999) uses at least two targets of known reflectance, fits a straight line between DN and reflectance, and applies that line to every pixel in the same band. The USGS report (2023) highlights this two-panel method for drone work. It must be done band by band, because each band has a different sensitivity.
Example 1. Calibrating two bands and computing NDVI
The assumed panels have 5% and 50% reflectance in both bands. Panel and leaf DNs are assumed values.
PANELS = (0.05, 0.50) # reflectance of the dark and bright panels
panel_dn = {"red": (3200, 26000), "nir": (2500, 21000)}
crop_dn = {"red": 5000, "nir": 20000} # DN of the rice leaf in each band
def calibrate(dn, dn_pair, rho_pair=PANELS):
gain = (dn_pair[1] - dn_pair[0]) / (rho_pair[1] - rho_pair[0])
offset = dn_pair[0] - gain * rho_pair[0]
return (dn - offset) / gain
rho = {band: calibrate(crop_dn[band], panel_dn[band]) for band in crop_dn}
ndvi_rho = (rho["nir"] - rho["red"]) / (rho["nir"] + rho["red"])
ndvi_dn = (crop_dn["nir"] - crop_dn["red"]) / (crop_dn["nir"] + crop_dn["red"])
print(f"reflectance red {rho['red']:.3f}, NIR {rho['nir']:.3f}")
print(f"NDVI from reflectance {ndvi_rho:.3f} vs from raw DN {ndvi_dn:.3f}")
reflectance red 0.086, NIR 0.476
NDVI from reflectance 0.695 vs from raw DN 0.600
NDVI from DN is clearly lower than the true value because the two bands differ in sensitivity and offset. Numbers from raw DN cannot be compared with other work or with thresholds in the literature.
Light changing during flight
If the panel is photographed in bright sun but cloud covers part of the field during the flight, those pixels get reflectance that is too low. The DLS measures light at each image, so it can correct by the light ratio. Cloud reduces light by different amounts in each band, so vegetation indices are affected too, not just reflectance.
Example 2. The effect of cloud without DLS correction
Assume thin cloud reduces light to 70% in the red band and 80% in NIR compared with when the panel was photographed.
true_rho = {"red": 0.06, "nir": 0.40}
light_ratio = {"red": 0.70, "nir": 0.80} # light at image / light at panel
def ndvi(r): return (r["nir"] - r["red"]) / (r["nir"] + r["red"])
raw = {b: true_rho[b] * light_ratio[b] for b in true_rho} # no light correction
fixed = {b: raw[b] / light_ratio[b] for b in raw} # corrected with DLS
for name, r in (("true", true_rho), ("no DLS correction", raw), ("with DLS correction", fixed)):
print(f"{name:<20} red {r['red']:.3f} NIR {r['nir']:.3f} NDVI {ndvi(r):.3f}")
true red 0.060 NIR 0.400 NDVI 0.739
no DLS correction red 0.042 NIR 0.320 NDVI 0.768
with DLS correction red 0.060 NIR 0.400 NDVI 0.739
Both bands read low, and NDVI reads slightly high. If cloud passes over only half the field, the map shows a boundary between the two halves that has nothing to do with the crop. Flying under uniform sky matters as much as calibration.
Band alignment
A multispectral camera uses a separate lens for each band, each looking from a slightly different position. Without band alignment, the same pixel in each band may be a different spot on the ground, and field bunds show false index values along their edges. MicaSense’s imageprocessing code (MIT licence) includes examples of panel calibration and image alignment that can be tried without a camera.
From photos to an orthomosaic and surface models
The survey in module 1 (Example 3) produces hundreds of overlapping photos, not a map. Software such as OpenDroneMap (ODM) turns them into map products with Structure from Motion (SfM) photogrammetry, which Westoby and colleagues (2012) describe as a low-cost tool for measuring the shape of the land surface:
- Find and match features. The software finds distinctive spots in each photo, such as the corner of a bund, and matches them across photos. Spots followed through several photos are tie points
- Recover the cameras. It estimates where each photo was taken and which way the camera pointed, together with the 3D position of the tie points. OpenSfM adds photos one at a time and repeatedly refines everything together with bundle adjustment
- Build a dense point cloud, millions of 3D points on the surface
- Build elevation models. A DSM (digital surface model) is the height of the top surface, including the crop canopy, trees and sheds. A DTM (digital terrain model) is the bare ground only. ODM builds them only when the
--dsmand--dtmoptions are set - Build the orthomosaic. Each photo is projected onto the surface model so that every pixel sits in its true map position, as if one photo had been taken from directly above every point at once. ODM writes it as a GeoTIFF that opens in QGIS; its resolution (default 5 cm per pixel) cannot be finer than the flight GSD
For multispectral data, the calibration in this module is applied during processing (ODM’s --radiometric-calibration option), so the output is one reflectance orthomosaic per band. This is the reflectance raster used for vegetation indices in module 3.
To tie the map to real coordinates, lay out ground control points (GCPs): marked targets whose positions are surveyed with RTK GNSS. ODM advises that at least 5 GCPs, spread evenly over the area, work for most jobs. Without them the map rests on the drone’s own GNSS and can shift by metres between dates, which ruins comparisons of the same field over time (module 5). Flooded paddies need care: smooth water reflects the sky and has no features that stay the same between photos, so matching may fail there.
A crop height model is the difference . Bendig and colleagues (2014) derived barley plant height from RGB drone surface models, found it agreed with ground measurements (), and used it to estimate biomass; lodged (flattened) crops were the main limitation. For a paddy, the DTM is best taken from a flight over the drained, bare field before transplanting.
Example 3. Rice height from DSM minus DTM
Mean DSM and DTM values in the six columns of the field from left to right (assumed). The ground slopes down 0.30 m towards the right-hand side.
DTM = [2.10, 2.04, 1.98, 1.92, 1.86, 1.80] # ground before transplanting, columns 1-6 (m)
DSM = [2.95, 2.90, 2.80, 2.70, 2.46, 2.34] # top of the canopy at 60 days (m)
chm = [s - g for s, g in zip(DSM, DTM)] # crop height model = DSM - DTM
flat = [s - min(DTM) for s in DSM] # wrong: one ground level for the whole field
print("column " + " ".join(f"{i:>5}" for i in range(1, 7)))
print("DSM - DTM " + " ".join(f"{h:5.2f}" for h in chm))
print("DSM - 1.80 " + " ".join(f"{h:5.2f}" for h in flat))
print(f"mean plant height {sum(chm) / len(chm):.2f} m, "
f"column 6 is {1 - chm[5] / max(chm):.0%} shorter than the tallest column")
column 1 2 3 4 5 6
DSM - DTM 0.85 0.86 0.82 0.78 0.60 0.54
DSM - 1.80 1.15 1.10 1.00 0.90 0.66 0.54
mean plant height 0.74 m, column 6 is 37% shorter than the tallest column
Rice in columns 5 and 6 is clearly shorter, the same area that has low NDVI in module 3, so two independent kinds of evidence point to the same spot. Subtracting a single ground level instead of the DTM adds the ground slope to the plant height: the left side looks 0.30 m taller than it is, a false pattern that has nothing to do with the crop.
Module lab
Lab: calibrating multispectral images
- Install the imageprocessing code following the project’s guide (Git LFS is required) and open the sample images
- Find the panel area in the image, compute the mean DN, and use Example 1 to calibrate the red and NIR bands
- Compare NDVI from raw DN with NDVI from reflectance and record the difference
- Compare images before and after band alignment and look at misaligned object edges
- If the lab has a camera, photograph the panel before and after a real flight, recording time, sky conditions and DLS values in the lab notebook
Common mistakes
Watch out
- Computing indices from raw DN and comparing across days
- Using one calibration line for all bands
- Photographing a shaded or dirty panel, or at an angle that catches glare
- Flying while clouds pass intermittently with no light data
- Skipping band alignment
- Reading plant height straight from the DSM without subtracting a DTM of bare ground
Summary
- DN depends on light and camera; reflectance is a surface property and must be derived before analysis
- The CRP provides the reference; the DLS corrects for light changes during flight
- The empirical line fits a straight line from at least two reference panels, band by band
- Uneven light and misaligned bands produce false index patterns
- SfM turns overlapping photos into a point cloud, DSM, DTM and orthomosaic; GCPs tie them to real coordinates, and DSM minus DTM gives crop height
Check your understanding
- The 5% panel gives DN 3,200 and the 50% panel DN 26,000. What is the gain of the line?
- Using question 1, what is the reflectance of a pixel with DN 14,600?
- A raw reflectance of 0.042 was captured when light was at 70%. What is it after correction?
- In one cell the DSM is 2.46 m and the DTM 1.86 m. How tall is the rice?
- What does skipping band alignment do to an index map?
Answers
- DN per unit reflectance
- Offset , so
- m
- Index values are wrong along object edges, because each band sees a different spot
Key formulas
| Empirical line (per band) | |
| Correcting for changing light | |
| Crop height model |
Key references
- MicaSense. RedEdge-P multispectral sensor [Product specifications]. EagleNXT. link
- MicaSense. imageprocessing: MicaSense RedEdge and Altum image processing tutorials (MIT License) [Software]. GitHub. link
- Smith, G. M., & Milton, E. J. (1999). The use of the empirical line method to calibrate remotely sensed data to reflectance. International Journal of Remote Sensing, 20(13), 2653–2662. link
- Sampath, A., Shrestha, M., While, M., & Scholl, V. M. (2023). Guidelines for calibration of uncrewed aircraft systems imagery (Open-File Report 2023–1033). U.S. Geological Survey. link
- Lillesand, T., Kiefer, R. W., & Chipman, J. (2015). Remote sensing and image interpretation (7th ed.). Wiley. link
- Westoby, M. J., Brasington, J., Glasser, N. F., Hambrey, M. J., & Reynolds, J. M. (2012). 'Structure-from-Motion' photogrammetry: A low-cost, effective tool for geoscience applications. Geomorphology, 179, 300–314. link
- Mapillary. Incremental reconstruction algorithm. OpenSfM documentation. link
- OpenDroneMap Authors. Outputs. OpenDroneMap documentation (Version 3.6.0). link
- OpenDroneMap Authors. Options and flags. OpenDroneMap documentation (Version 3.6.0). link
- OpenDroneMap Authors. Ground control points. OpenDroneMap documentation (Version 3.6.0). link
- Bendig, J., Bolten, A., Bennertz, S., Broscheit, J., Eichfuss, S., & Bareth, G. (2014). Estimating biomass of barley using crop surface models (CSMs) derived from UAV-based RGB imaging. Remote Sensing, 6(11), 10395–10412. link
Further reading
Study the assigned knowledge units in advance, review media and take the module quiz
In class / field
Intensive lab and field practice recorded in a lab notebook
Learning evidence: Lab notebook signed by the instructor