|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.shapelogic.imageprocessing.SBSimpleCompare
public abstract class SBSimpleCompare
Abstract class fro compare.
Field Summary | |
---|---|
protected int |
_currentColor
|
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 | |
---|---|
static SBSimpleCompare |
factory(ij.process.ImageProcessor ip)
|
static SBSimpleCompare |
factory(SLImage 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 |
void |
init(SLImage image)
Call at start, this might also work as a reset |
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 |
static ValueAreaFactory |
segmentAreaFactory(ij.process.ImageProcessor ip)
|
static ValueAreaFactory |
segmentAreaFactory(SLImage image)
|
void |
setCurrentColor(int currentColor)
|
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
Constructor Detail |
---|
public SBSimpleCompare()
Method Detail |
---|
public boolean newSimilar(int index)
newSimilar
in interface SBPixelCompare
public int getCurrentColor()
public void setCurrentColor(int currentColor)
setCurrentColor
in interface SBPixelCompare
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 SBSimpleCompare factory(SLImage ip) throws java.lang.Exception
java.lang.Exception
public static ValueAreaFactory segmentAreaFactory(ij.process.ImageProcessor ip) throws java.lang.Exception
java.lang.Exception
public static ValueAreaFactory segmentAreaFactory(SLImage image) throws java.lang.Exception
java.lang.Exception
public void init(ij.process.ImageProcessor ip) throws java.lang.Exception
init
in interface SBPixelCompare
java.lang.Exception
public void init(SLImage image) throws java.lang.Exception
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
public boolean isModifying()
isModifying
in interface SBPixelCompare
public void setModifying(boolean input)
setModifying
in interface SBPixelCompare
public void setMaxDistance(int maxDistance)
setMaxDistance
in interface SBPixelCompare
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |