Error -215 trainDescCollection[iIdx] Python [closed]

asked 2013-12-06 13:16:15 -0600

Dear All,

I'm matching two images and in the 80% of the cases works but in some cases it crash and show up this message:

... matches = matcher.match(d1, d2) error: ......\opencv-2.4.6\modules\features2d\src\matchers.cpp:365: error: (-215) trainDescCollection[iIdx].rows < IMGIDX_ONE

where d1 and d2 are the descriptors of the two images. I searh in Google but didn't found an answer. Maybe its a stupid error but I'm a noob in this field.

Furthermore I read in this website the following declaration :'it works perfectly just with SIFT and SURF descriptors(which are non free)'. Do you know if SIFT and SURF are protect by copyright?

Thanks all!

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-09-26 13:56:53.290231

Comments

no idea if it helps, but looking here it seems, knnMatching can't handle more than (2**18) descriptors.

and yes, SIFT and SURF are patented, even

berak gravatar imageberak ( 2013-12-06 13:28:06 -0600 )edit

I got a tip of the problem (I think). I take the two images where I get the problem and I run the same code in an another Computer. Well, in the other one I didn't get the error. In the one that crash I have these packages: gdal 1.10.1 numpy 1.7.1 opencv-python 2.4.6 scipy 0.12.0

In the one that Works I have: ... gdal 1.9.2 numpy 1.6.2 opencv-python 2.4.3 scipy 0.11.0 ... scikit-image 0.7.2 scikit-learn 0.13.1 scipy 0.11.0 scipy-stack 12.11.29 simplecv 1.3 ...

And other more. Much more :D. Seems that I miss something but I don't know why it crash with the updated versions. Now I'm installing scipy-stack and scipy and scikit-image...Maybe the error is a missing of packages

Solimyr gravatar imageSolimyr ( 2013-12-07 03:41:18 -0600 )edit