MATLAB Coder Does Not Support Input of Unbounded Size
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Jacob Mevorach
el 6 de Jun. de 2017
Comentada: Alessio Gagliardi
el 22 de Oct. de 2018
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 comentario
Alessio Gagliardi
el 22 de Oct. de 2018
Hi Jacob Mevorach, I hit the same issue, could you please explain how do you solved the problem? Thanks in advance.
Respuesta aceptada
Kushagr Gupta
el 9 de Jun. de 2017
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!