LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with opencv function

Hello,
I'm trying to use opencv library in my application, and meet the troubles. In the attached file 3 functions with following prototypes:
 
void cvSetErrStatus(long status);
CvMat* cvCreateMat( int rows, int cols, int type );
void cvFindHomography( const CvMat* src_points, const CvMat* dst_points, CvMat* homography );

As long as LV can't pass structures as out parameter of CLFN (CvMat is a structure), I use pointer to numeric value for structure passing from one function to another. The first two functions work properly, but the last one returns error. Any suggestions?
0 Kudos
Message 1 of 2
(3,738 Views)
Hi Err,
It seems like you are trying to pass the wrong type of parameter to cvFindHomography( const CvMat* src_points, const CvMat* dst_points, CvMat* homography ).  How did you configure the Call Library Function Node that calls cvFindHomography( const CvMat* src_points, const CvMat* dst_points, CvMat* homography )? Maybe you should try using I32 instead of I64 for the pointers. Hope this helps.

Yi Y.
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 2 of 2
(3,715 Views)