Image Rows and Columns Versus Geometric Coordinates

An array often uses row then column. Geometric positions often name the horizontal coordinate first. Agree on the conversion and the vertical direction.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace one corner
  2. Check map conventions

Trace one corner

Pixel at row 2, column 5 has horizontal position five and vertical position two under a top-left origin with y increasing downward. Array rows and columns supply those source indices.

Check map conventions

A mathematical graph may have y increasing upward. A coordinate representation can account for both changes explicitly. Use an adapter when joining components with distinct conventions.[1][2]

References

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