< prev index next >

core/JemmyAWTInput/src/org/jemmy/image/NaturalImageComparator.java

Print this page

        

*** 53,65 **** * @param sensitivity Maximum threshold for 3-D distance between colors * in 3-D sRGB color space for pixels to be considered equal. * Meaningful values are between 0 and approx 1.733. 0 means colors should * be equal to pass the comparison, 1.733 (which is more than square root * of 3) means that comparison will be passed even if the colors are ! * completely different. You could also use {@linkplain ! * #findSensitivity(java.awt.image.BufferedImage, java.awt.image.BufferedImage) ! * findSensitivity()} method to obtain necessary sensitivity value. */ public NaturalImageComparator(double sensitivity) { super(new MaxDistanceComparator(sensitivity)); } public void setSensitivity(double sensitivity) { --- 53,63 ---- * @param sensitivity Maximum threshold for 3-D distance between colors * in 3-D sRGB color space for pixels to be considered equal. * Meaningful values are between 0 and approx 1.733. 0 means colors should * be equal to pass the comparison, 1.733 (which is more than square root * of 3) means that comparison will be passed even if the colors are ! * completely different. */ public NaturalImageComparator(double sensitivity) { super(new MaxDistanceComparator(sensitivity)); } public void setSensitivity(double sensitivity) {
< prev index next >