Click here to Skip to main content
15,885,537 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi, i'm rezki from Indonesia, i was a student at a university in Indonesia..
i use emgu cv to make a SURF program to image retrieval, and i have a list code like this :

Index fln = new Index(supermatrix, 4);

but then, it gives me an error like this :

Argument 2 : cannot convert from 'int' to 'Emgu.CV,Flann.IIndexparams

can you help me please..

i'm so stressfull to solving this error :'(

thank you so much.. and i'm sorry to take your time :D

What I have tried:

i have tried to use :
system.int32 x = 4;
and i take it to this code :

Index fln = new Index(supermatrix, x);

and then it says that cannot convert int to emgu.cv.flann.iindexparams
Posted
Updated 3-Jan-18 10:17am

1 solution

You're not showing the code for this Index class. It's constructor appears to take, as it's second parameter, some object that implements the IIndexParams interface and you're trying to pass in an integer. That won't work.

I can't tell you how to fix this because you haven't supplied enough information on what you're doing and what you're trying to do with this code.
 
Share this answer
 
Comments
Member 13605443 18-Jan-18 9:34am    
thank you so much sir for response my question :D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900