Local Image Differences and Edges

Taking numerical differences across nearby samples can identify where intensity changes under the chosen sampling and sign conventions.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a horizontal row
  2. Check direction and scale

Trace a horizontal row

Values 2, 2, and 8 give forward differences zero and six. The second difference spans positions one and two, so it identifies a change between those neighbors. See neighbor comparisons.

Check direction and scale

Reversing input order changes the sign of the corresponding difference. Coordinate spacing changes derivative units. Finite differences give the continuous approximation interpretation.[1][2]

References

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