setDilateSize

open fun setDilateSize(staticDilateSize: Double)

Sets the size of the dilating element to use during thresholding. Dilation expands mask areas, making up for shrinkage caused during erosion, and can also clean up results by closing small interior gaps in the mask. This is an optional method.

Parameters

staticDilateSize

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


open fun setDilateSize(@NonNull dilateSize: DoubleSupplier)

Sets the size of the dilating element to use during thresholding. Dilation expands mask areas, making up for shrinkage caused during erosion, and can also clean up results by closing small interior gaps in the mask. This is an optional method.

Parameters

dilateSize

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