java.lang.Object
imagingbook.common.threshold.adaptive.BernsenThresholder
- All Implemented Interfaces:
AdaptiveThresholder
,Thresholder
This is an implementation of the adaptive thresholder proposed by Bernsen in [1]. It uses a circular support region implemented with ImageJ's built-in rank-filter methods. See Sec. 9.2.1 of [2] for a detailed description.
[1] J. Bernsen. Dynamic thresholding of grey-level images. In "Proceedings of the International Conference on Pattern
Recognition (ICPR)", pp. 1251–1255, Paris (October 1986). IEEE Computer Society.
[2] W. Burger, M.J. Burge,
Digital Image Processing – An Algorithmic Introduction, 3rd ed, Springer (2022).
- Version:
- 2022/04/02
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface imagingbook.common.threshold.Thresholder
Thresholder.BackgroundMode
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor using default parameters.Constructor using specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionCalculates a adaptive "threshold surface" for the specifiedByteProcessor
and returns it as anotherByteProcessor
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface imagingbook.common.threshold.adaptive.AdaptiveThresholder
threshold, threshold, threshold
-
Constructor Details
-
BernsenThresholder
public BernsenThresholder()Constructor using default parameters. -
BernsenThresholder
Constructor using specified parameters.- Parameters:
params
- an instance ofBernsenThresholder.Parameters
-
-
Method Details
-
getThreshold
Description copied from interface:AdaptiveThresholder
Calculates a adaptive "threshold surface" for the specifiedByteProcessor
and returns it as anotherByteProcessor
.- Specified by:
getThreshold
in interfaceAdaptiveThresholder
- Parameters:
I
- the input image- Returns:
- the threshold surface
-