From 4483a0bc676f0e5655a624da4e62ddf19d35f725 Mon Sep 17 00:00:00 2001 From: Vladimir Date: Tue, 30 Jun 2015 23:21:57 +0900 Subject: [PATCH] Fixing Warnings #4 --- modules/tracking/src/tldDetector.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/tracking/src/tldDetector.cpp b/modules/tracking/src/tldDetector.cpp index 90cf6d824..719332b78 100644 --- a/modules/tracking/src/tldDetector.cpp +++ b/modules/tracking/src/tldDetector.cpp @@ -513,7 +513,7 @@ namespace cv //e1 = getTickCount(); for (int i = 0; i < (int)varBuffer.size(); i++) { - prepareClassifiers((int)blurred_imgs[varScaleIDs[i]].step[0]); + prepareClassifiers(static_cast (blurred_imgs[varScaleIDs[i]].step[0])); if (ensembleClassifierNum(&blurred_imgs[varScaleIDs[i]].at(varBuffer[i].y, varBuffer[i].x)) <= ENSEMBLE_THRESHOLD) continue; ensBuffer.push_back(varBuffer[i]); @@ -582,7 +582,7 @@ namespace cv int scaleID; std::vector resized_imgs, blurred_imgs; std::vector varBuffer, ensBuffer; - std::vector varScaleIDs, ensScaleIDs; + std::vector varScaleIDs, ensScaleIDs; //int64 e1, e2; //double t; @@ -636,7 +636,7 @@ namespace cv //NN classification //e1 = getTickCount(); //Prepare batch of patches - int numOfPatches = ensBuffer.size(); + int numOfPatches = (int)ensBuffer.size(); Mat_ stdPatches(numOfPatches, 225); double *resultSr = new double[numOfPatches]; double *resultSc = new double[numOfPatches];