RawGeo Balance: Brightness and Color Balancing of Aerial Images Before the Orthomosaic
Published: · Updated:
RawGeo Balance is a Fastvideo application that evens out brightness and color across the frames of an aerial survey before the orthomosaic is built: it computes a correction for every source frame, RAW or JPEG, so that the same ground looks the same in every frame and the orthomosaic has no visible seams. On a survey of 692 JPEG frames with cloud shadows, the brightness difference of the same ground in two frames fell from 0.25 to 0.03 exposure stops, with no loss of local contrast.
Status, October 2026: in development. The results on this page were obtained with the prototype. Writing the corrected frames has already been moved to C++: on an Intel Core i7-3820 CPU (2012) the 692 JPEG frames of 3648×2736 are written in 246 s, 0.36 s per frame. Processing times on the GPU will be published after the CUDA version, which also decodes JPEG on the GPU.
Why balance the frames, not the mosaic
An orthomosaic is assembled from hundreds or thousands of frames, and any difference in brightness or color between neighboring frames becomes a visible seam. Even with fixed camera settings, frames of one flight differ by tenths of a stop; frames from different flights and cameras differ more.
Photogrammetry software balances color on the finished mosaic, and aerial camera makers balance it for data from their own cameras. A correction made on the mosaic cannot be taken back to the source frames: it cannot be passed to a RAW converter or checked frame by frame. RawGeo Balance corrects every source frame instead, from an analysis of the images themselves.
| Question | Balancing the finished mosaic | Balancing every source frame (RawGeo Balance) |
|---|---|---|
| Can the result be checked frame by frame? | No: the correction exists only in the mosaic | Yes: each frame has its own correction |
| Can it be used with RAW? | No: the mosaic is already rendered | Yes: the corrections are passed to the RAW converter |
| Which photogrammetry software? | The one that built the mosaic | Any: corrected frames go into any software |
| Which cameras? | Depends on the software | Any camera whose RAW or JPEG format we read |
Result on a survey with cloud shadows
The orthomosaic on the left was built in Agisoft Metashape from the original frames; the one on the right, in Metashape from the same frames after RawGeo Balance. The dark band on the left is cloud shadow.
| Frame pairs | Before | After |
|---|---|---|
| Pairs used to compute the corrections | 0.253 / 1.337 | 0.030 / 0.131 |
| Check pairs, not used in the computation | 0.247 / 1.369 | 0.032 / 0.141 |
The residual on the check pairs is almost the same as on the pairs used for the computation: the corrections are not fitted to the data they were computed from.
- Local contrast in brightened areas is kept: the same as with a plain brightness gain (ratio 1.05).
- Color in cloud shadows (shadows 1.7–2.6 stops deep): on gray surfaces R/G was +0.43 and became +0.08, B/G was −0.53 and became +0.06.
- Seams: on 45.9 % of the measured seam length the difference is not visible (ΔE < 1, CIEDE2000); a clearly visible difference (ΔE ≥ 5) remains on 0.6 %.
- Overall white balance. Gray surfaces are greenish in the original frames — that is how the camera rendered them. One white-balance adjustment for the whole survey was computed from several gray objects in different frames, in sun and in shadow (concrete, concrete slabs, slate roofs), and added to the correction of every frame; a single point is not enough for this. It removes half of the green cast: on a concrete yard R/G went from −0.39 to −0.21 and B/G from −0.23 to −0.11. The resulting color correction is not uniform across the orthomosaic: it is computed for every frame and its parts.
What data it needs
- Frames and metadata. RAW is best: exposure, aperture, ISO, black and white levels, Bayer pattern, camera model. JPEG works too, but brightness and color can be restored only approximately.
- Point correspondence between frames, accurate to a few meters on the ground: which point of one frame shows the same ground as which point of another.
- Capture time (UTC) and location — for the position of the sun.
- Which camera took each frame and with which white balance; for more accurate color, a camera calibration or a color chart in the frame.
| Option | Input | What it gives |
|---|---|---|
| Photogrammetry results | frames + camera positions and orientations exported from Agisoft Metashape, Pix4D or ODM + DEM | full correction, including the sun and viewing angle |
| Orthomosaic without cameras | frames + an orthomosaic (+ DEM) | every frame registered to the orthomosaic |
| Photo alignment from GNSS data | frames + onboard GNSS logs | camera positions and orientations, used only for the correction |
| GNSS + IMU | frames + camera position and attitude for every frame | correction without photo alignment |
| Frames only | frames | frame-to-frame balancing; no correction for the sun and viewing angle |
The geometry is used only to compute the correction. The orthomosaic and the DEM are built by photogrammetry software; RawGeo Balance does not replace it.
Output
- JPEG: corrected frames with the same names and size, ready for photogrammetry software with its own color correction turned off.
- RAW: parameters for every frame for RawGeo Processor, which does the whole RAW processing on the GPU. The RAW files themselves are never modified.
Scope and limitations
- It is not photogrammetry software: it does not align photos for mapping or build point clouds, DEMs or orthomosaics.
- Balancing is relative: frames are matched to each other, and the overall color is set by the camera. The overall white balance can be adjusted from several different gray materials in different frames (concrete, asphalt, slate); more accurate color needs a camera calibration or a reference in the frame.
- A sharp shadow edge is not reproduced by a smooth correction: steps of 0.3–0.5 stop can remain at the edges of cloud shadows.
- Ground that is in shadow in every frame where it is seen cannot be restored from the frames alone.
- Glare and sky reflections on roofs and water differ from frame to frame; water is left out of the computation.
- No neural networks: the same input gives the same output.
Frequently asked questions
What is RawGeo Balance?
RawGeo Balance is a Fastvideo application that evens out brightness and color across the frames of an aerial survey before the orthomosaic is built: it computes a correction for every source frame, RAW or JPEG, so that the same ground looks the same in every frame and the orthomosaic has no visible seams. It prepares frames for photogrammetry software and does not build orthomosaics itself.
Does it work with my camera?
RawGeo Balance is not tied to a camera: it needs frames in a RAW or JPEG format that we read, and their metadata. Different cameras and flights can be balanced together if it is known which camera took each frame and with which white balance.
Do I need Agisoft Metashape?
No, but its camera export and DEM give the most accurate result. An orthomosaic alone, onboard GNSS data or GNSS + IMU also work; see the table above.
How is it related to RawGeo Processor?
RawGeo Processor converts RAW to 16-bit TIFF on the GPU. RawGeo Balance computes the brightness and color correction of every frame and passes it to RawGeo Processor; for JPEG it writes the corrected frames itself.
Can I try it?
Yes. Write to us through the contact form, and we will agree how to pass a set of your frames, process them and show you the result.
Roadmap for RawGeo Balance
- C++ and CUDA version with JPEG decoding on the GPU; processing times will be published on this page
- Correction for the viewing angle by land cover (forest, fields, water), from surveys made on different days and at different sun positions
- RAW surveys from several flights and cameras, with the corrections passed to RawGeo Processor
- More accurate color: camera calibration and color references in the frame