|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjjil.algorithm.LinefitHough
public class LinefitHough
Finds a line in an array of points using Hough transform. Not a pipeline stage. Returns the most likely line as slope and Y-intercept through member access functions.
Constructor Summary | |
---|---|
LinefitHough(int cMinY,
int cMaxY,
int cMinSlope,
int cMaxSlope,
int cSteps)
Creates a new instance of LinefitHough |
Method Summary | |
---|---|
int |
getCount()
Returns the count of points on the line that was found. |
int |
getSlope()
Returns the slope of the line that was found. |
int |
getY()
Returns the y-intercept of the line that was found. |
void |
push(java.util.Vector points)
Finds the most likely line passing through the points in the Vector. |
java.lang.String |
toString()
Return a string describing the current instance, giving the values of the constructor parameters. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LinefitHough(int cMinY, int cMaxY, int cMinSlope, int cMaxSlope, int cSteps) throws Error
cMinY
- minimum Y valuecMaxY
- maximum Y valuecMinSlope
- minimum slope (multiplied by 256)cMaxSlope
- maximum slope (multiplied by 256)cSteps
- steps taken in Hough accumulator between minimum and
maximum slope.
Error
- if Y or slope range is empty, or
cSteps is not positive.Method Detail |
---|
public int getCount()
public int getSlope()
public int getY()
public void push(java.util.Vector points) throws Error
points
- the input Vector of point positions
Error
- if points is not a Vector of
point objects.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |