|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.shapelogic.imageprocessing.SBSimpleCompare
public abstract class SBSimpleCompare
Abstract class fro compare.
Field Summary | |
---|---|
protected java.util.BitSet |
bitSet
|
protected int |
currentColor
|
protected boolean |
fillWithOwnColor
|
protected int |
handledColor
|
protected ij.process.ImageProcessor |
ip
|
protected int |
mask
|
protected int |
maxDist
|
protected int |
numberOfPixels
|
Constructor Summary | |
---|---|
SBSimpleCompare()
|
Method Summary | |
---|---|
static SBSimpleCompare |
factory(ij.process.ImageProcessor ip)
|
int |
getCurrentColor()
|
int |
getHandledColor()
|
int |
getMaxDist()
|
int |
getNumberOfPixels()
|
void |
grabColorFromPixel(int startX,
int startY)
|
void |
init(ij.process.ImageProcessor ip)
Call at start, this might also work as a reset |
boolean |
isHandled(int index)
Check if pixel at index already have been handled. |
boolean |
newSimilar(int index)
Similar and not handled |
void |
setCurrentColor(int currentColor)
|
void |
setHandled(int index)
Mark that pixel at index has been handled |
void |
setHandledColor(int handledColor)
|
void |
setMaxDist(int maxDist)
|
static int[] |
splitColor(int colorIn)
split color coded as int into 3 int sould probably be moved to util class |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.shapelogic.imageprocessing.SBPixelCompare |
---|
action, colorDistance, similar |
Field Detail |
---|
protected int currentColor
protected int handledColor
protected int mask
protected ij.process.ImageProcessor ip
protected int maxDist
protected java.util.BitSet bitSet
protected boolean fillWithOwnColor
protected int numberOfPixels
Constructor Detail |
---|
public SBSimpleCompare()
Method Detail |
---|
public boolean newSimilar(int index)
newSimilar
in interface SBPixelCompare
public int getCurrentColor()
public void setCurrentColor(int currentColor)
currentColor
- The currentColor to set.public int getHandledColor()
public void setHandledColor(int handledColor)
handledColor
- The handledColor to set.public int getMaxDist()
public void setMaxDist(int maxDist)
maxDist
- The maxDist to set.public void grabColorFromPixel(int startX, int startY)
grabColorFromPixel
in interface SBPixelCompare
public static SBSimpleCompare factory(ij.process.ImageProcessor ip) throws java.lang.Exception
java.lang.Exception
public static int[] splitColor(int colorIn)
public void init(ij.process.ImageProcessor ip) throws java.lang.Exception
init
in interface SBPixelCompare
java.lang.Exception
public boolean isHandled(int index)
isHandled
in interface SBPixelCompare
public void setHandled(int index)
setHandled
in interface SBPixelCompare
public int getNumberOfPixels()
getNumberOfPixels
in interface SBPixelCompare
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |