Fixed compilation warning (with clang)

git-svn-id: http://find-object.googlecode.com/svn/trunk/find_object@101 620bd6b2-0a58-f614-fd9a-1bd335dccda9
This commit is contained in:
matlabbe 2012-05-10 01:44:07 +00:00
parent 1013da1e81
commit 15f441154a

View File

@ -39,7 +39,7 @@ cv::Mat cvtQImage2CvMat(const QImage & image)
cvImage = cv::Mat(image.height(), image.width(), CV_8UC3); cvImage = cv::Mat(image.height(), image.width(), CV_8UC3);
unsigned char * data = cvImage.data; unsigned char * data = cvImage.data;
const IplImage test = cvImage; const IplImage test = cvImage;
printf("%d vs %d\n", cvImage.cols*cvImage.elemSize(), test.widthStep); printf("%d vs %d\n", cvImage.cols*int(cvImage.elemSize()), test.widthStep);
for(int y = 0; y < image.height(); ++y, data+=cvImage.cols*cvImage.elemSize()) for(int y = 0; y < image.height(); ++y, data+=cvImage.cols*cvImage.elemSize())
{ {
for(int x = 0; x < image.width(); ++x) for(int x = 0; x < image.width(); ++x)