Package org.testfx.service.support
Class PixelMatcherResult
java.lang.Object
org.testfx.service.support.PixelMatcherResult
Indicates how similar/dissimilar two images were on a pixel-to-pixel comparison level via
PixelMatcher.match(Image, Image)
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final double
private final javafx.scene.image.Image
private final long
private final long
-
Constructor Summary
ConstructorsConstructorDescriptionPixelMatcherResult
(javafx.scene.image.Image matchImage, long matchPixels, long totalPixels) -
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets the percentage of pixels that matched between the two original images.javafx.scene.image.Image
Gets the image whose pixels indicate matches and mismatches between the two original images.long
Gets the total number of pixels that matched between the two original images.double
Gets the percentage of pixels that did not match between the two original images.long
Gets the total number of pixels that did not match between the two original images.long
Gets the total number of pixels in the match image.
-
Field Details
-
matchImage
private final javafx.scene.image.Image matchImage -
totalPixels
private final long totalPixels -
matchPixels
private final long matchPixels -
matchFactor
private final double matchFactor
-
-
Constructor Details
-
PixelMatcherResult
public PixelMatcherResult(javafx.scene.image.Image matchImage, long matchPixels, long totalPixels)
-
-
Method Details
-
getMatchImage
public javafx.scene.image.Image getMatchImage()Gets the image whose pixels indicate matches and mismatches between the two original images. -
getTotalPixels
public long getTotalPixels()Gets the total number of pixels in the match image. -
getMatchPixels
public long getMatchPixels()Gets the total number of pixels that matched between the two original images. -
getNonMatchPixels
public long getNonMatchPixels()Gets the total number of pixels that did not match between the two original images. -
getMatchFactor
public double getMatchFactor()Gets the percentage of pixels that matched between the two original images. -
getNonMatchFactor
public double getNonMatchFactor()Gets the percentage of pixels that did not match between the two original images.
-