blobs
Class Skin

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

public class Skin
extends BlobInPixelSource


Field Summary
static float skinGreenLower
           
static float skinGreenUpper
           
static float skinRedLower
           
static float skinRedUpper
           
 
Fields inherited from class blobs.Blob
debugLevel
 
Constructor Summary
Skin(PixelSource _ps)
           
Skin(PixelSource _ps, java.awt.image.BufferedImage _debugImage)
           
 
Method Summary
 java.lang.Object clone()
           
 boolean doesPixelQualify(int[] _rgb)
          This is the most likely function for you to override.
static float[] getRanges()
           
 boolean newPoint(int _x, int _y)
          This override the newpoint in the growth.
static void shiftGreen(float _greenShift)
           
static void shiftRed(float _redShift)
           
 
Methods inherited from class blobs.BlobInPixelSource
getPixel
 
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

skinRedLower

public static float skinRedLower

skinRedUpper

public static float skinRedUpper

skinGreenLower

public static float skinGreenLower

skinGreenUpper

public static float skinGreenUpper
Constructor Detail

Skin

public Skin(PixelSource _ps,
            java.awt.image.BufferedImage _debugImage)

Skin

public Skin(PixelSource _ps)
Method Detail

clone

public java.lang.Object clone()

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:

newPoint

public boolean newPoint(int _x,
                        int _y)
Description copied from class: BlobInPixelSource
This override the newpoint in the growth. Called everytime the search routines hit a new pixel

Specified by:
newPoint in interface Growable
Overrides:
newPoint in class BlobInPixelSource

shiftRed

public static void shiftRed(float _redShift)

shiftGreen

public static void shiftGreen(float _greenShift)

getRanges

public static float[] getRanges()