Class Canny

java.lang.Object
  extended byCanny

public class Canny
extends java.lang.Object

Canny Class

This class find the gradient vector associated to a points of an image with de Canny's method


Constructor Summary
Canny(int dim)
          Constructs a filter for each direction (horizontal and vertical)
 
Method Summary
 void calculGradient(int x, int y)
          Applies the filters to calculate the gradient vector of a point
 double getGradientAngle()
          Returns the angle of the gradient vector in radian
 double getGradientValue()
          Returns the value of the gradient vector
 void setProcessor(ij.process.ImageProcessor ip)
          Load an ImageProcessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Canny

public Canny(int dim)
Constructs a filter for each direction (horizontal and vertical)

Parameters:
dim - the dimension of the filters
Method Detail

setProcessor

public void setProcessor(ij.process.ImageProcessor ip)
Load an ImageProcessor


calculGradient

public void calculGradient(int x,
                           int y)
Applies the filters to calculate the gradient vector of a point

Parameters:
x - X-coordinate of the point
y - Y-coordinate of the point

getGradientAngle

public double getGradientAngle()
Returns the angle of the gradient vector in radian


getGradientValue

public double getGradientValue()
Returns the value of the gradient vector