Class Threshold
- java.lang.Object
-
- edu.gsu.cs.dmlab.imageproc.edgedetection.util.Threshold
-
public class Threshold extends Object
- Author:
- Azim Ahmadzadeh of Data Mining Lab, Georgia State University
-
-
Constructor Summary
Constructors Constructor Description Threshold()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double[][]
applyThreshold(boolean[][] pixels)
static double[][]
applyThreshold(int[][] pixels, int threshold)
Returns BufferedImage where color at (i, j) is black if pixel intensity > threshold; white otherwise.static double[][]
applyThresholdOriginal(boolean[][] edges, double[][] originalImage)
static double[][]
applyThresholdReversed(boolean[][] pixels)
static double[][]
applyThresholdWeakStrongCanny(boolean[][] weakEdges, boolean[][] strongEdges)
static double
calcThresholdEdges(double[][] magnitude)
Calculates threshold as the mean of the |G| matrix for edge detection algorithms.
-
-
-
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)
-
-