From 89e6767afc88048d9645764e81f9dc9ac0da192c Mon Sep 17 00:00:00 2001 From: Gines Hidalgo Date: Sun, 10 Jan 2021 23:42:00 -0500 Subject: [PATCH] Removed OpenCV 4.4 warning Signed-off-by: Gines Hidalgo --- src/openpose/utilities/openCv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openpose/utilities/openCv.cpp b/src/openpose/utilities/openCv.cpp index c66a78d1..38ce44dd 100644 --- a/src/openpose/utilities/openCv.cpp +++ b/src/openpose/utilities/openCv.cpp @@ -141,7 +141,7 @@ namespace op // Empirically tested - OpenCV is more efficient normalizing a whole matrix/image (it uses AVX and // other optimized instruction sets). // In addition, the following if statement does not copy the pointer to a cv::Mat, just wrapps it. - cv::Mat floatPtrImageCvWrapper(height, width, CV_32FC3, floatPtrImage); + cv::Mat floatPtrImageCvWrapper(height*width*3, 1, CV_32FC1, floatPtrImage); // CV_32FC3 warns about https://github.com/opencv/opencv/issues/16739 floatPtrImageCvWrapper = floatPtrImageCvWrapper*(1/256.f) - 0.5f; #endif } -- GitLab