Using imresize function for matlab coder
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
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!