When using thresholding method to segment an image, a fixed threshold
is not suitable if the background is uneven. Here, we propose a new ad
aptive thresholding method using variational theory. The method requir
es only one parameter to be selected and the adaptive threshold surfac
e can be found automatically from the original image.