Using imresize function for matlab coder
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mostafa El-Hashash
le 27 Déc 2015
Commenté : Mostafa El-Hashash
le 31 Déc 2015
Hello, I am trying to use MATLAB coder to generate C code for imresize function as follows:
% code
function P = test_resize(I)
%#codegen
coder.varsize('I',[]);
coder.varsize('P',[]);
P = imresize(I,'scale',0.5,'Method','bilinear');
end
However, the code generation readiness fails as shown in the following image:

any suggestions?
0 commentaires
Réponse acceptée
Ryan Livingston
le 31 Déc 2015
Modifié(e) : Ryan Livingston
le 31 Déc 2015
Code generation support was added for imresize in MATLAB R2015b:
What release of MATLAB are you using (the ver command will show you)?
You can search for imresize here:
to see any codegen specific considerations.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Automated Fixed-Point Conversion in MATLAB 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!