|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SBPixelCompare
Interface for doing pixel compare. In order to handle both colors and gray scale have an interface that tells if 2 pixels are similar.
Method Summary | |
---|---|
void |
action(int index)
|
int |
colorDistance(int color1,
int color2)
|
int |
getColorAsInt(int index)
|
int |
getNumberOfPixels()
|
void |
grabColorFromPixel(int startX,
int startY)
|
void |
init(ij.process.ImageProcessor ip)
|
boolean |
isFarFromReferencColor()
|
boolean |
isHandled(int index)
|
boolean |
isModifying()
Should pixels be modified. |
boolean |
newSimilar(int index)
|
void |
setCurrentColor(int color)
|
void |
setFarFromReferencColor(boolean farFromColor)
|
void |
setHandled(int index)
|
void |
setMaxDistance(int maxDistance)
|
void |
setModifying(boolean input)
|
boolean |
similar(int index)
Test if a pixel at index is similar to the internal state |
Method Detail |
---|
boolean similar(int index)
index
- to imageboolean newSimilar(int index)
void action(int index)
boolean isHandled(int index)
void setHandled(int index)
int colorDistance(int color1, int color2)
void init(ij.process.ImageProcessor ip) throws java.lang.Exception
java.lang.Exception
int getNumberOfPixels()
void grabColorFromPixel(int startX, int startY)
boolean isModifying()
void setModifying(boolean input)
int getColorAsInt(int index)
void setCurrentColor(int color)
void setMaxDistance(int maxDistance)
boolean isFarFromReferencColor()
void setFarFromReferencColor(boolean farFromColor)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |