Documentation of 'Catalano.Imaging.Filters.MaximumEntropyThreshold' Java class
MaximumEntropyThreshold
Catalano.Imaging.Filters

Class MaximumEntropyThreshold

  • All Implemented Interfaces:
    IApplyInPlace


    public class MaximumEntropyThreshold
    extends java.lang.Object
    implements IApplyInPlace
    Automatic threshold based on the entropy.
    See Also:
    OtsuThreshold
    • Constructor Summary

      Constructors 
      Constructor and Description
      MaximumEntropyThreshold()
      Initialize a new instance of the MaximumEntropyThreshold class.
      MaximumEntropyThreshold(boolean invert)
      Initialize a new instance of the MaximumEntropyThreshold class.
    • Constructor Detail

      • MaximumEntropyThreshold

        public MaximumEntropyThreshold()
        Initialize a new instance of the MaximumEntropyThreshold class.
      • MaximumEntropyThreshold

        public MaximumEntropyThreshold(boolean invert)
        Initialize a new instance of the MaximumEntropyThreshold class.
        Parameters:
        invert - All pixels with intensities equal or higher than threshold value are converted to black pixels. All other pixels with intensities below threshold value are converted to white pixels.
    • Method Detail

      • applyInPlace

        public void applyInPlace(FastBitmap fastBitmap)
        Description copied from interface: IApplyInPlace
        Apply filter to an image.
        Specified by:
        applyInPlace in interface IApplyInPlace
        Parameters:
        fastBitmap - Image to be processed.
      • CalculateThreshold

        public int CalculateThreshold(FastBitmap fastBitmap)
        Calculate binarization threshold for the given image.
        Parameters:
        fastBitmap - FastBitmap.
        Returns:
        Threshold value.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.