Class GradientCalculator

  • All Implemented Interfaces:
    IGradientCalculator

    public class GradientCalculator
    extends Object
    implements IGradientCalculator
    A class for calculating the gradient of pixel intensities on source images. This class uses different kernels, depending on the provided gradient operator name, and calculated both horizontal and vertical derivatives, as well as the magnitude and angle of changes in the color intensity of pixels.
    Pass the string "prewitt" to its constructor to apply Prewitt operator or "sobel" to apply Sobel operator.
    There exists other operators which have not been yet implemented in this class:
  • Roberts operator
  • Laplacian operator
Author:
Azim Ahmadzadeh, updated by Dustin Kempton, Data Mining Lab, Georgia State University