NiVO / BY TECHNOGISGermany · Indonesia
Geospatial

Calculate a raster pixel centre with a six-term affine transform — Documented parameter change

Calculate a raster pixel centre with a six-term affine transform — a worked case for documented parameter change, with explicit data, a sensitivity comparison and an independent evidence.

Calculate a raster pixel centre with a six-term affine transform — Documented parameter change

The measurement question

A raster's upper-left reference often describes a pixel corner, not its centre. For a hypothetical north-up survey raster, use an origin of E=500000 m and N=9200000 m, with 0.20 m pixels. The centre of zero-based column 12 and row 8 lies at E=500002.50 m and N=9199998.30 m. Adding half a pixel before transforming avoids a systematic offset when exporting sample points. A rotated raster also needs both cross terms; treating it as north-up silently changes locations. Keep the original coordinate reference system and index convention beside the calculation so another analyst can reproduce the extraction.

This is an educational case with constructed input data. It is not a report of a completed NiVO project, a flight authorization, a product performance guarantee, or evidence that the photographed location was surveyed for this example.

Case conditions and evidence

A single processing or acquisition parameter changes between two controlled runs. The comparison keeps a copy of the original configuration and identifies every unchanged input. If another condition changed at the same time, record it as a confounder instead of attributing the entire difference to one parameter.

Re-run a small fixed test set with both configurations. Compare the outputs with the task-specific independent evidence and keep any conflicting result for review.

Sony Alpha 7R IV camera fitted with a Sony Zeiss 55 mm lens
Sony Alpha 7R IV camera fitted with a Sony Zeiss 55 mm lens.Source: Franz van Duns · CC BY-SA 4.0

Reproduce the numerical check

Illustrative input data: Upper-left corner easting (E0) = 500,000 m; Zero-based column (col) = 25 index; Zero-based row (row) = 8 index; Column easting increment (dx) = 0.2 m/pixel; Row easting increment (rx) = 0 m/pixel.

Calculation: E0+(col+0.5)*dx+(row+0.5)*rx.

Pixel-centre easting = 500,005.1 m.

The calculation below checks one part of the evidence chain. Keep the stated units and assumptions. The output does not replace field observations, the equipment manual, or an independent assessment of the complete deliverable.

Change one assumption

Increase only zero-based column (col) from 25 to 27.5 index. Re-evaluating the same equation gives pixel-centre easting = 500,005.6 m. The arithmetic difference from the baseline is 0.5 m.

For the comparison, only the explicitly listed input changes. All other quantities stay fixed. This isolates the mathematical response; weather, image texture, viewing geometry and equipment behaviour can change together in a real mission, so do not interpret the comparison as a flight test.

Interpret the result

Use centre coordinates for point sampling and corner coordinates for cell boundaries. Preserve all six coefficients when exchanging rotated imagery, so GIS operators can distinguish an indexing error from an actual survey displacement.

The calculation locates a stored cell; it does not establish field accuracy or remove projection distortion. Pixel-is-point conventions, half-cell shifts introduced by software, and nonlinear georeferencing require separate inspection before using the coordinates.

Separate an arithmetic result from a verified measurement. A precise number can still be based on an uncertain input. Test the assumption with an independent observation before applying the result to an acceptance decision; retain the original value when the independent check disagrees.

Independent checks and delivery

Transform the first pixel centre and one distant corner independently, then compare them with the GIS cursor and raster extent. Check the inverse transformation returns the original row and column within floating-point rounding.

Provide both configuration files, the fixed test set and the comparison table. Explain the reason for selecting a configuration without presenting a software setting as proof of accuracy.

Deliver the original observations, the calculation inputs, their units, the processing settings and an exception log alongside the interpreted output. A reviewer should be able to repeat the arithmetic and identify which observations support the conclusion. Preserve rejected observations with reasons instead of silently removing them.

Technical references

  1. GDAL Geotransform Tutorial ↗
  2. NiVO technical workflow and supporting documentation ↗
← All articles

Related articles

All articles ↗
LET’S TAKE FLIGHT

Your next mission
starts with a conversation.

Talk to our team