Turning grey pixels into a clean binary mask: global and adaptive thresholds, then erosion and dilation as a neighbourhood min and max.
6 tasks
This page is an interactive exercise — the editor, the GPU runner and your saved progress need JavaScript. The text above is the full brief.