Matlab compiler problem/error

4 ビュー (過去 30 日間)
Emanuele Cordioli
Emanuele Cordioli 2019 年 1 月 25 日
コメント済み: Emanuele Cordioli 2019 年 1 月 28 日
Hi guys.
I have a problem with a function compiled for a .NET application.
With MATLAB R2018b I execute the function with no problems.
But if I compile it I have a problem: at execution time when I call the function, I get this error:
... MWMCR::EvaluateFunction error ...
Undefined function or variable 'vision.internal.Kdtree'.
Error in => calculateICP_angles.m at line 12.
The function:
function angles = calculateICP_angles(model, object)
objectPC = pointCloud(object); %conversion in pointCloud Object
modelPC = pointCloud(model); %conversion in pointCloud Object
%objectPC = pcdenoise(objectPC);
%modelPC = pcdenoise(modelPC);
objectPC = pcdownsample(objectPC, 'random', 0.1);
modelPC = pcdownsample(modelPC, 'random', 0.1);
transformation = pcregistericp(objectPC, modelPC);
rotationMatrix = transformation.T(1:3,1:3);
angles = rotm2eul(rotationMatrix);
angles = rad2deg(angles);
end
My license include
MATLAB
Computer Vision Toolbox
Image Processing Toolbox
MATLAB Compiler
MATLAB Compiler SDK
  3 件のコメント
Walter Roberson
Walter Roberson 2019 年 1 月 28 日
%#function vision.internal.kdtree
to hint that there is a hidden call to that function
Emanuele Cordioli
Emanuele Cordioli 2019 年 1 月 28 日
I added that line but it does not change anything

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeTroubleshooting in MATLAB Compiler SDK についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by