Using imresize function for matlab coder
2 ビュー (過去 30 日間)
古いコメントを表示
Mostafa El-Hashash
2015 年 12 月 27 日
コメント済み: Mostafa El-Hashash
2015 年 12 月 31 日
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/152888/image.png)
any suggestions?
0 件のコメント
採用された回答
Ryan Livingston
2015 年 12 月 31 日
編集済み: Ryan Livingston
2015 年 12 月 31 日
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.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!