Threshold using a rank convolution with a range contrast function.
Supports all integer IM_GRAY images as source, and IM_BINARY as destiny.
Local variable threshold by the method of Bernsen.
Extracted from XITE, Copyright 1991, Blab, UiO http://www.ifi.uio.no/~blab/Software/Xite/
Reference:
Bernsen, J: "Dynamic thresholding of grey-level images"
Proc. of the 8th ICPR, Paris, Oct 1986, 1251-1255.
Author: Oivind Due Trier
Threshold using a rank convolution with a local max function.
Returns zero if the counter aborted.
Supports all integer IM_GRAY images as source, and IM_BINARY as destiny.
Apply a manual threshold.
threshold = a <= level ? 0: value
Normal value is 1 but another common value is 255. Can be done in place for IM_BYTE source.
Supports all integer IM_GRAY images as source, and IM_BINARY as destiny.
Apply a threshold by the Hysteresis method.
Hysteresis thersholding of edge pixels. Starting at pixels with a value greater than the HIGH threshold, trace a connected sequence of pixels that have a value greater than the LOW threhsold.
Note: could not find the original source code author name.
Calculates the threshold level for manual threshold using an uniform error approach.
Extracted from XITE, Copyright 1991, Blab, UiO http://www.ifi.uio.no/~blab/Software/Xite/
Reference:
S. M. Dunn & D. Harwood & L. S. Davis:
"Local Estimation of the Uniform Error Threshold"
IEEE Trans. on PAMI, Vol PAMI-6, No 6, Nov 1984.
Comments: It only works well on images whith large objects.
Author: Olav Borgli, BLAB, ifi, UiO
Image processing lab, Department of Informatics, University of Oslo
Apply a dithering on each image channel by using a difusion error method.
It can be applied on any IM_BYTE images. It will "threshold" each channel indivudually, so source and destiny must be of the same depth.
Calculates the threshold level for manual threshold using (max-min)/2.
Returns the used level.
Supports all integer IM_GRAY images as source, and IM_BINARY as destiny.
Apply a manual threshold using an interval.
threshold = start_level <= a <= end_level ? 1: 0
Normal value is 1 but another common value is 255. Can be done in place for IM_BYTE source.
Supports all integer IM_GRAY images as source, and IM_BINARY as destiny.