Lesson 2 of 3 · Check the map position independently
Check the map position independently
20 minute lesson · 3 checks along the way
Your goal for this lessonRecover a simple coordinate transform, test it at withheld points and distinguish fitting success from geographic evidence.
In this lesson 6 sections · 3 checks
Read & understand
An image needs a geographic position
An image can have useful radiance values while its location remains uncertain. Diwata-1’s engineering Middle Field Camera helped locate narrower instrument views, and ground processing linked image coordinates to map coordinates. Those tasks complement radiometric calibration. Knowing how much light was recorded does not tell an analyst which field or coastline produced it.
We will fit a small coordinate model and then test it using separate evidence. Image coordinates u and v are measured in pixels. Map coordinates x and y are measured in metres in a fictional local flat coordinate system, not latitude and longitude. All coordinates below are invented. The exercise illustrates the difference between fitting observations and validating a geographic result; it does not reproduce a complete Diwata processing algorithm or model terrain relief.
Read & understand
Recover a simple coordinate transform
Assume an affine transform: x = a + bu + cv and y = d + eu + fv. Its six constants allow translation, rotation, scale and shear while keeping straight lines straight. Three non-collinear control points supply six scalar conditions. Our controls are A: (u,v)=(0,0) maps to (100,200); B: (4,0) maps to (108,199); and C: (0,4) maps to (102,212).
Point A gives a=100 and d=200. Moving from A to B adds four pixels in u, so b=(108−100)/4=2 and e=(199−200)/4=−0.25 metres per pixel. Moving from A to C adds four pixels in v, giving c=0.5 and f=3. Thus x=100+2u+0.5v and y=200−0.25u+3v. At (2,2), the prediction is (105,205.5). This transform fits the three supplied controls exactly because we solved its parameters from them.
Check 1 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Withhold points from the fit
An exact fit to those controls is not an independent test. Keep two other points out of the fitting step. For P at image coordinate (2,2), the separate reference coordinate is (105.3,205.9) metres. For Q at (4,4), it is (109.4,211.8). The transform predicts P=(105,205.5) and Q=(110,211). Define each residual as prediction minus reference, retaining that sign convention.
P has residual (−0.3,−0.4) metres; Q has (+0.6,−0.8). These discrepancies reveal something that the fitted controls alone could not. The reference coordinates are assumed correct in this classroom model. Real surveys and reference maps also have uncertainty, so an observed discrepancy can include errors from both the image transform and its reference. Point identification must be checked as well: a nearby but different object is not a valid match.
Read & understand
Measure radial checkpoint error
For each checkpoint, combine the coordinate residuals as r = √(Δx²+Δy²). P gives √(0.09+0.16)=0.5 metres. Q gives √(0.36+0.64)=1 metre. The radial root-mean-square error over these two points is √[(0.5²+1²)/2] = √0.625 ≈ 0.791 metres. It is not the arithmetic mean of the two radial distances, which would be 0.75 metres.
Report what this number describes: two withheld points under this reference assumption. It is neither the largest possible error nor a whole-scene guarantee. A small average can conceal a larger local discrepancy, and checkpoints concentrated in one corner do not establish performance elsewhere. Q lies beyond the triangle formed by the fitting controls, making it especially useful for questioning extrapolation. Representative independent evidence matters more than merely increasing the number of decimal places in the score.
Check 2 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
A perfect fit can conceal curvature
Construct a competing transform by adding 0.25uv metres to x while leaving y unchanged. At A, B and C, either u or v is zero, so the extra term vanishes. The curved model fits every original control just as exactly as the affine model. It nevertheless moves the prediction at P by one metre in x and at Q by four metres. The three controls cannot distinguish these two alternatives.
At P, the curved prediction becomes (106,205.5), while Q becomes (114,211). Against the same withheld references, its radial RMSE is about 3.35 metres, substantially worse than the affine model’s 0.791 metres. This does not prove that affine models are always best. It shows why additional flexibility and a perfect training fit are insufficient reasons to trust a transform. Independent checks can reject one proposed alternative without proving that every remaining part of the scene is correct.
Test locations outside the fit
Original fictional local coordinates. Both map axes use labelled metre scales. Residual segments join independent reference and prediction; references are assumed exact in this exercise. Three controls have zero product u times v, so adding 0.25uv to x leaves their fit unchanged. Two checkpoints do not establish a whole-scene guarantee.
Open full-size diagram in a new tab: Test locations outside the fitRead & understand
Keep image similarity separate from map accuracy
Sempio and colleagues compared transformed Diwata-1 images with Landsat imagery using structural similarity, or SSIM. Their paper explicitly distinguishes similarity of image features from correct geographic registration. It also notes that the threshold-based cloud mask removed bright water along with clouds. A score therefore depends both on what is compared and on what has been excluded; it cannot automatically validate the removed areas.
Imagine two identical arrays of brightness values stored with map origins differing by 100 metres. An array-only comparison that ignores coordinate metadata still sees identical numbers, while the geographic positions differ. Conversely, correct geographic placement does not force two dates or spectral bands to have identical brightness. Keep the coordinate system, control and checkpoint roles, masks and reference dates with the result. A convincing visual resemblance is useful evidence for one question, but cannot stand in for every other check.
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: Diwata-1: instrument roles and mission timelineOptical payloads and the engineering camera’s role in locating narrower image views.
- Read: Sempio et al. (2019): image transformation and structural similaritySections 4.1–4.2 separate structural similarity from correct map registration and discuss masked bright water.
- Read: Aranas et al. (2016): data processing, archiving and distribution designThe 2016 conceptual processing/archive design; its implementation forecasts are not completion evidence.