필터 지우기
필터 지우기

MATLAB Coder Does Not Support Input of Unbounded Size

조회 수: 2 (최근 30일)
Jacob Mevorach
Jacob Mevorach 2017년 6월 6일
댓글: Alessio Gagliardi 2018년 10월 22일
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
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
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개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by