Resizing the images to 100 x 100
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Abdussalam Elhanashi
am 22 Nov. 2020
Kommentiert: Abdussalam Elhanashi
am 25 Nov. 2020
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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 23 Nov. 2020
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!