From 665e02f75fd919a4745b4ada93f5d62f658f90ec Mon Sep 17 00:00:00 2001 From: Fabien Castan Date: Wed, 21 Apr 2021 18:54:53 +0200 Subject: [PATCH] [software] colorCheckerDetection: linux build fix --- src/software/utils/main_colorCheckerDetection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/software/utils/main_colorCheckerDetection.cpp b/src/software/utils/main_colorCheckerDetection.cpp index cdac817257..82771d5e3f 100644 --- a/src/software/utils/main_colorCheckerDetection.cpp +++ b/src/software/utils/main_colorCheckerDetection.cpp @@ -275,7 +275,7 @@ struct MacbethCCheckerQuad : Quad { // Check current pixel for the current image mask if(_cellMasks[i].at(y,x) == 255) { - image::RGBAfColor& px = img(y + _bbox.min.y, x + _bbox.min.x); + const image::RGBAfColor& px = img(y + _bbox.min.y, x + _bbox.min.x); _colorData.at< cv::Vec3d >(i,0) += cv::Vec3d(px.r(), px.g(), px.b()); ++pixelsCount.at(i); }