Class AiboImage

java.lang.Object
  extended byAiboImage

public class AiboImage
extends java.lang.Object

AiboImage - the image object includes routines for finding blobs given a pixel and color seed these routines are java translations from the dog PAM code plus additional colors, and the only big difference in segmentation theory is the use of a linked list for the blobs


Field Summary
 int[] threshold
           
 int[] uImage
           
 int[] vImage
           
 int[] yImage
           
 
Constructor Summary
AiboImage(int[] y, int[] u, int[] v, java.lang.String fileName)
           
 
Method Summary
 boolean[] checkPixelsRGB()
          Returns the pixels selected in the image, based on current colortable, as a boolean[]
 void clearBinImage()
          Clear color information for image
 int[] getBinBlob()
          Returns the image blob representation based on current colortable Only used by automatization
 java.awt.Color[] getBlob()
          Returns the image blob representation based on current colortable
 java.lang.String getFileName()
          returns the image fileName - for future use?
 java.awt.Color[] getRGB()
          returns the image in RGB representation in a Color[]
 boolean[] selectPixel(int x, int y)
          Selects a pixel in the image, adds that pixels color to the colortable, and returns all the pixels selected in the image, based on colortable, as a boolean[]
 void updateBlobs()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

yImage

public int[] yImage

uImage

public int[] uImage

vImage

public int[] vImage

threshold

public int[] threshold
Constructor Detail

AiboImage

public AiboImage(int[] y,
                 int[] u,
                 int[] v,
                 java.lang.String fileName)
Method Detail

updateBlobs

public void updateBlobs()

getFileName

public java.lang.String getFileName()
returns the image fileName - for future use?


getRGB

public java.awt.Color[] getRGB()
returns the image in RGB representation in a Color[]


getBlob

public java.awt.Color[] getBlob()
Returns the image blob representation based on current colortable


getBinBlob

public int[] getBinBlob()
Returns the image blob representation based on current colortable Only used by automatization


selectPixel

public boolean[] selectPixel(int x,
                             int y)
Selects a pixel in the image, adds that pixels color to the colortable, and returns all the pixels selected in the image, based on colortable, as a boolean[]


checkPixelsRGB

public boolean[] checkPixelsRGB()
Returns the pixels selected in the image, based on current colortable, as a boolean[]


clearBinImage

public void clearBinImage()
Clear color information for image