Multispectral cameras and calibration
UAT 455 Sensor, Camera and Thermal Imaging Technology for UAS
Lesson
By the end of this module you will be able to
- Explain multispectral camera designs with a separate lens per band
- Distinguish geometric from radiometric calibration
- Compute point shifts from radial lens distortion
- Compute band-to-band parallax and its effect on alignment
- Convert signal to reflectance with a reference panel and a light sensor
- Compute and interpret the NDVI vegetation index for mangroves
Why this matters
Mangroves beginning to decline still look green in ordinary colour images, but their red-edge and near-infrared reflectance changes first, so a multispectral camera gives earlier warning. These cameras usually have a separate lens for each band, though, and unless they are calibrated and aligned, vegetation indices computed from misaligned bands will be wrong along leaf edges and creek banks.
Multispectral cameras
Most drone multispectral cameras have a separate sensor and lens per band, for example blue, green, red, red edge and near-infrared, each with a narrow filter. The advantage is accurate reflectance per band; the drawback is that each band’s image comes from a slightly different position, and each lens distorts differently.
Two kinds of calibration are needed together:
| Calibration | Corrects | How |
|---|---|---|
| Geometric | Focal length, principal point and lens distortion | Photograph a checkerboard from many angles and estimate with Zhang’s (2000) method |
| Radiometric | Relation between pixel values and reflectance | Photograph a panel of known reflectance (Smith and Milton, 1999) and use a light sensor |
MicaSense’s image-processing code shows both undistortion and band alignment as examples.
Lens distortion
Real lenses do not project perfectly straight lines. Points far from the image centre shift inward or outward radially. A common model is , where is a normalised coordinate (divided by focal length) and the distance from the centre. Negative is barrel distortion, common in wide lenses (Szeliski, 2022).
Example 1 How many pixels does distortion move a point?
Calibration gives with a focal length of 4,000 pixels (assumed; ignored).
# radial lens distortion x_d = x (1 + k1 r^2) in normalised coordinates
k1, f_px = -0.12, 4000.0 # value from calibration (assumed) and focal length in pixels
for x in (0.1, 0.3, 0.6): # points on the horizontal axis (normalised coordinates)
xd = x * (1 + k1 * x * x)
print(f"x {x:.1f}: distorted {xd:.4f}, shift {(xd - x) * f_px:7.1f} px")
x 0.1: distorted 0.0999, shift -0.5 px
x 0.3: distorted 0.2968, shift -13.0 px
x 0.6: distorted 0.5741, shift -103.7 px
Near the centre a point moves only half a pixel, but at the edge () it moves 103.7 pixels towards the centre. Uncorrected, stitching misaligns at the edges and measurements from the image are wrong, so undistortion is always the first processing step.
Band-to-band parallax
Band lenses sit a few centimetres apart, so the same object appears at slightly different positions in each image: parallax. The shift is , with lens separation and range ; the closer the object, the larger the shift (Hartley and Zisserman, 2004).
Example 2 How much does flight height change band alignment?
The multispectral camera’s focal length is 1,400 pixels and two band lenses are 3 cm apart.
# parallax between two band lenses b apart: shift = f_px * b / Z
f_px, b = 1400.0, 0.03 # focal length (pixels), lens separation (m)
for z in (20, 40, 60):
print(f"range {z} m: band shift {f_px * b / z:.2f} px")
print(f"change between 40 and 60 m: {f_px * b / 40 - f_px * b / 60:.2f} px")
range 20 m: band shift 2.10 px
range 40 m: band shift 1.05 px
range 60 m: band shift 0.70 px
change between 40 and 60 m: 0.35 px
At 40 m the bands are offset by 1.05 pixels; at 60 m by 0.70, a difference of 0.35 pixels. That seems small, but mangrove leaf edges and water differ strongly, so even a fraction of a pixel spoils indices along edges. Software therefore aligns each image with image features rather than a single constant, and tall canopies nearer the camera shift more than the ground in the same image.
Radiometric calibration with reference panels and a light sensor
A camera’s raw pixel values depend on how bright the sunlight is, so images taken in bright sun and under cloud give different values even though the forest has not changed. Surveillance that compares the mangroves month by month must therefore convert pixel values to reflectance, the fraction of incoming light that is reflected, from 0 to 1, which does not depend on how bright the day is. The conversion has three steps.
- Correct the camera itself: subtract the dark-pixel offset, compensate for darkening towards the image edges (vignetting) and normalise by exposure time and gain, giving a signal proportional to the light entering the camera. MicaSense’s image-processing code shows this step as an example
- Photograph a reference panel, a panel whose reflectance the maker has measured, for example 49% in every band. Place it flat on the ground, away from anything that shades it, with no shadow on it, and capture it immediately before take-off and after landing on every flight (MicaSense). The ratio of the panel’s reflectance to its signal is the factor that turns signal into reflectance. With several panels, for example a dark and a bright one, a straight line can be fitted between signal and reflectance: the empirical line method, which gives reflectance within a few percent when it is planned and applied properly (Smith and Milton, 1999)
- Correct for light changing during the flight with a light sensor. A downwelling light sensor (DLS) mounted on top of the drone and facing the sky records the sky light in every band in the metadata of every image. When clouds pass during the flight, values can be scaled back to the light level at the time of the panel capture. The maker recommends using the DLS together with the panel, not instead of it (MicaSense)
Together: , where is the pixel signal, the panel signal and the light measured by the DLS when that image was taken.
Example 3 Converting signal to reflectance when cloud passes during the flight
Before take-off the team photographs the 49% reference panel together with a 5% check panel to confirm that the relation is really linear. During the flight over the mangroves a thin cloud cuts the light measured by the DLS to 80% of its value at the panel capture (all signals are assumed and have already passed step 1).
# radiometric calibration with a reference panel and a light sensor (DLS)
rho_panel = 0.49 # panel reflectance in both bands (from its certificate)
panel_sig = {"red": 11600.0, "nir": 12900.0} # mean panel signal before take-off (assumed)
e_panel, e_image = 1.00, 0.80 # DLS irradiance at panel time and when the image was taken
pixels = {"healthy mangrove": (663.0, 8003.0), "stressed mangrove": (1326.0, 5476.0),
"mudflat": (2273.0, 3580.0), "water": (568.0, 211.0)} # (red, nir) signals
k = {b: rho_panel * e_panel / s for b, s in panel_sig.items()} # reflectance per unit signal
for name, (red, nir) in pixels.items():
r_red, r_nir = k["red"] * red / e_image, k["nir"] * nir / e_image
print(f"{name:17s} red {r_red:.3f} nir {r_nir:.3f} (no DLS: red {k['red'] * red:.3f} nir {k['nir'] * nir:.3f})")
dark = {"red": 1190.0, "nir": 1320.0} # 5% check panel, photographed with the 49% panel
print("check panel (true 0.050):", ", ".join(f"{b} {k[b] * s:.3f}" for b, s in dark.items()))
healthy mangrove red 0.035 nir 0.380 (no DLS: red 0.028 nir 0.304)
stressed mangrove red 0.070 nir 0.260 (no DLS: red 0.056 nir 0.208)
mudflat red 0.120 nir 0.170 (no DLS: red 0.096 nir 0.136)
water red 0.030 nir 0.010 (no DLS: red 0.024 nir 0.008)
check panel (true 0.050): red 0.050, nir 0.050
The 5% check panel reads 0.050, matching its true value, so a straight line through zero works for this camera on this day; if it read far off, the team would use a line with an intercept from the empirical line method instead. Without the DLS correction, every pixel’s reflectance would be 20% low with the reduced light, for example 0.304 instead of 0.380 for healthy forest in the near infrared. Compared with last month’s flight in bright sun, healthy forest would appear to be declining.
The NDVI vegetation index
Healthy leaves absorb visible light, especially red, for photosynthesis and reflect a large share of near-infrared light; stressed leaves reflect more red and less near infrared (NASA Earth Observatory). The normalized difference vegetation index (NDVI) uses this difference:
where is each band’s reflectance; values range from −1 to +1. The index was proposed by Rouse et al. (1974), and Tucker (1979) showed that combinations of the red and near-infrared bands track vegetation well; today it is a standard Landsat product (USGS). NASA Earth Observatory gives rough guidance: dense forest about 0.6–0.8, shrubs and grassland about 0.2–0.3, and barren areas about 0.1 or below, while water, which reflects less near infrared than red, gives negative values. These are only guides, so surveillance looks at the change at the same spot between flights rather than single values.
Example 4 How well does NDVI separate healthy forest, stressed forest, mud and water?
Using the reflectances from Example 3, and comparing with NDVI computed from the raw, uncalibrated signals:
# NDVI = (NIR - Red) / (NIR + Red) from reflectance (Example 3) and from raw signals
refl = {"healthy mangrove": (0.035, 0.380), "stressed mangrove": (0.070, 0.260),
"mudflat": (0.120, 0.170), "water": (0.030, 0.010)}
raw = {"healthy mangrove": (663.0, 8003.0), "stressed mangrove": (1326.0, 5476.0),
"mudflat": (2273.0, 3580.0), "water": (568.0, 211.0)}
ndvi = lambda red, nir: (nir - red) / (nir + red)
for name in refl:
print(f"{name:17s} NDVI {ndvi(*refl[name]):+.2f} from raw signals {ndvi(*raw[name]):+.2f}")
drop = ndvi(*refl["healthy mangrove"]) - ndvi(*refl["stressed mangrove"])
print(f"healthy minus stressed: {drop:.2f}")
healthy mangrove NDVI +0.83 from raw signals +0.85
stressed mangrove NDVI +0.58 from raw signals +0.61
mudflat NDVI +0.17 from raw signals +0.22
water NDVI -0.50 from raw signals -0.46
healthy minus stressed: 0.26
Healthy mangrove gives 0.83 and stressed mangrove 0.58, a difference of 0.26; mudflat 0.17 and water −0.50. The team can therefore separate canopy from mud and water with NDVI and pin the spots whose value falls between flights for rangers to inspect. NDVI from raw signals is off by 0.02–0.05 because the two bands are not equally sensitive (the same panel gives signals of 11,600 and 12,900). Cameras whose bands differ more in sensitivity are off by more, and raw values from different days or cameras cannot be compared. Note also that NDVI is a ratio: if the light falls equally in every band, NDVI hardly changes but reflectance does, so work that uses reflectance directly, or light that changes unequally across bands, still needs the DLS correction.
Comparing NDVI on two dates: equal values, missing values and what you still cannot conclude
Mangrove monitoring compares the NDVI of the same spots on different days, but a difference, or an equality, is not yet a conclusion. The first issue is the calibration record of each day (reference panel and DLS). If one day has no record, the reader cannot tell whether the value changed because of the vegetation or the light, since light that changes unequally between bands can move NDVI even when the surface is the same. The second issue is pixels with no data, which make the denominator zero. The NDVI of such a pixel is undefined, so store it as empty and count the usable pixels. Never substitute 0, because 0 is a genuine NDVI for some surfaces. The third issue is the limit of the conclusion. A falling NDVI says the vegetation signal in the image fell, not that the whole site is in poor condition, and a rising NDVI does not confirm that the forest has recovered. Staff must visit the site to confirm.
Example 5 Same surface but lower NDVI, and empty pixels
One canopy has red reflectance 0.06 and near-infrared 0.42. On the second day the light changes so that the red band is 0.90 and the near-infrared band 0.70 of the first day (illustrative values). Then look at a plot of five pixels in which two have no data.
# same canopy (red, nir reflectance) seen under two lighting conditions
surface = (0.06, 0.42)
light = {"T1": (1.00, 1.00), "T2": (0.90, 0.70)} # relative light in (red, nir) bands
ndvi = lambda red, nir: None if red + nir == 0 else (nir - red) / (nir + red)
for day, (er, en) in light.items():
print(f"{day}: NDVI {ndvi(surface[0] * er, surface[1] * en):.3f}")
# pixels of one plot: (red, nir) signals, (0, 0) = no data
pixels = [(0.06, 0.42), (0.07, 0.40), (0.0, 0.0), (0.08, 0.38), (0.0, 0.0)]
vals = [ndvi(r, n) for r, n in pixels]
valid = [v for v in vals if v is not None]
print(f"valid {len(valid)}/{len(vals)}, mean of valid {sum(valid) / len(valid):.3f}")
print(f"wrong: no-data counted as 0 gives {sum(v or 0 for v in vals) / len(vals):.3f}")
T1: NDVI 0.750
T2: NDVI 0.690
valid 3/5, mean of valid 0.701
wrong: no-data counted as 0 gives 0.421
The surface did not change, yet NDVI fell from 0.750 to 0.690, a drop of 0.06, because the light changed unequally in the two bands. That is about a quarter of the 0.26 gap between healthy and stressed mangrove in Example 4, so it is easy to misread without the panel and DLS records. The five-pixel plot has 3 usable pixels, and the correct mean is 0.701 from the usable pixels. Putting 0 in the empty pixels gives 0.421, which makes the plot look degraded when the data were simply missing. A report must always state 3 of 5 pixels next to the mean.
Reading an image: the elements of interpretation
Calibrated values say what a pixel measures; an interpretation says what the thing is. Natural Resources Canada lists seven elements that an interpreter uses together (NRCan, 2025): tone, the relative brightness or colour; shape, where straight edges often mean farmed or built land and forest edges are usually irregular; size, judged against neighbouring objects; pattern, an orderly repetition such as evenly spaced ponds; texture, how often tone changes, smooth for grass and water and rough for a forest canopy; shadow, which shows height but can also hide a target; and association, what lies nearby, such as boats near a jetty. In the mangrove case a pale rectangle with straight edges in a regular pattern beside a creek is probably a pond, while a rough dark-green texture with long irregular shadows is canopy. No single element decides. The interpreter combines several, checks them against other bands such as the NDVI that separates canopy from mud and water (Example 4), and confirms in the field.
Shadow is the one element that can be turned into a number. On flat ground an object of height casts a shadow of length , where is the sun’s elevation above the horizon, so ; Shettigara and Sumerling (1998) used shadows in this way to estimate tree and building heights from satellite images.
Example 6 How tall is the tree that casts this shadow?
On the orthomosaic a mangrove tree casts a 9.6 m shadow across flat mud, measured at the GSD of 2.9 cm. The sun was 52° above the horizon, taken from the time and place of the flight and good to ±2° (assumed). The team compares the result with a LiDAR canopy height of 12.0 m (assumed).
import math
shadow, gsd, sun = 9.6, 0.029, 52.0 # shadow on flat mud (m, measured), GSD (m), sun elevation (deg, assumed)
lidar = 12.0 # canopy height from the LiDAR of module 4 (m, assumed)
def height(length, elevation):
return length * math.tan(math.radians(elevation))
h0 = height(shadow, sun)
lo, hi = height(shadow, sun - 2), height(shadow, sun + 2)
edge = 2 * gsd * math.tan(math.radians(sun)) # one pixel of error at each end of the shadow
print(f"height {h0:.2f} m; sun elevation +/-2 deg gives {lo:.2f} to {hi:.2f} m; shadow ends add +/-{edge:.2f} m")
print(f"LiDAR {lidar:.1f} m is {'inside' if lo <= lidar <= hi else 'outside'} the range")
print(f"the same tree at 25 deg sun casts {h0 / math.tan(math.radians(25)):.1f} m of shadow")
height 12.29 m; sun elevation +/-2 deg gives 11.44 to 13.21 m; shadow ends add +/-0.07 m
LiDAR 12.0 m is inside the range
the same tree at 25 deg sun casts 26.4 m of shadow
The shadow gives 12.3 m. The sun-angle uncertainty alone spreads it from 11.4 to 13.2 m, far more than the ±0.07 m from the shadow ends, so the sun elevation must be computed carefully from the time and place. The LiDAR height of 12.0 m lies inside the range, so the two methods agree. The last line shows the cost of a low sun: a 26.4 m shadow can hide a boat or a person, which is why search flights avoid low sun even though it shows relief well. The method assumes flat ground and a clearly visible shadow end; on a slope or where shadows merge it is only a rough estimate.
Module lab
Lab: lens calibration and band alignment
- Print a checkerboard, photograph it with the department’s camera from at least 15 angles, and calibrate with OpenCV (Zhang’s method)
- Record focal length, principal point, and reprojection error, then compute the edge shift with the code in Example 1
- If a multispectral camera is available, capture at two heights and compare band misalignment with the code in Example 2
- Align bands with the MicaSense code and compare vegetation indices along edges before and after
- Convert images to reflectance from the reference-panel image with the code in Example 3 (using the department’s camera or the sample images in the MicaSense code), then compute NDVI for canopy, mud and water with Example 4
Common mistakes
Watch out
- Doing only radiometric calibration without correcting lens distortion
- Photographing the checkerboard from one angle or not covering the edges, giving a wrong
- Using old calibration after the camera is dropped or the lens changed
- Aligning bands with a constant when parallax changes with range
- Computing indices from unaligned bands
- Computing NDVI from raw signals, or not capturing the reference panel before and after the flight, so values from different days cannot be compared
Summary
- Multispectral cameras usually have a lens per band and need both geometric and radiometric calibration
- Radial distortion can move edge pixels by tens of pixels
- Parallax varies with range, so bands must be aligned per image
- Recalibrate after impacts or lens changes
- Reflectance comes from a reference panel together with a DLS; only then compute NDVI and track change at the same spot
Check your understanding
- at with a focal length of 3,000 pixels. How many pixels does the point move?
- , lenses 2 cm apart, range 35 m. How many pixels of parallax?
- How do geometric and radiometric calibration differ?
- Why do tall treetops misalign between bands more than the ground?
- A leaf reflects 0.05 in red and 0.35 in near infrared. What is its NDVI?
Answers
- pixels
- pixels
- Geometric corrects image positions (focal length, principal point, distortion); radiometric corrects the relation between pixel values and reflectance
- Treetops are closer to the camera, so is smaller and the shift larger
Key formulas
| Radial distortion | |
| Parallax between lenses | |
| Reflectance from a reference panel and DLS | |
| NDVI vegetation index |
Key references
- Zhang, Z. (2000). A flexible new technique for camera calibration. IEEE Transactions on Pattern Analysis and Machine Intelligence, 22(11), 1330–1334. link
- Szeliski, R. (2022). Computer vision: Algorithms and applications (2nd ed.). Springer. link
- Hartley, R., & Zisserman, A. (2004). Multiple view geometry in computer vision (2nd ed.). Cambridge University Press. 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
- MicaSense. (2026). Best practices: Collecting data with MicaSense sensors [Knowledge base article]. MicaSense Knowledge Base. link
- MicaSense. (2023, January 11). What does RedEdge's downwelling light sensor (DLS) do for my data? MicaSense Knowledge Base. link
- Rouse, J. W., Haas, R. H., Schell, J. A., & Deering, D. W. (1974). Monitoring vegetation systems in the Great Plains with ERTS. Third ERTS-1 Symposium, NASA. link
- Tucker, C. J. (1979). Red and photographic infrared linear combinations for monitoring vegetation. Remote Sensing of Environment, 8(2), 127–150. link
- NASA Earth Observatory. (2000, August 30). Measuring vegetation (NDVI & EVI). link
- U.S. Geological Survey. Landsat normalized difference vegetation index. link
- Natural Resources Canada. (2025). Elements of visual interpretation. In Fundamentals of remote sensing (tutorial). link
- Shettigara, V. K., & Sumerling, G. M. (1998). Height determination of extended objects using shadows in SPOT images. Photogrammetric Engineering & Remote Sensing, 64(1), 35–44. link
Further reading
Study the assigned knowledge units in advance, review media and take the module quiz
Aligning multispectral images
MicaSense imageprocessing
M08 Environmental monitoring: from images of different dates to observations that need a field check
Limitations of RGB and thermal imagery
In class / field
Lab or field practice from worksheets with a safety checklist
Learning evidence: Checked worksheets and quiz results