1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-20 21:40:49 +08:00

Fixing Warnings #4

This commit is contained in:
Vladimir
2015-06-30 23:21:57 +09:00
parent fcd1a682e7
commit 4483a0bc67

View File

@@ -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<int> (blurred_imgs[varScaleIDs[i]].step[0]));
if (ensembleClassifierNum(&blurred_imgs[varScaleIDs[i]].at<uchar>(varBuffer[i].y, varBuffer[i].x)) <= ENSEMBLE_THRESHOLD)
continue;
ensBuffer.push_back(varBuffer[i]);
@@ -582,7 +582,7 @@ namespace cv
int scaleID;
std::vector <Mat> resized_imgs, blurred_imgs;
std::vector <Point> varBuffer, ensBuffer;
std::vector <double> varScaleIDs, ensScaleIDs;
std::vector <int> 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_<uchar> stdPatches(numOfPatches, 225);
double *resultSr = new double[numOfPatches];
double *resultSc = new double[numOfPatches];