필터 지우기
필터 지우기

Error with Matlab Coder and MatchFeatures function

조회 수: 5 (최근 30일)
cedric MAGUETA RUIVO
cedric MAGUETA RUIVO 2016년 10월 26일
hello, I try to generate C code for the function below
% code
function indexPairs = matchFeatures_c(Model_Features,Features,unique,metric,MaxRation,MatchThreshold)%#codegen
indexPairs = matchFeatures(Model_Features,Features,'unique',unique,...
'metric',metric,...
'MaxRatio',MaxRatio,...
'MatchThreshold',MatchThreshold,...
'method','approximate');%'Exhaustive') ;
this function is compatible with Code Generation according to the documentation :" Generates portable C code using a C++ compiler that links to user-provided OpenCV (Version 2.4.9) libraries when not using the Exhaustive method"
With the Coder app i always have this error :
1 findApproximateNearestNeighbors 70 This assignment writes a 'single' value into a 'int32' type. Code generation does not support changing types through assignment. Check preceding assignments or input type specifications for type mismatches.
how can i fix it?
kind regards Cédric

답변 (0개)

카테고리

Help CenterFile Exchange에서 Build Configuration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by