public class NaturalImageComparator extends BufferedImageComparator
| Constructor and Description |
|---|
NaturalImageComparator()
Creates comparator with the default sensitivity value = 0.02
(around 5 in 0-255 color component value).
|
NaturalImageComparator(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 NaturalImageComparator()
NaturalImageComparator(double)public NaturalImageComparator(double sensitivity)
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.Copyright © 2018. All rights reserved.