Package edu.gsu.cs.dmlab.datatypes
Class Gradient
- java.lang.Object
-
- edu.gsu.cs.dmlab.datatypes.Gradient
-
public class Gradient extends Object
A classes for holding the gradient values of an image in the x and y direction.- Author:
- Dustin Kempton, Data Mining Lab, Georgia State University
-
-
Field Summary
Fields Modifier and Type Field Description double[][]
gd
This is the same for both Cartesian and Polar system.double[]
gd_f
double[][]
gx
In case of Gradient in the Cartesian system, this is the matrix of gradient values when comparing pixels in the X direction.double[]
gx_f
double[][]
gy
In case of Gradient in the Cartesian system, this is the matrix of gradient values when comparing pixels in the Y direction.double[]
gy_f
-
Constructor Summary
Constructors Constructor Description Gradient()
-
-
-
Field Detail
-
gx
public double[][] gx
In case of Gradient in the Cartesian system, this is the matrix of gradient values when comparing pixels in the X direction. In case of Gradient in the Polar system, this is the matrix of angles.
-
gx_f
public double[] gx_f
-
gy
public double[][] gy
In case of Gradient in the Cartesian system, this is the matrix of gradient values when comparing pixels in the Y direction. In case of Gradient in the Polar system, this is the matrix of Radii.
-
gy_f
public double[] gy_f
-
gd
public double[][] gd
This is the same for both Cartesian and Polar system. This is an auxiliary matrix to help distinguish the zero values in the Polar system. Gradient in the Polar system gets zero in the following cases and without 'gd' there is no way to distinguish them: 1. gx[i][j] = 0, gy[i][j] = 0 --> because (i,j) lies on a solid area. 2. gx[i][j] = 0, gy[i][j] = 0 --> because (i,j) lies on a vertical line of width 1 px. 3. gx[i][j] = 0, gy[i][j] = 0 --> because (i,j) lies on a horizontal line of width 2 px.
-
gd_f
public double[] gd_f
-
-