mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
fixed warnings and errors reported by VS2010
This commit is contained in:
@@ -1803,7 +1803,7 @@ struct CV_EXPORTS L2
|
||||
ResultType result = ResultType();
|
||||
for( int i = 0; i < size; i++ )
|
||||
{
|
||||
ResultType diff = a[i] - b[i];
|
||||
ResultType diff = (ResultType)(a[i] - b[i]);
|
||||
result += diff*diff;
|
||||
}
|
||||
return (ResultType)sqrt((double)result);
|
||||
|
||||
@@ -573,7 +573,7 @@ void cvCalibrateCamera_64d( int image_count, int* _point_counts,
|
||||
/* Find 3d position of object given intrinsic camera parameters,
|
||||
3d model of the object and projection of the object into view plane */
|
||||
void cvFindExtrinsicCameraParams( int point_count,
|
||||
CvSize image_size, CvPoint2D32f* _image_points,
|
||||
CvSize, CvPoint2D32f* _image_points,
|
||||
CvPoint3D32f* _object_points, float* focal_length,
|
||||
CvPoint2D32f principal_point, float* _distortion_coeffs,
|
||||
float* _rotation_vector, float* _translation_vector )
|
||||
@@ -598,7 +598,7 @@ void cvFindExtrinsicCameraParams( int point_count,
|
||||
|
||||
/* Variant of the previous function that takes double-precision parameters */
|
||||
void cvFindExtrinsicCameraParams_64d( int point_count,
|
||||
CvSize image_size, CvPoint2D64f* _image_points,
|
||||
CvSize, CvPoint2D64f* _image_points,
|
||||
CvPoint3D64f* _object_points, double* focal_length,
|
||||
CvPoint2D64f principal_point, double* _distortion_coeffs,
|
||||
double* _rotation_vector, double* _translation_vector )
|
||||
|
||||
Reference in New Issue
Block a user