machinevisiontoolbox.Image.threshold_adaptive

Image.threshold_adaptive(C=0, h=3)

Adaptive threshold

Parameters:
  • C (int, optional) – _description_, defaults to 0

  • h (int, optional) – half-width of window, defaults to 3

Returns:

thresholded image

Return type:

Image

The threshold at each pixel is the mean over a \(w \times w, w=2h+1\) window minus C. h should reflect the scale of the objects that are to be segmented from the background.

References:
  • Robotics, Vision & Control for Python, Section 12.1.1.1, P. Corke, Springer 2023.

Seealso:

threshold threshold_interactive otsu opencv.adaptiveThreshold