MATLAB Coder Does Not Support Input of Unbounded Size
1 回表示 (過去 30 日間)
古いコメントを表示
So I have been trying to turn the following function into an MEX file.
function [frame] = displayTrackingResults1(frame,isfull,bboxes,labels,string1,string2,string3,string4,string5,string6,string7,string8,string9,string10,string11)
if isfull ==1
frame = insertObjectAnnotation(frame, 'rectangle',bboxes, labels);
end
frame = insertText(frame, [1000 700], string1);
frame = insertText(frame, [1000 740], string2);
frame = insertText(frame, [1000 780], string3);
frame = insertText(frame, [1000 820], string4);
frame = insertText(frame, [1000 860], string5);
frame = insertText(frame, [1000 900], string6);
frame = insertText(frame, [1000 940], string7);
frame = insertText(frame, [79 838], string8);
frame = insertText(frame, [77 860], string9);
frame = insertText(frame, [80 882], string10);
frame = insertText(frame, [80 904], string11);
end
So my problem has been that I keep getting this error for insertObjectAnnotation that says "This System object method does not support output of unbounded size." In the "Define Input Types" section of the MATLAB Coder app I defined frame as having the following dimensions [(up to 10000),(up to 10000,3),3], bboxes as having the dimensions [(up to 10000), 4], and labels as having the following dimensions [(up to 10000),1].
It seems to me like none of these inputs are unbounded. Does anyone know why I'm getting this error and what I can do to get rid of it? I would greatly appreciate anyone's help with this.
1 件のコメント
Alessio Gagliardi
2018 年 10 月 22 日
Hi Jacob Mevorach, I hit the same issue, could you please explain how do you solved the problem? Thanks in advance.
採用された回答
Kushagr Gupta
2017 年 6 月 9 日
I feel that the dimension bounds being specified are not getting reflected for code generation purposes somehow. The following link mentions a way to specify the bounds within the code itself using 'assert' or 'coder.varsize' statements and it could resolve the issue:
If that also does not help, feel free to create a Techincal Support request with a reproduction model and steps so that someone can assist you further.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!