Ask Your Question
0

Bad argument (Array should be CvMat or IplImage) in unknown function

asked 2013-04-03 19:58:43 -0600

hash gravatar image

updated 2013-04-03 20:07:41 -0600

when i run the code it gives this error :OpenCV Error: Bad argument (Array should be CvMat or IplImage) in unknown function, file ......\src\opencv\modules\core\src\array.cpp, line 1238 Exception in thread "main" java.lang.RuntimeException: ......\src\opencv\modules\core\src\array.cpp:1238: error: (-5) Array should be CvMat or IplImage

at com.googlecode.javacv.cpp.opencv_core.cvGetSize(Native Method)

what is the sollution for this error?and i am trying to use javacv

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-04-04 02:21:01 -0600

First of all the following 'when i run the code' does not help us at all. Please post your code where it actually goes wrong.

Basically your error says that you are feeding a wrong parameter to a function. The function requires a Mat or an IplImage but does not receive it. Post your code if you really want to know what goes wrong.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-04-03 19:58:43 -0600

Seen: 2,399 times

Last updated: Apr 04 '13