C code generation for extractFeatures() and matchFeatures()

조회 수: 2 (최근 30일)
Pankaja Tanjore
Pankaja Tanjore 2015년 4월 29일
답변: cedric MAGUETA RUIVO 2016년 10월 28일
Hello,
I am generating C code from .m file using MATLAB coder. I am generating c code for matchFeatures() and extractFeatures().
I am calling detectSURFFeatures() function to get the cornerPoints.Then extract the features from these cornerPoints and match those features.
When i do this I am getting an error saying that
detectSURFFeatures() is not supported for code generation.
I would like to know whether detectSURFFeatures() is supported in MATLAB coder. I need to use one of the feature detection method to obtain the features.
I am sending here the screen shot for the error details.
Looking forward to hear from you.
Thanks Pankaja

답변 (1개)

cedric MAGUETA RUIVO
cedric MAGUETA RUIVO 2016년 10월 28일
Hello,
when you look at the documentation you can find this : detectSURFFeatures Computer Vision System Toolbox Supports MATLAB Function block: No Generates portable C code using a C++ compiler that links to OpenCV (Version 2.4.9) libraries. Portable C Code Generation for Functions That Use OpenCV Library
same thing for matchFeatures function (with the 'approximate' option, it works find otherwise). I don't know why the C code with OpenCV is not generated (maybe it's an option, I'm a beginner with matlab Coder)
take a look at this example, it use the extrinsic option to call the matlab runtime maybe it can usefull for your application.
edit('visionRecovertformCodeGenerationExample')

카테고리

Help CenterFile Exchange에서 Code Generation, GPU, and Third-Party Support에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by