|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.jemmy.image.RoughImageComparator
public class RoughImageComparator
Compares two images roughly (i.e. not all of the pixel colors should match).
Constructor Summary | |
---|---|
RoughImageComparator(double roughness)
Creates a comparator with roughness allowed roughness. |
Method Summary | |
---|---|
boolean |
compare(java.awt.image.BufferedImage image1,
java.awt.image.BufferedImage image2)
Compares two images with allowed roughness. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RoughImageComparator(double roughness)
roughness
allowed roughness.
roughness
- Allowed comparision roughness.Method Detail |
---|
public boolean compare(java.awt.image.BufferedImage image1, java.awt.image.BufferedImage image2)
compare
in interface ImageComparator
image1
- an image to compare.image2
- an image to compare.
image1.getWidth() * image1.getHeight() * roughness
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |