Lesson 1 of 3 · Mars Pathfinder
Test a stereo match before mapping
17 minute lesson · 3 checks along the way
Your goal for this lessonEvaluate image correspondence with brightness normalization, reverse matching and a depth-edge test before accepting a terrain point.
In this lesson 4 sections · 3 checks
Read & understand
A landscape begins with a correspondence
Mars Pathfinder landed at Ares Vallis on 4 July 1997, bringing the Sojourner rover and a lander later named the Carl Sagan Memorial Station. The lander’s Imager for Mars Pathfinder, or IMP, supplied stereo views that could be turned into three-dimensional terrain. Before triangulation can locate a point, however, an analyst must identify the same feature in two images. A plausible-looking patch is a candidate correspondence, not yet a measured rock position.
The archived IMP reconstruction used brightness processing, texture correlation, a check in both image directions and several window sizes. This lesson isolates those ideas in an original fictional five-pixel example. It is not a reproduction of the archive software, which used additional filtering and integer-pixel matching. We assume aligned image rows and compare patches at candidate positions. Pixel values are arbitrary intensity units; no distance or camera performance is inferred from them.
Read & understand
Remove an offset without erasing a structural mismatch
Let the left patch be L = [10, 30, 20, 50, 40]. Two candidate right patches are A = [110, 130, 120, 150, 140] and B = [10, 31, 21, 48, 40]. A raw sum of absolute differences, Σ|Lᵢ − Rᵢ|, gives 500 for A and 4 for B. It prefers B, even though A preserves every relative variation and merely adds 100 to each intensity. This exposes the chosen score’s sensitivity to a brightness offset.
For this exercise, subtract each patch’s own mean before scoring: S = Σ|(Lᵢ − L̄) − (Rᵢ − R̄)|. The means are 30, 130 and 30 for L, A and B. The centered scores become 0 for A and 4 for B, so A wins. Subtracting a mean removes an additive offset; it does not remove an arbitrary multiplicative gain, shadow change, occlusion or noise. A zero score therefore establishes agreement under one narrow comparison, not unique physical identity.
NASA’s 75-image, color-enhanced Mars Pathfinder mosaic shows Sojourner at the rock Moe, with lander hardware in the foreground. Rover and terrain frames were taken on different days. This complete published view supplies context; it is not a raw stereo pair or the resulting composition spectrum.
Look closely
Could this processed mosaic be used directly as the left and right images in the stereo exercise?
See what to notice
No. It combines frames and days into one published view. Stereo matching requires identified camera views and their geometry, while rock composition requires the instrument measurements.
Check 1 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Make the match survive a return journey
Suppose the left patch is centered at coordinate 50 pixels and A is at right coordinate 42. Search back from that right patch into the left image. If the reverse search selects coordinate 51, the cycle error is |51 − 50| = 1 pixel. Our fictional acceptance rule requires an error no greater than 0.5 pixel, so the match fails despite its zero centered score. The threshold is a teaching assumption, not the mission’s published operating threshold.
Patch size creates another tradeoff. Consider candidate disparities of 8 and 4 pixels. For the same already-preprocessed pixels, the foreground part contributes costs [0, 9], while background pixels contribute [12, 0]. Summing these fixed contributions gives [12, 9], selecting disparity 4. Yet the center lies on the foreground, whose smaller patch preferred 8. Adding surrounding pixels can overwhelm the relevant surface with another depth. These costs use fixed preprocessing so they add directly; recomputing a different mean for an enlarged patch would require recalculating them.
A brightness match still needs a correspondence test
A constant brightness offset can hide a good patch match, while reverse inconsistency and a mixed-depth neighborhood can still reject or bias it. Values and tolerance are invented; the archive’s actual processing was more extensive.
Open full-size diagram in a new tab: A brightness match still needs a correspondence testCheck 2 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Keep rejected points distinct from terrain
An alternate left patch [20, 10, 40, 30, 50] has candidate A = [50, 40, 70, 60, 80] and B = [19, 11, 39, 31, 50]. Raw costs are 150 and 4; centered costs are again 0 and 4. If the reverse search now returns exactly to coordinate 50, it passes our cycle check. Changing the background contribution to [4, 0] also makes the combined kernel prefer disparity 8, with costs [4, 9]. Neither result guarantees a correct match in an unconstrained scene.
The PDS archive warns that window size limits effective spatial detail even when a product stores a point at every image pixel. It also documents zero-filled coordinates for some failed solutions. Those zeros must be interpreted using the product definition, rather than plotted as real terrain at the origin. A useful map preserves the distinction between an accepted estimate, unresolved correspondence and a systematic calibration error shared by many points.
Check 3 of 3
10 pointsUse the reading above. You can try again without losing points.
Put it together
Your lesson progress
Each check connects to a part of the story. Complete all 3 to earn your 25-point lesson bonus.
Explore further · Optional
Go to the source
Explore the evidence behind this lesson. These optional readings and videos open in a new tab.
- Read: NASA: Mars Pathfinder mission historyMission chronology and the distinct lander and Sojourner roles; the last transmission was 27 September 1997.
- Read: PDS: IMP three-dimensional position dataDataset overview documents stereo processing, reverse-match checks, kernel limits and zero-filled failures. The five-pixel exercise is original, not the archived algorithm.