shaileshmulange / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

cvExtractSURF #274

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/javacv/issues/attachmentText?id=45&aid=-746442861304191
4276&name=SurfExample.java&token=dAHYzp_sG2zuirA2pSAJsz14QFQ%3A1359127024792

I tried to run your example code (SurfExample.java) but when I try to execute 
it throws compile errors regarding the symbol cannot find errors

for example
                CvSeq imageKeypoints = new CvSeq();
                CvSeq imageDescriptors = new CvSeq();
                CvSURFParams params = cvSURFParams(500, 1);

                cvExtractSURF(image, null, imageKeypoints.pointerByReference(),imageDescriptors.pointerByReference(), storage,params.byValue(), 0);

Is some library missing, re-named or the code is old and obsolete?
Thanks

Original issue reported on code.google.com by lucas.ba...@gmail.com on 25 Jan 2013 at 3:17

GoogleCodeExporter commented 9 years ago
Yes, we need to 

import static com.googlecode.javacv.cpp.opencv_core.*;
import static com.googlecode.javacv.cpp.opencv_highgui.*;
import static com.googlecode.javacv.cpp.opencv_imgproc.*;
import static com.googlecode.javacv.cpp.opencv_legacy.*;

As shown in ObjectFinder.java:
http://code.google.com/p/javacv/source/browse/src/main/java/com/googlecode/javac
v/ObjectFinder.java

Please ask your questions on the mailing list next time if possible, thank you.

Original comment by samuel.a...@gmail.com on 26 Jan 2013 at 9:32