我在视图控制器文件中调用函数
cvCalcEigenObjects(nTrainFaces,
(void *)faceImgArr,
(void *)eigenVectArr,
CV_EIGOBJ_NO_CALLBACK,
0,
0,
&calcLimit,
pAvgTrainImg,
eigenValMat->data.fl);
,其中
IplImage * * eigenVectArr[nFaces];
IplImage * * faceImgArr[nFaces]; and nFaces=30
我收到错误说:
函数cvGetRawData中无法识别或不支持的数组类型。
功能定义是
/* Calculates eigen values and vectors of covariation matrix of a set of
arrays */
CVAPI(void) cvCalcEigenObjects( int nObjects, void* input, void* output,
int ioFlags, int ioBufSize, void* userData,
CvTermCriteria* calcLimit, IplImage* avg,
float* eigVals );