필터 지우기
필터 지우기

Initialize optimizer for Coder

조회 수: 1 (최근 30일)
Flo
Flo 2017년 6월 21일
Hi, I want to use (the auto generated) code of the Registration Estimator app within Matlab and want to use it in C++.
My approach is to use Coder for this. But I have an issue during the "Check for issues" step within the wizard. I getting the (and a couple of others):
Attempt to extract field 'GradientMagnitudeTolerance' from 'mxArray'.
Error on the second line of this:
[optimizer, metric] = imregconfig('monomodal');
optimizer.GradientMagnitudeTolerance = 1.00000e-04;
What I understand so far is, that I have to use:
coder.extrinsic('imregconfig');
coder.extrinsic('optimizer');
In order to have it working. But the error still exists.
Any suggestions, how to avoid this error? / How to get rid of it?

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by