|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.shapelogic.imageprocessing.SBSimpleCompare
org.shapelogic.imageprocessing.SBByteCompare
public class SBByteCompare
Compare implementations for gray scale.
| Field Summary |
|---|
| Fields inherited from class org.shapelogic.imageprocessing.SBSimpleCompare |
|---|
bitSet, currentColor, fillWithOwnColor, handledColor, ip, mask, maxDist, numberOfPixels |
| Constructor Summary | |
|---|---|
SBByteCompare()
|
|
| 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)
|
void |
init(ij.process.ImageProcessor 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 |
|---|
factory, getCurrentColor, getHandledColor, getMaxDist, getNumberOfPixels, grabColorFromPixel, isHandled, newSimilar, setCurrentColor, setHandled, setHandledColor, setMaxDist, splitColor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SBByteCompare()
| Method Detail |
|---|
public boolean similar(int index)
index - to image
public void init(ij.process.ImageProcessor ipIn)
throws java.lang.Exception
SBSimpleCompare
init in interface SBPixelCompareinit in class SBSimpleComparejava.lang.Exception
public int colorDistance(int color1,
int color2)
public void action(int index)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||