Class Threshold


  • public class Threshold
    extends Object
    Author:
    Azim Ahmadzadeh of Data Mining Lab, Georgia State University
    • Constructor Detail

      • Threshold

        public Threshold()
    • Method Detail

      • calcThresholdEdges

        public static double calcThresholdEdges​(double[][] magnitude)
        Calculates threshold as the mean of the |G| matrix for edge detection algorithms.
        Parameters:
        magnitude -
        Returns:
      • applyThreshold

        public static double[][] applyThreshold​(int[][] pixels,
                                                int threshold)
        Returns BufferedImage where color at (i, j) is black if pixel intensity > threshold; white otherwise.
        Parameters:
        pixels -
        threshold -
        Returns:
      • applyThreshold

        public static double[][] applyThreshold​(boolean[][] pixels)
        Parameters:
        pixels -
        Returns:
      • applyThresholdReversed

        public static double[][] applyThresholdReversed​(boolean[][] pixels)
        Parameters:
        pixels -
        Returns:
      • applyThresholdWeakStrongCanny

        public static double[][] applyThresholdWeakStrongCanny​(boolean[][] weakEdges,
                                                               boolean[][] strongEdges)
        Parameters:
        weakEdges -
        strongEdges -
        Returns:
      • applyThresholdOriginal

        public static double[][] applyThresholdOriginal​(boolean[][] edges,
                                                        double[][] originalImage)