setErodeSize

open fun setErodeSize(staticErodeSize: Double)

Sets the size of the eroding element to use during thresholding. Erosion eats away at the mask, reducing noise by eliminating super small areas, but also reduces the contour areas of everything a little bit. This is an optional method.

Parameters

staticErodeSize

static size of the erode element in pixels, default/<=0 is disabled


open fun setErodeSize(@NonNull erodeSize: DoubleSupplier)

Sets the size of the eroding element to use during thresholding. Erosion eats away at the mask, reducing noise by eliminating super small areas, but also reduces the contour areas of everything a little bit. This is an optional method.

Parameters

erodeSize

size of the erode element in pixels, default/<=0 is disabled