Clear Filters
Clear Filters

Initialize optimizer for Coder

1 view (last 30 days)
Flo
Flo on 21 Jun 2017
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?

Answers (0)

Categories

Find more on MATLAB Coder in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!