|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.shapelogic.color.ColorDistance1 org.shapelogic.color.ColorDistanceWithImage1
public class ColorDistanceWithImage1
ColorDistance with an image so you can ask the distance based on x,y coordinates.
Field Summary | |
---|---|
protected SLImage |
_image
|
protected int |
_lineStride
|
protected byte[] |
_pixels
|
Fields inherited from class org.shapelogic.color.ColorDistance1 |
---|
_referenceColor, INSTANCE |
Constructor Summary | |
---|---|
ColorDistanceWithImage1()
|
Method Summary | |
---|---|
double |
distanceToReferenceColor(int x,
int y)
|
SLImage |
getImage()
|
void |
setImage(SLImage image)
|
Methods inherited from class org.shapelogic.color.ColorDistance1 |
---|
distance, distance, distance, distanceToReferenceColor, getInstance, setReferenceColor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.shapelogic.color.IColorDistance |
---|
distance, distance, distance, distanceToReferenceColor, setReferenceColor |
Field Detail |
---|
protected byte[] _pixels
protected SLImage _image
protected int _lineStride
Constructor Detail |
---|
public ColorDistanceWithImage1()
Method Detail |
---|
public double distanceToReferenceColor(int x, int y)
distanceToReferenceColor
in interface IColorDistanceWithImage
public SLImage getImage()
getImage
in interface IColorDistanceWithImage
public void setImage(SLImage image)
setImage
in interface IColorDistanceWithImage
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |