|
|||||||||
| 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 for compare.
| Field Summary | |
|---|---|
protected int |
_currentColor
|
protected boolean |
_farFromReferenceColor
|
protected int |
_maxDistance
|
protected boolean |
_modifying
|
protected SLImage |
_slImage
|
protected java.util.BitSet |
bitSet
|
protected boolean |
fillWithOwnColor
|
protected int |
handledColor
|
protected int |
mask
|
protected int |
numberOfPixels
|
| Constructor Summary | |
|---|---|
SBSimpleCompare()
|
|
| Method Summary | |
|---|---|
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 |
void |
init(SLImage image)
Call at start, this might also work as a reset |
boolean |
isFarFromReferencColor()
|
boolean |
isHandled(int index)
Check if pixel at index already have been handled. |
boolean |
isModifying()
Should pixels be modified. |
boolean |
newSimilar(int index)
Similar and not handled |
void |
setCurrentColor(int currentColor)
|
void |
setFarFromReferencColor(boolean farFromColor)
|
void |
setHandled(int index)
Mark that pixel at index has been handled |
void |
setHandledColor(int handledColor)
|
void |
setMaxDist(int maxDist)
|
void |
setMaxDistance(int maxDistance)
|
void |
setModifying(boolean input)
|
| 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, getColorAsInt, similar |
| Field Detail |
|---|
protected int _currentColor
protected int handledColor
protected int mask
protected SLImage _slImage
protected int _maxDistance
protected java.util.BitSet bitSet
protected boolean fillWithOwnColor
protected int numberOfPixels
protected boolean _modifying
protected boolean _farFromReferenceColor
| Constructor Detail |
|---|
public SBSimpleCompare()
| Method Detail |
|---|
public boolean newSimilar(int index)
newSimilar in interface SBPixelComparepublic int getCurrentColor()
public void setCurrentColor(int currentColor)
setCurrentColor in interface SBPixelComparecurrentColor - 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 void init(ij.process.ImageProcessor ip)
throws java.lang.Exception
init in interface SBPixelComparejava.lang.Exception
public void init(SLImage image)
throws java.lang.Exception
java.lang.Exceptionpublic boolean isHandled(int index)
isHandled in interface SBPixelComparepublic void setHandled(int index)
setHandled in interface SBPixelComparepublic int getNumberOfPixels()
getNumberOfPixels in interface SBPixelComparepublic boolean isModifying()
isModifying in interface SBPixelComparepublic void setModifying(boolean input)
setModifying in interface SBPixelComparepublic void setMaxDistance(int maxDistance)
setMaxDistance in interface SBPixelComparepublic boolean isFarFromReferencColor()
isFarFromReferencColor in interface SBPixelComparepublic void setFarFromReferencColor(boolean farFromColor)
setFarFromReferencColor in interface SBPixelCompare
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||