Class VotingPoint

java.lang.Object
  extended byVotingPoint

public class VotingPoint
extends java.lang.Object

VotingPoint Class

This class represents a voting point


Constructor Summary
VotingPoint(int i, int j, Canny canny)
          Constructs a voting point
 
Method Summary
 double getGradientAngle()
          Returns the angle of the gradient associated to the point
 double getGradientValue()
          Returns the value of the gradient associated to the point
 int getXCoord()
          Returns the X-coordinate of the voting point
 int getYCoord()
          Returns the Y-coordinate of the voting point
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VotingPoint

public VotingPoint(int i,
                   int j,
                   Canny canny)
Constructs a voting point

Parameters:
i - X-coordinate of the point
j - Y-coordinate of the point
canny - Canny object to calculate the gradient vector
Method Detail

getXCoord

public int getXCoord()
Returns the X-coordinate of the voting point


getYCoord

public int getYCoord()
Returns the Y-coordinate of the voting point


getGradientAngle

public double getGradientAngle()
Returns the angle of the gradient associated to the point


getGradientValue

public double getGradientValue()
Returns the value of the gradient associated to the point