From a8a15991f7a0ed43c6b843831424829142029518 Mon Sep 17 00:00:00 2001 From: AndreasLMeg <85451655+AndreasLMeg@users.noreply.github.com> Date: Thu, 11 Nov 2021 17:50:11 +0100 Subject: [PATCH] bugfix I780: as other programs using cv::IMWRITE_... --- src/mode_RPiHQ_mean.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mode_RPiHQ_mean.cpp b/src/mode_RPiHQ_mean.cpp index 1ff6c2f87..d7032bb2b 100644 --- a/src/mode_RPiHQ_mean.cpp +++ b/src/mode_RPiHQ_mean.cpp @@ -56,9 +56,9 @@ void RPiHQmask(const char* fileName) dstImage = cv::Mat::zeros(image.size(), CV_8U); cv::Mat maskHorizon; std::vector compression_params; - compression_params.push_back(CV_IMWRITE_PNG_COMPRESSION); + compression_params.push_back(cv::IMWRITE_PNG_COMPRESSION); compression_params.push_back(9); - compression_params.push_back(CV_IMWRITE_JPEG_QUALITY); + compression_params.push_back(cv::IMWRITE_JPEG_QUALITY); compression_params.push_back(100); if (createMaskHorizon) { @@ -194,9 +194,9 @@ void RPiHQcalcMean(const char* fileName, int asiExposure_us, double asiGain, ras ///////////////////////////////////////////////////////////////////////////////////// std::vector compression_params; - compression_params.push_back(CV_IMWRITE_PNG_COMPRESSION); + compression_params.push_back(cv::IMWRITE_PNG_COMPRESSION); compression_params.push_back(9); - compression_params.push_back(CV_IMWRITE_JPEG_QUALITY); + compression_params.push_back(cv::IMWRITE_JPEG_QUALITY); compression_params.push_back(95); cv::imwrite("test.jpg", dstImage, compression_params);