how to load image files from a folder ?
조회 수: 94 (최근 30일)
이전 댓글 표시
looking for a code to select a folder from windows ,then load all the image files in it . later would like to extract features and store it in these features in vector.
댓글 수: 0
답변 (1개)
Mil Shastri
2020년 2월 19일
The lines you might need are:
imds = imageDatastore('your/path/*.jpg');
imgs = readall(imds);
%preview any image
imshow(imgs{3})
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!