Resizing the images to 100 x 100
4 次查看(过去 30 天)
显示 更早的评论
Hi,
I want to resize the images for TestData to be 100 x 100
figure();
for i = 1:20
subplot(4,5,i);
imshow(TestData.Files{i});
end
0 个评论
采纳的回答
Walter Roberson
2020-11-23
TestData.Files(1:20) = cellfun(@(I) imresize(I,[100,100]), TestData.Files(1:20), 'uniform', 0);
The code would have been shorter if you were doing all of the images instead of only 20.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!