Thread Subject:
load a sequence of images

Subject: load a sequence of images

From: St.Ivanov

Date: 23 Aug, 2012 20:16:07

Message: 1 of 4

Hi,
would you help me with the code to the following problem:
I have a sequence of 1000 image in one directory and I have to execute a certain procedure on each of the images. The result must be saved under different variable for each image so that as a result I must have 1000 .mat files. I tried to make up loops but they didn't work.

Subject: load a sequence of images

From: Maxim Vedenev

Date: 24 Aug, 2012 06:25:35

Message: 2 of 4

Example:
drs='./images_folder'; % in current directory
dr1=dir([drs '/*.jpg']); % get only jpg
f1={dr1.name}; % get only filenames to cell
for c=1:length(f1) % for each image
I=imread([drs '/' f1{car}]);
[do proceeing here]
end

------------------------------------
Maxim Vedenev, Matlab freelancer
vedenev@ngs.ru
http://simulations.narod.ru/

Subject: load a sequence of images

From: ImageAnalyst

Date: 24 Aug, 2012 21:12:35

Message: 3 of 4

Read the FAQ for several code examples:

http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F

Subject: load a sequence of images

From: St.Ivanov

Date: 26 Aug, 2012 14:40:16

Message: 4 of 4

ImageAnalyst <imageanalyst@mailinator.com> wrote in message <8f23695d-1596-45e3-9c80-edafe0d19d4e@googlegroups.com>...
> Read the FAQ for several code examples:
>
> http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F

Thank you both of you for the useful information.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
sequence of images St.Ivanov 23 Aug, 2012 16:19:11
load St.Ivanov 23 Aug, 2012 16:19:11
rssFeed for this Thread

Contact us