From 75d65195aed7b14a9a9ad0703b44f6b648845a84 Mon Sep 17 00:00:00 2001 From: Bo Thompson Date: Mon, 25 Mar 2024 14:41:06 -0400 Subject: [PATCH] Remove a redundant `MAX` comparison within a loop in `compute_image_metrics` --- core/io/image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/io/image.cpp b/core/io/image.cpp index c454f06d670..6096211cff0 100644 --- a/core/io/image.cpp +++ b/core/io/image.cpp @@ -4114,7 +4114,7 @@ Dictionary Image::compute_image_metrics(const Ref p_compared_image, bool continue; } - image_metric_max = MAX(image_metric_max, i); + image_metric_max = i; double x = i * hist[i];