|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlib.comparators.ImageComparator
public class ImageComparator
an image comparator returns the distance between two images
Constructor Summary | |
---|---|
ImageComparator(Metric distanceMetric)
|
|
ImageComparator(Metric distanceMetric,
double fuzz)
|
Method Summary | |
---|---|
double |
distance(java.awt.image.BufferedImage img1,
java.awt.image.BufferedImage img2)
Measure the distance between two images as defined by the pre-defined metric NOTE: the images must have the same size! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageComparator(Metric distanceMetric)
public ImageComparator(Metric distanceMetric, double fuzz)
Method Detail |
---|
public double distance(java.awt.image.BufferedImage img1, java.awt.image.BufferedImage img2)
distance
in interface Distanceator<java.awt.image.BufferedImage>
img1
- the first image to compare toimg2
- the second image to compare with
Metric
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |