Package org.testfx.service.support
Class PixelMatcherResult
- java.lang.Object
-
- org.testfx.service.support.PixelMatcherResult
-
public class PixelMatcherResult extends java.lang.ObjectIndicates how similar/dissimilar two images were on a pixel-to-pixel comparison level viaPixelMatcher.match(Image, Image).
-
-
Field Summary
Fields Modifier and Type Field Description private doublematchFactorprivate javafx.scene.image.ImagematchImageprivate longmatchPixelsprivate longtotalPixels
-
Constructor Summary
Constructors Constructor Description PixelMatcherResult(javafx.scene.image.Image matchImage, long matchPixels, long totalPixels)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetMatchFactor()Gets the percentage of pixels that matched between the two original images.javafx.scene.image.ImagegetMatchImage()Gets the image whose pixels indicate matches and mismatches between the two original images.longgetMatchPixels()Gets the total number of pixels that matched between the two original images.doublegetNonMatchFactor()Gets the percentage of pixels that did not match between the two original images.longgetNonMatchPixels()Gets the total number of pixels that did not match between the two original images.longgetTotalPixels()Gets the total number of pixels in the match image.
-
-
-
Method Detail
-
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.
-
-