From 2ac55cb957da6ede00290b992cee18fab20b2171 Mon Sep 17 00:00:00 2001 From: "d.kilic" <d.kilic@fz-juelich.de> Date: Wed, 7 Jun 2023 13:48:47 +0200 Subject: [PATCH] Resolve "Flaky MacOS test" Init reprojection error with 0 --- include/extrCalibration.h | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/include/extrCalibration.h b/include/extrCalibration.h index a32071a3e..f5c8aa4a1 100644 --- a/include/extrCalibration.h +++ b/include/extrCalibration.h @@ -36,23 +36,23 @@ class PersonStorage; class ReprojectionError { private: - bool mValid = false; - double mPointHeightAvg; - double mPointHeightStdDev; - double mPointHeightVariance; - double mPointHeightMax; - - double mDefaultHeightAvg; - double mDefaultHeightStdDev; - double mDefaultHeightVariance; - double mDefaultHeightMax; - - double mPixelAvg; - double mPixelStdDev; - double mPixelVariance; - double mPixelMax; - - double mUsedDefaultHeight; + bool mValid = false; + double mPointHeightAvg = 0; + double mPointHeightStdDev = 0; + double mPointHeightVariance = 0; + double mPointHeightMax = 0; + + double mDefaultHeightAvg = 0; + double mDefaultHeightStdDev = 0; + double mDefaultHeightVariance = 0; + double mDefaultHeightMax = 0; + + double mPixelAvg = 0; + double mPixelStdDev = 0; + double mPixelVariance = 0; + double mPixelMax = 0; + + double mUsedDefaultHeight = 0; public: ReprojectionError() = default; -- GitLab