MATLAB File Help: cv.niBlackThreshold Index
cv.niBlackThreshold

Applies Niblack thresholding to input image

dst = cv.niBlackThreshold(src, delta)
dst = cv.niBlackThreshold(src, delta, 'OptionName',optionValue, ...)

Input

Output

Options

The function transforms a grayscale image to a binary image according to the formulae:

where T(x,y) is a threshold calculated individually for each pixel.

The threshold value T(x,y) is the mean minus delta times standard deviation of BlockSize x BlockSize neighborhood of (x,y).

See also