Commit eb124bd369f6eb266e6d07b87f8320da111a7b02

Authored by Scott Klum
1 parent 55bf7725

No compiler warnings

openbr/plugins/imgproc/samplefrommask.cpp
@@ -26,7 +26,7 @@ class SampleFromMaskTransform : public UntrainableTransform @@ -26,7 +26,7 @@ class SampleFromMaskTransform : public UntrainableTransform
26 Mat indices; 26 Mat indices;
27 findNonZero(masked,indices); 27 findNonZero(masked,indices);
28 28
29 - for (int j=0; j<indices.total(); j++) 29 + for (size_t j=0; j<indices.total(); j++)
30 dst.m().at<uchar>(0,j) = masked.at<uchar>(indices.at<Point>(j).y,indices.at<Point>(j).x); 30 dst.m().at<uchar>(0,j) = masked.at<uchar>(indices.at<Point>(j).y,indices.at<Point>(j).x);
31 } 31 }
32 }; 32 };