Fix compilation error on Mac

This commit is contained in:
peng xiao 2013-07-16 08:48:09 +08:00
parent e5c396bb24
commit ff73557304

View File

@ -58,7 +58,7 @@ PERFTEST(GoodFeaturesToTrack)
std::vector<cv::Point2f> pts_gold, pts_ocl;
for(int imgIdx = 0; imgIdx < sizeof(images)/sizeof(std::string); ++imgIdx)
for(size_t imgIdx = 0; imgIdx < (sizeof(images)/sizeof(std::string)); ++imgIdx)
{
Mat frame = imread(abspath(images[imgIdx]), IMREAD_GRAYSCALE);
CV_Assert(!frame.empty());