From 7ac5e5508a7387e61c3267e923a34173a327d100 Mon Sep 17 00:00:00 2001 From: ac_fx <arc334@drexel.edu> Date: Tue, 12 Dec 2023 14:37:33 -0500 Subject: [PATCH] cliplimits -> inf fix --- matlab/+SSF/quantize8.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/+SSF/quantize8.m b/matlab/+SSF/quantize8.m index d5dd5a70..d72fd4b7 100644 --- a/matlab/+SSF/quantize8.m +++ b/matlab/+SSF/quantize8.m @@ -10,7 +10,7 @@ end im = max(im,clipLimits(1)); im = min(im,clipLimits(end)); -im = (im - clipLimits(1)) ./ (clipLimits(end) - clipLimits(end)); +im = (im - clipLimits(1)) ./ (clipLimits(end) - clipLimits(1)); im = im2uint8(im); im = max(im,1); im(0 == im_in) = 0; -- GitLab