From 0eb1d87b381cab37a7deea56decbed62246e3d91 Mon Sep 17 00:00:00 2001 From: Aleksandr Tischenko Date: Sun, 18 Mar 2018 13:13:02 +0200 Subject: [PATCH] renamed constants because they conflict with constants in Windows Kit --- modules/face/src/mace.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/face/src/mace.cpp b/modules/face/src/mace.cpp index 0a1c95295..109476eaa 100644 --- a/modules/face/src/mace.cpp +++ b/modules/face/src/mace.cpp @@ -208,8 +208,8 @@ struct MACEImpl : MACE { re -= m1; double value=0; double num=0; - int rad1=int(floor((double)(45.0/64.0)*(double)IMGSIZE)); - int rad2=int(floor((double)(27.0/64.0)*(double)IMGSIZE)); + int rad_1=int(floor((double)(45.0/64.0)*(double)IMGSIZE)); + int rad_2=int(floor((double)(27.0/64.0)*(double)IMGSIZE)); // cache a few pow's and sqrts std::vector r2(IMGSIZE_2X); Mat_ radtab(IMGSIZE_2X,IMGSIZE_2X); @@ -226,8 +226,8 @@ struct MACEImpl : MACE { for (int l=0; l rad2) { + if (rad < rad_1) { + if (rad > rad_2) { value += re(l,m); num++; } @@ -240,8 +240,8 @@ struct MACEImpl : MACE { for (int l=0; l rad2) { + if (rad < rad_1) { + if (rad > rad_2) { double d = (value - re(l,m)); std2 += d * d; }