fix build with GCC 3.3 on Ubuntu 8.04

This commit is contained in:
Vadim Pisarevsky
2010-07-09 09:09:20 +00:00
parent 4187f11610
commit db82906067
5 changed files with 57 additions and 50 deletions

View File

@@ -171,7 +171,8 @@ void saveCameraParams( const string& filename,
for( size_t i = 0; i < imagePoints.size(); i++ )
{
Mat r = imagePtMat.row(i).reshape(2, imagePtMat.cols);
Mat(imagePoints[i]).copyTo(r);
Mat imgpti(imagePoints[i]);
imgpti.copyTo(r);
}
fs << "image_points" << imagePtMat;
}