Interface Thresholder

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 Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Enum type to discriminate if the image background is assumed to be bright or dark.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Thresholds the specified ByteProcessor (8-bit image), which is modified.
  • Method Details

    • threshold

      boolean threshold(ByteProcessor ip)
      Thresholds the specified ByteProcessor (8-bit image), which is modified. Does nothing and returns true if no valid threshold could be found (e.g., if all image pixels have the same value).
      Parameters:
      ip - a ByteProcessor (8-bit image)
      Returns:
      true iff the operation was successful