← back to roto on ba3a.dev

erode

fun erode(mask: Mask, radius: Int): Mask

A pixel stays foreground only when the whole square around it is foreground.