请教openCV高手怎样使用 void cvCalcOpticalFlowPyrLK
(IplImage* imgA, IplImage* imgB, IplImage* pyrA,
IplImage* pyrB, CvPoint2D32f* featuresA, CvPoint2D32f* featuresB, int
count, CvSize winSize, int level, char* status, float* error,
CvTermCriteria criteria, int flags );
这个method?就是apply Locus-Kanade到image pryamid上的那个。我是按照它的这个API来的,可是关于status这个argument,它的介绍是:
status ------ Array. Every element of the array is set to 1 if the flow for the
corresponding feature has been found, 0 otherwise
但是当我运行完这个method后试着打印出status里的值时,结果却全是null,既不是1也不是0。请教是不是这个method根本没有真正运行起来呢?那位大侠用过这个method,执教一下应该怎么用?有什么特别要注意的地方么?不胜感谢。
did you initialize and store all the features points in Array featuresA?
Anyway, try to check the opencv source code, if you still can't figure out what is wrong.
PS. Are you doing cs4243 project?............:p.......
PS. Are you doing cs4243 project?............:p.......