< prev index next >

core/JemmyCore/src/org/jemmy/image/pixel/MaxDistanceComparator.java

Print this page

        

*** 25,54 **** package org.jemmy.image.pixel; import org.jemmy.Dimension; /** - * * @author shura */ public class MaxDistanceComparator extends ThresholdComparator{ - /** - * - * @param threshold - */ public MaxDistanceComparator(double threshold) { super(0, Math.sqrt(3)); setThreshold(threshold); } - /** - * - * @param image1 - * @param image2 - * @return - */ public boolean compare(Raster image1, Raster image2) { Dimension size = PixelImageComparator.computeDiffSize(image1, image2); if (size == null) { return false; } --- 25,43 ----
*** 63,75 **** } } return distance <= getThreshold(); } - /** - * - * @return - */ public String getID() { return MaxDistanceComparator.class.getName() + ":" + getThreshold(); } } --- 52,60 ----
< prev index next >