org.shapelogic.imageprocessing
Interface SBPixelCompare
- All Known Implementing Classes:
- SBByteCompare, SBColorCompare, SBSimpleCompare
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.
- Author:
- Sami Badawi
similar
boolean similar(int index)
- Test if a pixel at index is similar to the internal state
- Parameters:
index
- to image
newSimilar
boolean newSimilar(int index)
action
void action(int index)
isHandled
boolean isHandled(int index)
setHandled
void setHandled(int index)
colorDistance
int colorDistance(int color1,
int color2)
init
void init(ij.process.ImageProcessor ip)
throws java.lang.Exception
- Throws:
java.lang.Exception
getNumberOfPixels
int getNumberOfPixels()
grabColorFromPixel
void grabColorFromPixel(int startX,
int startY)
Copyright © 2007. All Rights Reserved.