mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
fixed many warnings from GCC 4.6.1
This commit is contained in:
@@ -1363,7 +1363,7 @@ CV_IMPL void cvInitIntrinsicParams2D( const CvMat* objectPoints,
|
||||
{
|
||||
Ptr<CvMat> matA, _b, _allH, _allK;
|
||||
|
||||
int i, j, pos, nimages, total, ni = 0;
|
||||
int i, j, pos, nimages, ni = 0;
|
||||
double a[9] = { 0, 0, 0, 0, 0, 0, 0, 0, 1 };
|
||||
double H[9], f[2];
|
||||
CvMat _a = cvMat( 3, 3, CV_64F, a );
|
||||
@@ -1389,8 +1389,6 @@ CV_IMPL void cvInitIntrinsicParams2D( const CvMat* objectPoints,
|
||||
a[5] = (imageSize.height - 1)*0.5;
|
||||
_allH = cvCreateMat( nimages, 9, CV_64F );
|
||||
|
||||
total = cvRound(cvSum(npoints).val[0]);
|
||||
|
||||
// extract vanishing points in order to obtain initial value for the focal length
|
||||
for( i = 0, pos = 0; i < nimages; i++, pos += ni )
|
||||
{
|
||||
@@ -2136,7 +2134,7 @@ double cvStereoCalibrate( const CvMat* _objectPoints, const CvMat* _imagePoints1
|
||||
|
||||
for( k = 0; k < 2; k++ )
|
||||
{
|
||||
double maxErr, l2err;
|
||||
double l2err;
|
||||
imgpt_i[k] = cvMat(1, ni, CV_64FC2, imagePoints[k]->data.db + ofs*2);
|
||||
|
||||
if( JtJ || JtErr )
|
||||
@@ -2148,7 +2146,6 @@ double cvStereoCalibrate( const CvMat* _objectPoints, const CvMat* _imagePoints1
|
||||
cvSub( &tmpimagePoints, &imgpt_i[k], &tmpimagePoints );
|
||||
|
||||
l2err = cvNorm( &tmpimagePoints, 0, CV_L2 );
|
||||
maxErr = cvNorm( &tmpimagePoints, 0, CV_C );
|
||||
|
||||
if( JtJ || JtErr )
|
||||
{
|
||||
|
||||
@@ -130,8 +130,6 @@ void findCorner(const vector<Point>& contour, Point2f point, Point2f& corner)
|
||||
double min_dist = std::numeric_limits<double>::max();
|
||||
int min_idx = -1;
|
||||
|
||||
Rect brect = boundingRect(Mat(contour));
|
||||
|
||||
// find corner idx
|
||||
for(size_t i = 0; i < contour.size(); i++)
|
||||
{
|
||||
@@ -155,8 +153,6 @@ void findCorner(const vector<Point2f>& contour, Point2f point, Point2f& corner)
|
||||
double min_dist = std::numeric_limits<double>::max();
|
||||
int min_idx = -1;
|
||||
|
||||
Rect brect = boundingRect(Mat(contour));
|
||||
|
||||
// find corner idx
|
||||
for(size_t i = 0; i < contour.size(); i++)
|
||||
{
|
||||
|
||||
@@ -134,6 +134,8 @@ cvTriangulatePoints(CvMat* projMatr1, CvMat* projMatr2, CvMat* projPoints1, CvMa
|
||||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
double err = 0;
|
||||
/* Points was reconstructed. Try to reproject points */
|
||||
/* We can compute reprojection error if need */
|
||||
{
|
||||
@@ -172,9 +174,11 @@ cvTriangulatePoints(CvMat* projMatr1, CvMat* projMatr2, CvMat* projPoints1, CvMa
|
||||
float deltaX,deltaY;
|
||||
deltaX = (float)fabs(x-xr);
|
||||
deltaY = (float)fabs(y-yr);
|
||||
err += deltaX*deltaX + deltaY*deltaY;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user