Skip to content

Commit

Permalink
Use correct constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
JimBobSquarePants committed Jan 8, 2025
1 parent a214311 commit 079ebc6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static void CompareToReference<TPixel>(
}

using Image<Rgba64> expected = Image.Load<Rgba64>(referencePath);
TolerantImageComparer comparer = new(percentageTolerance / 100F);
ImageComparer comparer = ImageComparer.TolerantPercentage(percentageTolerance);
ImageSimilarityReport report = comparer.CompareImagesOrFrames(expected, image);

if (!report.IsEmpty)
Expand Down

0 comments on commit 079ebc6

Please sign in to comment.