org.shapelogic.imageprocessing
Class SBByteCompare
java.lang.Object
org.shapelogic.imageprocessing.SBSimpleCompare
org.shapelogic.imageprocessing.SBByteCompare
- All Implemented Interfaces:
- SBPixelCompare
public class SBByteCompare
- extends SBSimpleCompare
Compare implementations for gray scale.
- Author:
- Sami Badawi
Field Summary |
static int |
MASK
|
Method Summary |
void |
action(int index)
This used for changes to other images or say modify all colors
to the first found. |
int |
colorDistance(int color1,
int color2)
|
int |
getColorAsInt(int index)
|
void |
init(SLImage ipIn)
Call at start, this might also work as a reset |
boolean |
similar(int index)
Tells if the color at index is close enough the set color to
be considered part of the segmented area. |
Methods inherited from class org.shapelogic.imageprocessing.SBSimpleCompare |
getCurrentColor, getHandledColor, getMaxDist, getNumberOfPixels, grabColorFromPixel, init, isFarFromReferencColor, isHandled, isModifying, newSimilar, setCurrentColor, setFarFromReferencColor, setHandled, setHandledColor, setMaxDist, setMaxDistance, setModifying |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MASK
public static final int MASK
- See Also:
- Constant Field Values
SBByteCompare
public SBByteCompare()
similar
public boolean similar(int index)
- Tells if the color at index is close enough the set color to
be considered part of the segmented area.
- Parameters:
index
- to image
init
public void init(SLImage ipIn)
throws java.lang.Exception
- Description copied from class:
SBSimpleCompare
- Call at start, this might also work as a reset
- Overrides:
init
in class SBSimpleCompare
- Throws:
java.lang.Exception
colorDistance
public int colorDistance(int color1,
int color2)
action
public void action(int index)
- This used for changes to other images or say modify all colors
to the first found.
getColorAsInt
public int getColorAsInt(int index)
Copyright © 2009. All Rights Reserved.