Drop outdated definitions from internal.hpp
This also fixes few clang build errors
This commit is contained in:
@@ -124,7 +124,7 @@ cvCreateHandMask( CvSeq * numbers, IplImage * img_mask, CvRect * roi )
|
||||
__BEGIN__;
|
||||
|
||||
if( img_mask->depth != IPL_DEPTH_8U )
|
||||
CV_ERROR( CV_BadDepth, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadDepth, "Unsupported format" );
|
||||
|
||||
if( img_mask->nChannels != 1 )
|
||||
CV_ERROR( CV_BadNumChannels, "output image have wrong number of channels" );
|
||||
|
@@ -1192,9 +1192,9 @@ cvCalcCovarMatrixEx( int nObjects, void* input, int ioFlags,
|
||||
|
||||
cvGetImageRawData( avg, (uchar **) & avg_data, &avg_step, &avg_size );
|
||||
if( avg->depth != IPL_DEPTH_32F )
|
||||
CV_ERROR( CV_BadDepth, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadDepth, "Unsupported format" );
|
||||
if( avg->nChannels != 1 )
|
||||
CV_ERROR( CV_BadNumChannels, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadNumChannels, "Unsupported format" );
|
||||
|
||||
if( ioFlags == CV_EIGOBJ_NO_CALLBACK )
|
||||
{
|
||||
@@ -1213,11 +1213,11 @@ cvCalcCovarMatrixEx( int nObjects, void* input, int ioFlags,
|
||||
|
||||
cvGetImageRawData( img, &img_data, &img_step, &img_size );
|
||||
if( img->depth != IPL_DEPTH_8U )
|
||||
CV_ERROR( CV_BadDepth, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadDepth, "Unsupported format" );
|
||||
if( img_size != avg_size || img_size != old_size )
|
||||
CV_ERROR( CV_StsBadArg, "Different sizes of objects" );
|
||||
if( img->nChannels != 1 )
|
||||
CV_ERROR( CV_BadNumChannels, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadNumChannels, "Unsupported format" );
|
||||
if( i > 0 && img_step != old_step )
|
||||
CV_ERROR( CV_StsBadArg, "Different steps of objects" );
|
||||
|
||||
@@ -1327,9 +1327,9 @@ cvCalcEigenObjects( int nObjects,
|
||||
|
||||
cvGetImageRawData( avg, (uchar **) & avg_data, &avg_step, &avg_size );
|
||||
if( avg->depth != IPL_DEPTH_32F )
|
||||
CV_ERROR( CV_BadDepth, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadDepth, "Unsupported format" );
|
||||
if( avg->nChannels != 1 )
|
||||
CV_ERROR( CV_BadNumChannels, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadNumChannels, "Unsupported format" );
|
||||
|
||||
if( nEigens > calcLimit->max_iter && calcLimit->type != CV_TERMCRIT_EPS )
|
||||
nEigens = calcLimit->max_iter;
|
||||
@@ -1358,11 +1358,11 @@ cvCalcEigenObjects( int nObjects,
|
||||
|
||||
cvGetImageRawData( img, &obj_data, &obj_step, &obj_size );
|
||||
if( img->depth != IPL_DEPTH_8U )
|
||||
CV_ERROR( CV_BadDepth, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadDepth, "Unsupported format" );
|
||||
if( obj_size != avg_size || obj_size != old_size )
|
||||
CV_ERROR( CV_StsBadArg, "Different sizes of objects" );
|
||||
if( img->nChannels != 1 )
|
||||
CV_ERROR( CV_BadNumChannels, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadNumChannels, "Unsupported format" );
|
||||
if( i > 0 && obj_step != old_step )
|
||||
CV_ERROR( CV_StsBadArg, "Different steps of objects" );
|
||||
|
||||
@@ -1377,11 +1377,11 @@ cvCalcEigenObjects( int nObjects,
|
||||
|
||||
cvGetImageRawData( eig, (uchar **) & eig_data, &eig_step, &eig_size );
|
||||
if( eig->depth != IPL_DEPTH_32F )
|
||||
CV_ERROR( CV_BadDepth, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadDepth, "Unsupported format" );
|
||||
if( eig_size != avg_size || eig_size != oldeig_size )
|
||||
CV_ERROR( CV_StsBadArg, "Different sizes of objects" );
|
||||
if( eig->nChannels != 1 )
|
||||
CV_ERROR( CV_BadNumChannels, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadNumChannels, "Unsupported format" );
|
||||
if( i > 0 && eig_step != oldeig_step )
|
||||
CV_ERROR( CV_StsBadArg, "Different steps of objects" );
|
||||
|
||||
@@ -1415,11 +1415,11 @@ cvCalcEigenObjects( int nObjects,
|
||||
|
||||
cvGetImageRawData( img, &obj_data, &obj_step, &obj_size );
|
||||
if( img->depth != IPL_DEPTH_8U )
|
||||
CV_ERROR( CV_BadDepth, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadDepth, "Unsupported format" );
|
||||
if( obj_size != avg_size || obj_size != old_size )
|
||||
CV_ERROR( CV_StsBadArg, "Different sizes of objects" );
|
||||
if( img->nChannels != 1 )
|
||||
CV_ERROR( CV_BadNumChannels, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadNumChannels, "Unsupported format" );
|
||||
if( i > 0 && obj_step != old_step )
|
||||
CV_ERROR( CV_StsBadArg, "Different steps of objects" );
|
||||
|
||||
@@ -1461,11 +1461,11 @@ cvCalcEigenObjects( int nObjects,
|
||||
|
||||
cvGetImageRawData( eig, (uchar **) & eig_data, &eig_step, &eig_size );
|
||||
if( eig->depth != IPL_DEPTH_32F )
|
||||
CV_ERROR( CV_BadDepth, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadDepth, "Unsupported format" );
|
||||
if( eig_size != avg_size || eig_size != oldeig_size )
|
||||
CV_ERROR( CV_StsBadArg, "Different sizes of objects" );
|
||||
if( eig->nChannels != 1 )
|
||||
CV_ERROR( CV_BadNumChannels, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadNumChannels, "Unsupported format" );
|
||||
if( i > 0 && eig_step != oldeig_step )
|
||||
CV_ERROR( CV_StsBadArg, "Different steps of objects" );
|
||||
|
||||
@@ -1545,21 +1545,21 @@ cvCalcDecompCoeff( IplImage * obj, IplImage * eigObj, IplImage * avg )
|
||||
|
||||
cvGetImageRawData( obj, &obj_data, &obj_step, &obj_size );
|
||||
if( obj->depth != IPL_DEPTH_8U )
|
||||
CV_ERROR( CV_BadDepth, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadDepth, "Unsupported format" );
|
||||
if( obj->nChannels != 1 )
|
||||
CV_ERROR( CV_BadNumChannels, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadNumChannels, "Unsupported format" );
|
||||
|
||||
cvGetImageRawData( eigObj, (uchar **) & eig_data, &eig_step, &eig_size );
|
||||
if( eigObj->depth != IPL_DEPTH_32F )
|
||||
CV_ERROR( CV_BadDepth, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadDepth, "Unsupported format" );
|
||||
if( eigObj->nChannels != 1 )
|
||||
CV_ERROR( CV_BadNumChannels, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadNumChannels, "Unsupported format" );
|
||||
|
||||
cvGetImageRawData( avg, (uchar **) & avg_data, &avg_step, &avg_size );
|
||||
if( avg->depth != IPL_DEPTH_32F )
|
||||
CV_ERROR( CV_BadDepth, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadDepth, "Unsupported format" );
|
||||
if( avg->nChannels != 1 )
|
||||
CV_ERROR( CV_BadNumChannels, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadNumChannels, "Unsupported format" );
|
||||
|
||||
if( obj_size != eig_size || obj_size != avg_size )
|
||||
CV_ERROR( CV_StsBadArg, "different sizes of images" );
|
||||
@@ -1614,15 +1614,15 @@ cvEigenDecomposite( IplImage* obj,
|
||||
|
||||
cvGetImageRawData( avg, (uchar **) & avg_data, &avg_step, &avg_size );
|
||||
if( avg->depth != IPL_DEPTH_32F )
|
||||
CV_ERROR( CV_BadDepth, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadDepth, "Unsupported format" );
|
||||
if( avg->nChannels != 1 )
|
||||
CV_ERROR( CV_BadNumChannels, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadNumChannels, "Unsupported format" );
|
||||
|
||||
cvGetImageRawData( obj, &obj_data, &obj_step, &obj_size );
|
||||
if( obj->depth != IPL_DEPTH_8U )
|
||||
CV_ERROR( CV_BadDepth, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadDepth, "Unsupported format" );
|
||||
if( obj->nChannels != 1 )
|
||||
CV_ERROR( CV_BadNumChannels, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadNumChannels, "Unsupported format" );
|
||||
|
||||
if( obj_size != avg_size )
|
||||
CV_ERROR( CV_StsBadArg, "Different sizes of objects" );
|
||||
@@ -1644,11 +1644,11 @@ cvEigenDecomposite( IplImage* obj,
|
||||
|
||||
cvGetImageRawData( eig, (uchar **) & eig_data, &eig_step, &eig_size );
|
||||
if( eig->depth != IPL_DEPTH_32F )
|
||||
CV_ERROR( CV_BadDepth, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadDepth, "Unsupported format" );
|
||||
if( eig_size != avg_size || eig_size != old_size )
|
||||
CV_ERROR( CV_StsBadArg, "Different sizes of objects" );
|
||||
if( eig->nChannels != 1 )
|
||||
CV_ERROR( CV_BadNumChannels, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadNumChannels, "Unsupported format" );
|
||||
if( i > 0 && eig_step != old_step )
|
||||
CV_ERROR( CV_StsBadArg, "Different steps of objects" );
|
||||
|
||||
@@ -1731,15 +1731,15 @@ cvEigenProjection( void* eigInput,
|
||||
|
||||
cvGetImageRawData( avg, (uchar **) & avg_data, &avg_step, &avg_size );
|
||||
if( avg->depth != IPL_DEPTH_32F )
|
||||
CV_ERROR( CV_BadDepth, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadDepth, "Unsupported format" );
|
||||
if( avg->nChannels != 1 )
|
||||
CV_ERROR( CV_BadNumChannels, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadNumChannels, "Unsupported format" );
|
||||
|
||||
cvGetImageRawData( proj, &proj_data, &proj_step, &proj_size );
|
||||
if( proj->depth != IPL_DEPTH_8U )
|
||||
CV_ERROR( CV_BadDepth, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadDepth, "Unsupported format" );
|
||||
if( proj->nChannels != 1 )
|
||||
CV_ERROR( CV_BadNumChannels, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadNumChannels, "Unsupported format" );
|
||||
|
||||
if( proj_size != avg_size )
|
||||
CV_ERROR( CV_StsBadArg, "Different sizes of projects" );
|
||||
@@ -1761,11 +1761,11 @@ cvEigenProjection( void* eigInput,
|
||||
|
||||
cvGetImageRawData( eig, (uchar **) & eig_data, &eig_step, &eig_size );
|
||||
if( eig->depth != IPL_DEPTH_32F )
|
||||
CV_ERROR( CV_BadDepth, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadDepth, "Unsupported format" );
|
||||
if( eig_size != avg_size || eig_size != old_size )
|
||||
CV_ERROR( CV_StsBadArg, "Different sizes of objects" );
|
||||
if( eig->nChannels != 1 )
|
||||
CV_ERROR( CV_BadNumChannels, cvUnsupportedFormat );
|
||||
CV_ERROR( CV_BadNumChannels, "Unsupported format" );
|
||||
if( i > 0 && eig_step != old_step )
|
||||
CV_ERROR( CV_StsBadArg, "Different steps of objects" );
|
||||
|
||||
|
@@ -1843,7 +1843,7 @@ cvPyrSegmentation( IplImage * src,
|
||||
int thresh2 = cvRound( threshold2 );
|
||||
|
||||
if( src->depth != IPL_DEPTH_8U )
|
||||
CV_Error( CV_BadDepth, cvUnsupportedFormat );
|
||||
CV_Error( CV_BadDepth, "Unsupported format" );
|
||||
|
||||
if( src->depth != dst->depth || src->nChannels != dst->nChannels )
|
||||
CV_Error( CV_StsBadArg, "src and dst have different formats" );
|
||||
@@ -1872,7 +1872,7 @@ cvPyrSegmentation( IplImage * src,
|
||||
comp, storage, level, thresh1, thresh2 ));
|
||||
break;
|
||||
default:
|
||||
CV_Error( CV_BadNumChannels, cvUnsupportedFormat );
|
||||
CV_Error( CV_BadNumChannels, "Unsupported format" );
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -416,7 +416,7 @@ cvSnakeImage( const IplImage* src, CvPoint* points,
|
||||
CV_Error( CV_BadNumChannels, "input image has more than one channel" );
|
||||
|
||||
if( src->depth != IPL_DEPTH_8U )
|
||||
CV_Error( CV_BadDepth, cvUnsupportedFormat );
|
||||
CV_Error( CV_BadDepth, "Unsupported format" );
|
||||
|
||||
cvGetRawData( src, &data, &step, &size );
|
||||
|
||||
|
@@ -927,7 +927,7 @@ IplImage* cvTestSeqQueryFrame(CvTestSeq* pTestSeq)
|
||||
|
||||
for(p=pTS->pElemList; p; p=p->next)
|
||||
{
|
||||
int DirectCopy = FALSE;
|
||||
int DirectCopy = 0;
|
||||
int frame = pTS->CurFrame - p->FrameBegin;
|
||||
//float t = p->FrameNum>1?((float)frame/(p->FrameNum-1)):0;
|
||||
CvTSTrans* pTrans = p->pTrans + frame%p->TransNum;
|
||||
@@ -996,13 +996,13 @@ IplImage* cvTestSeqQueryFrame(CvTestSeq* pTestSeq)
|
||||
|
||||
|
||||
{ /* Check for direct copy: */
|
||||
DirectCopy = TRUE;
|
||||
if( fabs(CV_MAT_ELEM(pT[0],float,0,0)-1) > 0.00001) DirectCopy = FALSE;
|
||||
if( fabs(CV_MAT_ELEM(pT[0],float,1,0)) > 0.00001) DirectCopy = FALSE;
|
||||
if( fabs(CV_MAT_ELEM(pT[0],float,0,1)) > 0.00001) DirectCopy = FALSE;
|
||||
if( fabs(CV_MAT_ELEM(pT[0],float,0,1)) > 0.00001) DirectCopy = FALSE;
|
||||
if( fabs(CV_MAT_ELEM(pT[0],float,0,2)-(pImg->width-1)*0.5) > 0.5) DirectCopy = FALSE;
|
||||
if( fabs(CV_MAT_ELEM(pT[0],float,1,2)-(pImg->height-1)*0.5) > 0.5) DirectCopy = FALSE;
|
||||
DirectCopy = 1;
|
||||
if( fabs(CV_MAT_ELEM(pT[0],float,0,0)-1) > 0.00001) DirectCopy = 0;
|
||||
if( fabs(CV_MAT_ELEM(pT[0],float,1,0)) > 0.00001) DirectCopy = 0;
|
||||
if( fabs(CV_MAT_ELEM(pT[0],float,0,1)) > 0.00001) DirectCopy = 0;
|
||||
if( fabs(CV_MAT_ELEM(pT[0],float,0,1)) > 0.00001) DirectCopy = 0;
|
||||
if( fabs(CV_MAT_ELEM(pT[0],float,0,2)-(pImg->width-1)*0.5) > 0.5) DirectCopy = 0;
|
||||
if( fabs(CV_MAT_ELEM(pT[0],float,1,2)-(pImg->height-1)*0.5) > 0.5) DirectCopy = 0;
|
||||
}
|
||||
|
||||
/* Extract image and mask: */
|
||||
|
@@ -152,8 +152,8 @@ struct CvFaceTracker
|
||||
if ((NULL == imgray) ||
|
||||
(NULL == imgThresh) ||
|
||||
(NULL == mstgContours))
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
return 0;
|
||||
return 1;
|
||||
};
|
||||
int InitNextImage(IplImage* img)
|
||||
{
|
||||
@@ -165,7 +165,7 @@ struct CvFaceTracker
|
||||
CvMat mat = cvMat( 2, 3, CV_32FC1, m );
|
||||
|
||||
if (NULL == imgGray || NULL == imgThresh)
|
||||
return FALSE;
|
||||
return 0;
|
||||
|
||||
/*m[0] = (float)cos(-dbRotateAngle*CV_PI/180.);
|
||||
m[1] = (float)sin(-dbRotateAngle*CV_PI/180.);
|
||||
@@ -181,8 +181,8 @@ struct CvFaceTracker
|
||||
else
|
||||
cvClearMemStorage(mstgContours);
|
||||
if (NULL == mstgContours)
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -209,14 +209,14 @@ public:
|
||||
if (NULL != mstg)
|
||||
m_mstgRects = mstg;
|
||||
if (NULL == m_mstgRects)
|
||||
return FALSE;
|
||||
return 0;
|
||||
if (NULL == m_seqRects)
|
||||
m_seqRects = cvCreateSeq(0, sizeof(CvSeq), sizeof(CvTrackingRect), m_mstgRects);
|
||||
else
|
||||
cvClearSeq(m_seqRects);
|
||||
if (NULL == m_seqRects)
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
return 0;
|
||||
return 1;
|
||||
};
|
||||
void FindRects(IplImage* img, IplImage* thresh, int nLayers, int dMinSize);
|
||||
protected:
|
||||
@@ -433,14 +433,14 @@ cvInitFaceTracker(CvFaceTracker* pFaceTracker, const IplImage* imgGray, CvRect*
|
||||
(nRects < NUM_FACE_ELEMENTS))
|
||||
return NULL;
|
||||
|
||||
//int new_face = FALSE;
|
||||
//int new_face = 0;
|
||||
CvFaceTracker* pFace = pFaceTracker;
|
||||
if (NULL == pFace)
|
||||
{
|
||||
pFace = new CvFaceTracker;
|
||||
if (NULL == pFace)
|
||||
return NULL;
|
||||
//new_face = TRUE;
|
||||
//new_face = 1;
|
||||
}
|
||||
pFace->Init(pRects, (IplImage*)imgGray);
|
||||
return pFace;
|
||||
@@ -464,7 +464,7 @@ cvTrackFace(CvFaceTracker* pFaceTracker, IplImage* imgGray, CvRect* pRects, int
|
||||
assert(NULL != pRects && nRects >= NUM_FACE_ELEMENTS);
|
||||
if ((NULL == pFaceTracker) ||
|
||||
(NULL == imgGray))
|
||||
return FALSE;
|
||||
return 0;
|
||||
pFaceTracker->InitNextImage(imgGray);
|
||||
*ptRotate = pFaceTracker->ptRotate;
|
||||
*dbAngleRotate = pFaceTracker->dbRotateAngle;
|
||||
@@ -505,7 +505,7 @@ START:
|
||||
if (r.y + r.height > pFaceTracker->imgGray->height - 2)
|
||||
r.height = pFaceTracker->imgGray->height - 2 - r.y;
|
||||
if (!big_face[elem].Init(r, pFaceTracker->face[elem], pFaceTracker->mstgContours))
|
||||
return FALSE;
|
||||
return 0;
|
||||
}
|
||||
// find contours
|
||||
for (elem = 0; elem < NUM_FACE_ELEMENTS; elem++)
|
||||
@@ -514,13 +514,13 @@ START:
|
||||
CvTrackingRect new_face[NUM_FACE_ELEMENTS];
|
||||
int new_energy = 0;
|
||||
int found = ChoiceTrackingFace3(pFaceTracker, nElements, big_face, new_face, new_energy);
|
||||
int restart = FALSE;
|
||||
int find2 = FALSE;
|
||||
int restart = 0;
|
||||
int find2 = 0;
|
||||
int noel = -1;
|
||||
if (found)
|
||||
{
|
||||
if (new_energy > 100000 && -1 != pFaceTracker->iTrackingFaceType)
|
||||
find2 = TRUE;
|
||||
find2 = 1;
|
||||
else if (new_energy > 150000)
|
||||
{
|
||||
int elements = 0;
|
||||
@@ -532,17 +532,17 @@ START:
|
||||
noel = el;
|
||||
}
|
||||
if (2 == elements)
|
||||
find2 = TRUE;
|
||||
find2 = 1;
|
||||
else
|
||||
restart = TRUE;
|
||||
restart = 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (-1 != pFaceTracker->iTrackingFaceType)
|
||||
find2 = TRUE;
|
||||
find2 = 1;
|
||||
else
|
||||
restart = TRUE;
|
||||
restart = 1;
|
||||
}
|
||||
RESTART:
|
||||
if (restart)
|
||||
@@ -561,11 +561,11 @@ RESTART:
|
||||
if (found2 && new_energy < 100000)
|
||||
{
|
||||
pFaceTracker->iTrackingFaceType = noel;
|
||||
found = TRUE;
|
||||
found = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
restart = TRUE;
|
||||
restart = 1;
|
||||
goto RESTART;
|
||||
}
|
||||
}
|
||||
@@ -599,7 +599,7 @@ RESTART:
|
||||
{
|
||||
pFaceTracker->dbRotateDelta = 0;
|
||||
pFaceTracker->dbRotateAngle = 0;
|
||||
found = FALSE;
|
||||
found = 0;
|
||||
}
|
||||
if (found)
|
||||
{
|
||||
@@ -663,7 +663,7 @@ int ChoiceTrackingFace3(CvFaceTracker* pTF, const int nElements, const CvFaceEle
|
||||
CvTrackingRect* new_face[NUM_FACE_ELEMENTS] = {NULL};
|
||||
new_energy = 0x7fffffff;
|
||||
int curr_energy = 0x7fffffff;
|
||||
int found = FALSE;
|
||||
int found = 0;
|
||||
int N = 0;
|
||||
CvSeqReader reader_m, reader_l, reader_r;
|
||||
cvStartReadSeq( big_face[MOUTH].m_seqRects, &reader_m );
|
||||
@@ -689,7 +689,7 @@ int ChoiceTrackingFace3(CvFaceTracker* pTF, const int nElements, const CvFaceEle
|
||||
for (int elem = 0; elem < NUM_FACE_ELEMENTS; elem++)
|
||||
new_face[elem] = curr_face[elem];
|
||||
new_energy = curr_energy;
|
||||
found = TRUE;
|
||||
found = 1;
|
||||
}
|
||||
N++;
|
||||
}
|
||||
@@ -722,7 +722,7 @@ int ChoiceTrackingFace2(CvFaceTracker* pTF, const int nElements, const CvFaceEle
|
||||
CvTrackingRect* new_face[NUM_FACE_ELEMENTS] = {NULL};
|
||||
new_energy = 0x7fffffff;
|
||||
int curr_energy = 0x7fffffff;
|
||||
int found = FALSE;
|
||||
int found = 0;
|
||||
int N = 0;
|
||||
CvSeqReader reader0, reader1;
|
||||
cvStartReadSeq( big_face[element[0]].m_seqRects, &reader0 );
|
||||
@@ -739,7 +739,7 @@ int ChoiceTrackingFace2(CvFaceTracker* pTF, const int nElements, const CvFaceEle
|
||||
for (int elem = 0; elem < NUM_FACE_ELEMENTS; elem++)
|
||||
new_face[elem] = curr_face[elem];
|
||||
new_energy = curr_energy;
|
||||
found = TRUE;
|
||||
found = 1;
|
||||
}
|
||||
N++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user