# Thresholding & Morphology

*Module of the free GPU.js GPGPU course · 6 tasks*

Turning grey pixels into a clean binary mask: global and adaptive thresholds, then erosion and dilation as a neighbourhood min and max.

## Tasks

1. [One Number for the Whole Image](https://gpu.rocks/learn/thresholding-and-morphology-670eaafa/1.md)
2. [Let the Histogram Pick the Number](https://gpu.rocks/learn/thresholding-and-morphology-670eaafa/2.md)
3. [A Threshold Per Neighbourhood](https://gpu.rocks/learn/thresholding-and-morphology-670eaafa/3.md)
4. [Erode and Dilate: the Sweep, With Min and Max](https://gpu.rocks/learn/thresholding-and-morphology-670eaafa/4.md)
5. [Opening and Closing: Order Is the Answer](https://gpu.rocks/learn/thresholding-and-morphology-670eaafa/5.md)
6. [Payoff: Clean the Mask, Count What Is Left](https://gpu.rocks/learn/thresholding-and-morphology-670eaafa/6.md)

---

Interactive version: https://gpu.rocks/learn/thresholding-and-morphology-670eaafa
