From dfe8c94085029b3cde7831a54e5840f4b3462d21 Mon Sep 17 00:00:00 2001 From: Uday Patel Date: Sat, 22 Jun 2024 12:49:37 -0400 Subject: [PATCH] feat(CLI): temporarily accounting for the threshold flag --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 6b0585a..f620f4b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,6 +13,7 @@ fn main() { let img1 = load_image(&args.file1); let img2 = load_image(&args.file2); + let threshold = args.threshold; let elapsed = now.elapsed(); println!("Both file load time elapsed: {:?}", elapsed); @@ -25,4 +26,5 @@ fn main() { println!("Algorithm time: {:?}", process_elapsed); println!("Similarity Index: {:?}", ssim); + println!("Above Threshold [{:1}%]: {:?}", threshold, if (ssim * 100.) >= threshold { true } else { false }); }