how to load image files from a folder ?

조회 수: 21 (최근 30일)
yogesh harmukh
yogesh harmukh 2020년 2월 19일
답변: Mil Shastri 2020년 2월 19일
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.

답변 (1개)

Mil Shastri
Mil Shastri 2020년 2월 19일
imagedatastore is built for helping this. Check out an example to build this here.
The lines you might need are:
imds = imageDatastore('your/path/*.jpg');
imgs = readall(imds);
%preview any image
imshow(imgs{3})

카테고리

Help CenterFile Exchange에서 Read and Write Image Data from Files에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by