Class ComparisonPlan

Object
org.anchoranalysis.test.image.rasterwriter.comparison.ComparisonPlan

public final class ComparisonPlan
extends Object
A plan on which comparisons to execute for a test.
Author:
Owen Feehan
  • Constructor Details

    • ComparisonPlan

      public ComparisonPlan​(boolean bytewiseCompare, Optional<ImageFileFormat> formatVoxelwiseCompare, boolean skipComparisonForRGB)
      Creates a plan for particular settings.
      Parameters:
      bytewiseCompare - iff true, a bytewise comparison occurs between the saved-file and the newly created file.
      formatVoxelwiseCompare - iff defined, a voxel-wise comparison occurs with the saved-rasters from a different format.
      skipComparisonForRGB - if true, comparisons are not applied to RGB images.
    • ComparisonPlan

      public ComparisonPlan​(boolean bytewiseCompare, Optional<ImageFileFormat> formatVoxelwiseCompare, boolean skipComparisonForRGB, String directoryPathToCopyMissingImagesTo)
      Creates a plan for particular settings - and which copies any missing images to a particular directory.

      This helps create resource directories of saved-images, if they are missing.

      Parameters:
      bytewiseCompare - iff true, a bytewise comparison occurs between the saved-file and the newly created file.
      formatVoxelwiseCompare - iff defined, a voxel-wise comparison occurs with the saved-rasters from a different file-format.
      skipComparisonForRGB - if true, comparisons are not applied to RGB images.
      directoryPathToCopyMissingImagesTo - a path to a directory to copy images to if a test fails (which we assume is evidence the image is missing).
  • Method Details