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

Class EnsembleThreshold

  • All Implemented Interfaces:
    IApplyInPlace


    public class EnsembleThreshold
    extends java.lang.Object
    implements IApplyInPlace
    Ensemble Threshold. The filter does image binarization using ensemble approach. Perform several threshold operations and compute majority vote in the response. Supported types: Grayscale. Coordinate System: Independent.
    • Constructor Summary

      Constructors 
      Constructor and Description
      EnsembleThreshold(int[] threshold)
      Initializes a new instance of the EnsembleThreshold class.
      EnsembleThreshold(int[] threshold, boolean invert)
      Initializes a new instance of the EnsembleThreshold class.
    • Constructor Detail

      • EnsembleThreshold

        public EnsembleThreshold(int[] threshold)
        Initializes a new instance of the EnsembleThreshold class.
        Parameters:
        threshold - Threshold values.
      • EnsembleThreshold

        public EnsembleThreshold(int[] threshold,
                                 boolean invert)
        Initializes a new instance of the EnsembleThreshold class.
        Parameters:
        threshold - Threshold values.
        invert - Invert the threshold.
    • Method Detail

      • getThreshold

        public int[] getThreshold()
        Get threshold values.
        Returns:
        Threshold values.
      • setThreshold

        public void setThreshold(int[] threshold)
        Set threshold values.
        Parameters:
        threshold - Threshold values.
      • isInvert

        public boolean isInvert()
        Check if is inverted.
        Returns:
        True if invert the threshold, otherwise false.
      • setInvert

        public void setInvert(boolean invert)
        Set invert.
        Parameters:
        invert - True if need to invert the threshold.
      • 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.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.