Class ImageComparator

java.lang.Object
isula.image.util.ImageComparator

public class ImageComparator extends Object
  • 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

      public String getReferenceImageFile()
    • executeComparison

      public void executeComparison() throws Exception
      Extracts metrics about the similarities of two images.
      Throws:
      Exception - In case file reading/writing fails.
    • setImageToValidateFile

      public void setImageToValidateFile(String imageToValidateFile)
    • getBuildingDetectionPercentage

      public double getBuildingDetectionPercentage()
    • getBranchingFactor

      public double getBranchingFactor()
    • getJaccardSimilarityIndex

      public double getJaccardSimilarityIndex()
    • getFalsePositiveRate

      public double getFalsePositiveRate()
    • getFalseNegativeRate

      public double getFalseNegativeRate()
    • resultAsString

      public String resultAsString()
      Returns the results as an String.
      Returns:
      String representing the results.
    • setGreyScalePositiveThreshold

      public void setGreyScalePositiveThreshold(int greyScalePositiveThreshold)