public class AverageDistanceImageComparator extends BufferedImageComparator
| Constructor and Description |
|---|
AverageDistanceImageComparator()
Creates comparator with the default sensitivity value = 0.02
(around 5 in 0-255 color component value).
|
AverageDistanceImageComparator(double sensitivity)
Creates comparator with the specified sensitivity value
|
| Modifier and Type | Method and Description |
|---|---|
double |
getSensitivity() |
void |
setSensitivity(double sensitivity) |
createDiffRaster, toImage, toRasterarrayIndexOf, calcDiffColor, compare, computeDifference, computeDiffSize, getComponentValue, getID, getRasterComparatorpublic AverageDistanceImageComparator()
AverageDistanceImageComparator(double)public AverageDistanceImageComparator(double sensitivity)
sensitivity - Maximum threshold for average 3-D distance between
colors in 3-D sRGB color space for images to be considered equal.
Meaningful values lay 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 all the colors are
completely different.Copyright © 2018. All rights reserved.