Class ImageQuadricData

java.lang.Object
  |
  +--ImageQuadricData

public class ImageQuadricData
extends java.lang.Object

This class contains a grid, the same size as the image, filled in with PCA (Principal Component Analysis, formerly known as Quadric) data for each pixel that passed the first and zeroth moment tests. The other pixel locations simply contain null values. This class is also responsible for grouping the PCA structures based on similar characteristics and spatial locality. The idea is that PCAs in the same group should coorespond to pixels belonging the same line segment in the image.


Field Summary
 QuadricFit[][] quadrics
          the PCA data, stored at their cooresponding pixel's coordinates
 
Constructor Summary
ImageQuadricData(int[][] _pixels)
          constructs and populates a new ImageQuadricData structure.
 
Method Summary
 java.util.Vector groupQuadrics()
          Returns a Vector containing QuadricGroup objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

quadrics

public QuadricFit[][] quadrics
the PCA data, stored at their cooresponding pixel's coordinates

Constructor Detail

ImageQuadricData

public ImageQuadricData(int[][] _pixels)
constructs and populates a new ImageQuadricData structure. This involves calculating the PCA for each pixel that passes first and zeroth moment tests.

Method Detail

groupQuadrics

public java.util.Vector groupQuadrics()
Returns a Vector containing QuadricGroup objects. Not all quadrics are gauranteed to be contained in a group. TODO: make this more efficient? Currently takes the longest out of all the SVP steps.