Class PDiffComparator
- java.lang.Object
-
- com.crawljax.stateabstractions.visual.PDiffComparator
-
public class PDiffComparator extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private static doubleCOLOR_FACTORprivate static StringdifferenceColorprivate static doubleFOVprivate static doubleGAMMAprivate static org.slf4j.LoggerLOGGERprivate static doubleLUMINANCEprivate static booleanLUMINANCE_ONLYprivate static intPERCENTAGE_OF_TOTAL_IMAGE_SIZEprivate static ForkJoinPoolpoolprivate static intTHRESHOLD_PIXELS
-
Constructor Summary
Constructors Constructor Description PDiffComparator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doublecomputeDistance(BufferedImage imgA, BufferedImage imgB)static doublecomputeDistance(String page1, String page2)static StringgetHexFromDecimal(int dec)static StringgetHexFromRGB(int red, int green, int blue)
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
pool
private static final ForkJoinPool pool
-
COLOR_FACTOR
private static final double COLOR_FACTOR
- See Also:
- Constant Field Values
-
FOV
private static final double FOV
- See Also:
- Constant Field Values
-
GAMMA
private static final double GAMMA
- See Also:
- Constant Field Values
-
LUMINANCE
private static final double LUMINANCE
- See Also:
- Constant Field Values
-
LUMINANCE_ONLY
private static final boolean LUMINANCE_ONLY
- See Also:
- Constant Field Values
-
THRESHOLD_PIXELS
private static int THRESHOLD_PIXELS
-
PERCENTAGE_OF_TOTAL_IMAGE_SIZE
private static final int PERCENTAGE_OF_TOTAL_IMAGE_SIZE
- See Also:
- Constant Field Values
-
differenceColor
private static final String differenceColor
-
-
Method Detail
-
getHexFromDecimal
public static String getHexFromDecimal(int dec)
-
getHexFromRGB
public static String getHexFromRGB(int red, int green, int blue)
-
computeDistance
public static double computeDistance(BufferedImage imgA, BufferedImage imgB)
-
-