blobs
Class DarkBlob

java.lang.Object
  extended byblobs.Blob
      extended byblobs.BlobInPixelSource
          extended byblobs.DarkBlob
All Implemented Interfaces:
java.lang.Cloneable, Growable

public class DarkBlob
extends BlobInPixelSource


Field Summary
static int threshold
           
 
Fields inherited from class blobs.Blob
debugLevel
 
Constructor Summary
DarkBlob(PixelSource _ps, java.awt.image.BufferedImage _debugImage, java.lang.String _type)
           
 
Method Summary
 boolean doesPixelQualify(int[] rgb)
          This is the most likely function for you to override.
 int getThreshold()
           
 void setThreshold(int _threshold)
           
 
Methods inherited from class blobs.BlobInPixelSource
getPixel, newPoint
 
Methods inherited from class blobs.Blob
debugAll, debugPixel, finishedSeed, getArea, getBirthDate, getDebugLevel, getDebugString, getLastX, getLastY, getMidPoint, getNextExpectedPostion, getOutsidePolygon, getPolygon, getRect, getSearchField, getSmoothedPostion, getTimeStamp, getTotalDebugLevels, getType, getValidsInARow, newBorderPoint, newFrame, newSeed, setBirthDate, setDebugColor, setDebugLevel, setDebugString, setLastValidTime, setSearchField, setType, validate, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

threshold

public static int threshold
Constructor Detail

DarkBlob

public DarkBlob(PixelSource _ps,
                java.awt.image.BufferedImage _debugImage,
                java.lang.String _type)
Method Detail

doesPixelQualify

public boolean doesPixelQualify(int[] rgb)
Description copied from class: BlobInPixelSource
This is the most likely function for you to override. Your critera for a good pixel are encoded here.

Overrides:
doesPixelQualify in class BlobInPixelSource
Parameters:
rgb - array with red in 1, green in 2 and blue in 3;
Returns:

getThreshold

public int getThreshold()

setThreshold

public void setThreshold(int _threshold)