- All Known Subinterfaces:
AdaptiveThresholder,GlobalThresholder
- All Known Implementing Classes:
BernsenThresholder,IsodataThresholder,IsodataThresholderSlow,MaxEntropyThresholder,MeanThresholder,MedianThresholder,MinErrorThresholder,MinMaxThresholder,NiblackThresholder,NiblackThresholder.Box,NiblackThresholder.Disk,NiblackThresholder.Gauss,OtsuThresholder,QuantileThresholder,SauvolaThresholder
public interface Thresholder
Common interface to be implemented by all thresholders (global and adaptive).
- Version:
- 2022/08/02
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumEnum type to discriminate if the image background is assumed to be bright or dark. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThresholds the specifiedByteProcessor(8-bit image), which is modified.
-
Method Details
-
threshold
Thresholds the specifiedByteProcessor(8-bit image), which is modified. Does nothing and returnstrueif no valid threshold could be found (e.g., if all image pixels have the same value).- Parameters:
ip- aByteProcessor(8-bit image)- Returns:
trueiff the operation was successful
-