NiVO / BY TECHNOGISGermany · Indonesia
Geospatial

Compare four-neighbour and eight-neighbour raster region sizes — Client handoff review

Compare four-neighbour and eight-neighbour raster region sizes — a worked case for client handoff review, with explicit data, a sensitivity comparison and an independent evidence check.

Compare four-neighbour and eight-neighbour raster region sizes — Client handoff review

The measurement question

Raster region size depends on how diagonal contact is interpreted. Imagine three cells of one land-cover class touching only at their corners in a 3×3 grid. Four-neighbour connectivity treats them as three one-cell regions; eight-neighbour connectivity treats them as one three-cell region. With a sieve threshold of two cells, the first interpretation marks each region as small while the second does not. At 0.5 m resolution, every cell represents 0.25 m², so a two-cell threshold represents 0.5 m² of nominal raster area. This exercise prevents a cleaning parameter from unintentionally removing thin diagonal features that are meaningful in the mapped landscape.

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

The calculation is being prepared for a recipient who did not collect the data. The package must explain the observation conditions and the limits of the conclusion without relying on an undocumented conversation. Use stable identifiers so that a question about a result can be traced back to its original evidence.

Ask a second reviewer to reproduce the example from the delivered inputs alone. Any missing unit, reference definition or selection rule is a handoff defect even if the arithmetic is correct.

Aerial view of organized vineyard rows at Wrattonbully
Aerial view of organized vineyard rows at Wrattonbully.Source: MERITEwines · CC BY-SA 4.0

Reproduce the numerical check

Illustrative input data: Corner-touching same-class cell count (cells) = 3 cells; Pixel width (width) = 1.2 m; Pixel height (height) = 1.2 m.

Calculation: cells*width*height.

Area of the eight-connected diagonal component = 4.32 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 pixel width (width) from 1.2 to 1.32 m. Re-evaluating the same equation gives area of the eight-connected diagonal component = 4.752 m². The arithmetic difference from the baseline is 0.432 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

Choose connectivity to match the phenomenon and record the threshold in both pixels and area units. Review narrow diagonal roads or drainage features before removing small regions from a classified map automatically.

Sieve operations alter class labels and can erase legitimate small objects. A fixed pixel threshold changes its physical meaning with raster resolution; rounding floating-point data to integers can also merge categories that should remain distinct.

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

Run a tiny synthetic diagonal-cell example under both connectivity rules and inspect the output. Compare region counts and class-area totals before and after filtering, then manually review changed features in representative landscape patches.

Deliver the accepted result, the raw evidence manifest, calculation settings and unresolved questions. Separate measured values, derived values and illustrative assumptions in the final record.

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 gdal_sieve ↗
  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