MATLAB Coder Does Not Support Input of Unbounded Size
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jacob Mevorach
le 6 Juin 2017
Commenté : Alessio Gagliardi
le 22 Oct 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 commentaire
Alessio Gagliardi
le 22 Oct 2018
Hi Jacob Mevorach, I hit the same issue, could you please explain how do you solved the problem? Thanks in advance.
Réponse acceptée
Kushagr Gupta
le 9 Juin 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Labels and Annotations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!