Package isula.image.util
Class ImageComparator
java.lang.Object
isula.image.util.ImageComparator
-
Constructor Summary
ConstructorDescriptionImageComparator
(String description, String referenceImageFile, int greyScalePositiveThreshold) Creates an instance for Compare images. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Extracts metrics about the similarities of two images.double
double
double
double
double
Returns the results as an String.void
setGreyScalePositiveThreshold
(int greyScalePositiveThreshold) void
setImageToValidateFile
(String imageToValidateFile)
-
Constructor Details
-
ImageComparator
public ImageComparator(String description, String referenceImageFile, int greyScalePositiveThreshold) Creates an instance for Compare images.- Parameters:
description
- Image descripcion.referenceImageFile
- Image as a reference.greyScalePositiveThreshold
- Threshold for positive values.
-
-
Method Details
-
getReferenceImageFile
-
executeComparison
Extracts metrics about the similarities of two images.- Throws:
Exception
- In case file reading/writing fails.
-
setImageToValidateFile
-
getBuildingDetectionPercentage
public double getBuildingDetectionPercentage() -
getBranchingFactor
public double getBranchingFactor() -
getJaccardSimilarityIndex
public double getJaccardSimilarityIndex() -
getFalsePositiveRate
public double getFalsePositiveRate() -
getFalseNegativeRate
public double getFalseNegativeRate() -
resultAsString
Returns the results as an String.- Returns:
- String representing the results.
-
setGreyScalePositiveThreshold
public void setGreyScalePositiveThreshold(int greyScalePositiveThreshold)
-