Set stricter warning rules for gcc
This commit is contained in:
@@ -50,6 +50,7 @@
|
||||
typedef void (*pointer_LMJac)( const CvMat* src, CvMat* dst );
|
||||
typedef void (*pointer_LMFunc)( const CvMat* src, CvMat* dst );
|
||||
|
||||
#if 0
|
||||
/* Optimization using Levenberg-Marquardt */
|
||||
void cvLevenbergMarquardtOptimization(pointer_LMJac JacobianFunction,
|
||||
pointer_LMFunc function,
|
||||
@@ -75,7 +76,7 @@ void cvLevenbergMarquardtOptimization(pointer_LMJac JacobianFunction,
|
||||
CvMat *matrJtJN = 0;
|
||||
CvMat *matrJt = 0;
|
||||
CvMat *vectB = 0;
|
||||
|
||||
|
||||
CV_FUNCNAME( "cvLevenbegrMarquardtOptimization" );
|
||||
__BEGIN__;
|
||||
|
||||
@@ -104,7 +105,7 @@ void cvLevenbergMarquardtOptimization(pointer_LMJac JacobianFunction,
|
||||
{
|
||||
CV_ERROR( CV_StsUnmatchedSizes, "Number of colomn of vector X0 must be 1" );
|
||||
}
|
||||
|
||||
|
||||
if( observRes->cols != 1 )
|
||||
{
|
||||
CV_ERROR( CV_StsUnmatchedSizes, "Number of colomn of vector observed rusult must be 1" );
|
||||
@@ -157,8 +158,8 @@ void cvLevenbergMarquardtOptimization(pointer_LMJac JacobianFunction,
|
||||
/* Print result of function to file */
|
||||
|
||||
/* Compute error */
|
||||
cvSub(observRes,resFunc,error);
|
||||
|
||||
cvSub(observRes,resFunc,error);
|
||||
|
||||
//valError = error_function(observRes,resFunc);
|
||||
/* Need to use new version of computing error (norm) */
|
||||
valError = cvNorm(observRes,resFunc);
|
||||
@@ -169,7 +170,7 @@ void cvLevenbergMarquardtOptimization(pointer_LMJac JacobianFunction,
|
||||
/* Define optimal delta for J'*J*delta=J'*error */
|
||||
/* compute J'J */
|
||||
cvMulTransposed(Jac,matrJtJ,1);
|
||||
|
||||
|
||||
cvCopy(matrJtJ,matrJtJN);
|
||||
|
||||
/* compute J'*error */
|
||||
@@ -244,6 +245,7 @@ void cvLevenbergMarquardtOptimization(pointer_LMJac JacobianFunction,
|
||||
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
#if 0
|
||||
|
Reference in New Issue
Block a user