Skip to content

Commit

Permalink
feat(CLI): temporarily accounting for the threshold flag
Browse files Browse the repository at this point in the history
  • Loading branch information
udaypatel1 committed Jun 22, 2024
1 parent 0ab271a commit dfe8c94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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 });
}

0 comments on commit dfe8c94

Please sign in to comment.