Checking Image Coordinate Transforms with Distinct Corners

Distinct corner values in a small rectangular fixture can reveal swapped axes, reversed directions, and unexpected crop origins.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace an example
  2. Test interior positions when necessary

Trace an example

Place A, B, C, and D in the four corners. A transpose moves the upper-right B to the lower-left of the transformed rectangle. See transpose and rotation.

Test interior positions when necessary

Some different nonlinear maps agree on corners and vary in the middle. Include an interior landmark to catch that disagreement. Test inputs that separate outputs motivate this case.[1][2]

References

  1. scikit-image Contributors, NumPy Images and Coordinate Conventions ↩
  2. scikit-image Contributors, Image Data Types and Representable Values ↩