HOW TO READ ONLY SOME IMAGE FROM A FOLDER ?

조회 수: 1 (최근 30일)
federica pasquali
federica pasquali 2018년 7월 28일
댓글: Image Analyst 2018년 7월 28일
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
KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 7월 28일
How many Images in the folder?
Image Analyst
Image Analyst 2018년 7월 28일
And what defines the images that "interest you"? Like files that begin with some certain letter or letter pattern?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by