Adaptive or Dynamic Thresholding is variable thresholding in which value of threshold depends on the spatial coordinates x, y of the point in that image.

Steps to perform dynamic thresholding

  1. Convolute the image using any apt filter such as mean filter / median filter.
  2. Subtract the original image from the convoluted image.
  3. Compare the output image with the given threshold value T.
  4. Invert the Threshold image so obtained.

Example : Adaptive Thresholding in digital image processing - YouTube