From e959ea5dc0bf70e0806ccd3c4880bb23ab015605 Mon Sep 17 00:00:00 2001 From: David Tschumperle Date: Wed, 10 Jan 2024 07:38:51 +0100 Subject: [PATCH 1/2] . --- CImg.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/CImg.h b/CImg.h index b9864d91..7545184b 100644 --- a/CImg.h +++ b/CImg.h @@ -21696,13 +21696,15 @@ namespace cimg_library { s2 = ++s1; while (s2::vector((ulongT)mp_vector_normalize,pos,arg1,p1,arg2,arg3).move_to(code); + CImg::vector((ulongT)mp_vector_normalize,pos,arg1,p1,arg2,arg3,arg4).move_to(code); return_new_comp = true; _cimg_mp_return(pos); } @@ -28688,8 +28690,10 @@ namespace cimg_library { const double *const ptrs = &_mp_arg(2) + 1, min_value = _mp_arg(4), - max_value = _mp_arg(5); - CImg(ptrd,siz,1,1,1,true) = CImg(ptrs,siz,1,1,1,true).get_normalize(min_value,max_value); + max_value = _mp_arg(5), + constant_case_ratio = _mp_arg(6); + CImg(ptrd,siz,1,1,1,true) = CImg(ptrs,siz,1,1,1,true). + get_normalize(min_value,max_value,constant_case_ratio); return cimg::type::nan(); } From 157800186587ed368cd2cb30e0974bc079cbe556 Mon Sep 17 00:00:00 2001 From: David Tschumperle Date: Wed, 10 Jan 2024 07:42:56 +0100 Subject: [PATCH 2/2] . --- CImg.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/CImg.h b/CImg.h index 7545184b..63b21266 100644 --- a/CImg.h +++ b/CImg.h @@ -21693,11 +21693,18 @@ namespace cimg_library { s0 = ss + 10; s1 = s0; while (s1