diff --git a/apps/interactive-calibration/frameProcessor.cpp b/apps/interactive-calibration/frameProcessor.cpp index bef130ef3b..57e1d97d81 100644 --- a/apps/interactive-calibration/frameProcessor.cpp +++ b/apps/interactive-calibration/frameProcessor.cpp @@ -253,8 +253,8 @@ CalibProcessor::CalibProcessor(cv::Ptr data, captureParameters mCapuredFrames = 0; mNeededFramesNum = capParams.calibrationStep; mDelayBetweenCaptures = static_cast(capParams.captureDelay * capParams.fps); - mMaxTemplateOffset = std::sqrt(std::pow(mCalibData->imageSize.height, 2) + - std::pow(mCalibData->imageSize.width, 2)) / 20.0; + mMaxTemplateOffset = std::sqrt(static_cast(mCalibData->imageSize.height * mCalibData->imageSize.height) + + static_cast(mCalibData->imageSize.width * mCalibData->imageSize.width)) / 20.0; mSquareSize = capParams.squareSize; mTemplDist = capParams.templDst;