how to load image files from a folder ?

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.

Antworten (1)

Mil Shastri
Mil Shastri am 19 Feb. 2020

3 Stimmen

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})

Produkte

Version

R2019b

Gefragt:

am 19 Feb. 2020

Beantwortet:

am 19 Feb. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by