Downsampling and Aliasing in an Image

Keeping fewer samples can turn a fine repeating pattern into a misleading lower-frequency one. Filtering before taking samples can reduce that effect.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace an alternating row
  2. Tie the filter to the task

Trace an alternating row

Keeping every other point of a row alternating zero and one yields a constant row, depending on which positions are retained. Averaging adjacent pairs gives one half across the row. See steps in a slice.

Tie the filter to the task

Ordinary photographic downsampling and categorical label maps may need different rules. A label map may preserve one selected category. Nearest-neighbor resampling gives that option.[1][2]

References

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