← back to roto on ba3a.dev

largest

fun largest(mask: Mask): Mask

Only the largest foreground region: the figure, without stray blobs elsewhere in the frame. Of regions equally large, the one reached first in row-major order wins.