fixed a few problems detected by Xcode 4.2.1

This commit is contained in:
Vadim Pisarevsky
2012-02-15 19:48:04 +00:00
parent ada6ab3778
commit 716a5d04ab
15 changed files with 34 additions and 121 deletions

View File

@@ -1590,86 +1590,6 @@ icvGaussMxN( double *A, double *B, int M, int N, double **solutions )
} /* icvGaussMxN */
/*=====================================================================================*/
/*
static CvStatus
icvGetCoof( double *f1, double *f2, double *a2, double *a1, double *a0 )
{
double G[9], a3;
int i;
if( !f1 || !f2 || !a0 || !a1 || !a2 )
return CV_BADFACTOR_ERR;
for( i = 0; i < 9; i++ )
{
G[i] = f1[i] - f2[i];
}
a3 = icvDet( G );
if( REAL_ZERO( a3 ))
return CV_BADFACTOR_ERR;
*a2 = 0;
*a1 = 0;
*a0 = icvDet( f2 );
for( i = 0; i < 9; i++ )
{
*a2 += f2[i] * icvMinor( G, (int) (i % 3), (int) (i / 3) );
*a1 += G[i] * icvMinor( f2, (int) (i % 3), (int) (i / 3) );
}
*a0 /= a3;
*a1 /= a3;
*a2 /= a3;
return CV_NO_ERR;
}*/ /* icvGetCoof */
/*======================================================================================*/
/*F///////////////////////////////////////////////////////////////////////////////////////
// Name: icvLMedS7
// Purpose:
//
//
// Context:
// Parameters:
//
//
//
//
//
//
//
// Returns:
// CV_NO_ERR if all Ok or error code
// Notes:
//F*/
CvStatus
icvLMedS7( int *points1, int *points2, CvMatrix3 * matrix )
{ /* Incorrect realization */
CvStatus error = CV_NO_ERR;
/* int amount; */
matrix = matrix;
points1 = points1;
points2 = points2;
/* error = cs_Point7( points1, points2, matrix ); */
/* error = icvPoint7 ( points1, points2, matrix,&amount ); */
return error;
} /* icvLMedS7 */
/*======================================================================================*/
/*F///////////////////////////////////////////////////////////////////////////////////////