Resizing the images to 100 x 100
조회 수: 3 (최근 30일)
이전 댓글 표시
Abdussalam Elhanashi
2020년 11월 22일
댓글: Abdussalam Elhanashi
2020년 11월 25일
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개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!