HOW TO READ ONLY SOME IMAGE FROM A FOLDER ?

1 Ansicht (letzte 30 Tage)
federica pasquali
federica pasquali am 28 Jul. 2018
Kommentiert: Image Analyst am 28 Jul. 2018
Hi everyone! I'm trying to read the images that are saved in a folder and I was wondering if there was a way to read only the images I want.
I tried this:
cd(folder);
filePattern = fullfile(folder, '*.jpg');
jpegFiles = dir(filePattern);
ImmaginiGenerate= {jpegFiles.name} ;
warning off
montage( ImmaginiGenerate )
but it reads all the images in the folder, and not just those that interest me. Then I wanted to know if I could match image and corresponding name.
Thanks
Federica
  2 Kommentare
KALYAN ACHARJYA
KALYAN ACHARJYA am 28 Jul. 2018
How many Images in the folder?
Image Analyst
Image Analyst am 28 Jul. 2018
And what defines the images that "interest you"? Like files that begin with some certain letter or letter pattern?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by