- "[Basic properties of images and pixels](pixels)"
objectives:
- "Describe the relationship between an intensity image and a derived binary image"
- "Apply a threshold to distinguish foreground and background pixels"
motivation: >
Very often, one wants to detect objects or specific regions in images. Typically, the first step to achieve this aim is to distinguish so-called background pixels, which do not contain objects or interesting regions, from foreground pixels, which mark the areas of interest. The foreground regions can than be further processed, e.g to detect objects or perform measurements.
concept_map: >
graph TD
PV("Pixel values") --> BA(Binarization algorithm)
BA --> BPV("Binarized pixel values")
BPV --> BG("Background (0)")
BPV --> FG("Foreground (1)")
figure: /figures/binarization.png
figure_legend: An image before and after applying a threshold. Can you see what the treshold value was?
activity_preface: >
Open an image and binarize it by applying a threshold.
Very often, one wants to detect objects or specific regions in images. Typically, the first step to achieve this aim is to distinguish so-called background pixels, which do not contain objects or interesting regions, from foreground pixels, which mark the areas of interest. The foreground regions can than be further processed, e.g to detect objects or perform measurements.
concept_map:>
graph TD
graph TD
PV("Pixel values") --> BA(Binarization algorithm)
BA --> BPV("Binarized pixel values")
BPV --> BG("Background (0)")
BPV --> FG("Foreground (1)")
figure:/figures/binarization.png
figure_legend: An image before and after applying a threshold. Can you see what the treshold value was?
figure_legend:Image before and after binarization by applying a threshold.
activity_preface:>
Open an image and binarize it by applying a threshold.