blobs
Class Skin
java.lang.Object
blobs.Blob
blobs.BlobInPixelSource
blobs.Skin
- All Implemented Interfaces:
- java.lang.Cloneable, Growable
- public class Skin
- extends BlobInPixelSource
|
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.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 |
skinRedLower
public static float skinRedLower
skinRedUpper
public static float skinRedUpper
skinGreenLower
public static float skinGreenLower
skinGreenUpper
public static float skinGreenUpper
Skin
public Skin(PixelSource _ps,
java.awt.image.BufferedImage _debugImage)
Skin
public Skin(PixelSource _ps)
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()