Class LineSegmentFitter

java.lang.Object
  |
  +--LineSegmentFitter

public class LineSegmentFitter
extends java.lang.Object

This class is used to fit a LineSegment Object to a QuadricGroup. This involves finding the best fit "math line" based on the center points of the quadrics, and then finding the line width that gives us the smallest amount of errors (white pixels in core and black pixels in wings)


Constructor Summary
LineSegmentFitter(int[][] image, QuadricFit[][] quad_fits)
          create a new LineSegmentFitter capable of fitting lines in image to groups of PCAs contained in quad_fits
 
Method Summary
 LineSegment getLineSegment(QuadricGroup group)
          Produce a LineSegment object fitted to the specified QuadricGroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineSegmentFitter

public LineSegmentFitter(int[][] image,
                         QuadricFit[][] quad_fits)
create a new LineSegmentFitter capable of fitting lines in image to groups of PCAs contained in quad_fits

Method Detail

getLineSegment

public LineSegment getLineSegment(QuadricGroup group)
Produce a LineSegment object fitted to the specified QuadricGroup