Image.adaptiveThreshold

Selects an individual threshold for each pixel based on the range of intensity values in its local neighborhood. This allows for thresholding of an image whose global intensity histogram doesn't contain distinctive peaks.

class Image
void
adaptiveThreshold
(
size_t width = 3
,
size_t height = 3
,)

Parameters

width size_t

define the width of the local neighborhood.

offset ssize_t

constant to subtract from pixel neighborhood mean.

Meta