blobs
Class BrightBlob

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

public class BrightBlob
extends BlobInPixelSource


Field Summary
 int threshold
           
 
Fields inherited from class blobs.Blob
debugLevel
 
Constructor Summary
BrightBlob(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 int threshold
Constructor Detail

BrightBlob

public BrightBlob(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)