728x90
반응형
file = dir(fullfile('\.\*.jpg'));
for i = 1 : length(file)
img = imread(strcat(file(i).folder,'\',file(i).name));
img = imresize(img,[800 800]); % 800 800 대신 변경하고자 하는 값 입력
imshow(img)
imwrite(img,strcat(file(i).folder,'\',file(i).name));
end
728x90
반응형
'코드' 카테고리의 다른 글
[face recognition] Adaface : Quality Adaptive Margin for Face Recognition (0) | 2024.03.11 |
---|---|
[matlab] Andrea Fusiello, Rectification of Stereo Images 스테레오 이미지 정류 알고리즘 (0) | 2023.04.04 |
[python] 이미지 증강 코드 data augmentaion (0) | 2023.03.20 |
[python] Fashion mnist mlp (0) | 2023.02.24 |
[python] 말과 사람 구분하기 horse or human (0) | 2023.02.24 |