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
,
ssize_t offset = 0
)

Parameters

width
Type: size_t

define the width of the local neighborhood.

offset
Type: ssize_t

constant to subtract from pixel neighborhood mean.

Meta