DSPRelated.com
Forums

load huge number of images into workspace

Started by Unknown April 17, 2009
Dear all:
I want to use [filename pathname]=uigetfiles('.jpg','get a file') to load many images to my workspace in matlab, but I got around 30,000 images, it exceed the bound, the results returned were filename {0}, pathname {0}, so what other methods can be used to load huge number of the images please? Thanks in advance!!
Shu ting
I am wondering if loading so many files is going to eat up your RAM !
As I know, matlab tries to store a given vector in contiguous memory on the
RAM.

If file size and memory is not a problem then I can't think of a reason why
it shouldn't matlab work.
Maybe try freeing unused vectors.

Good luck.

-T

2009/4/16 ã

>
> Dear all:
> I want to use [filename pathname]=uigetfiles('.jpg','get a file') to load
> many images to my workspace in matlab, but I got around 30,000 images, it
> exceed the bound, the results returned were filename {0}, pathname {0}, so
> what other methods can be used to load huge number of the images please?
> Thanks in advance!!
>
> Shu ting
>
>
Hi Shu,

You can try to switch on the MultiSelect Mode as follows:
[filename pathname]=uigetfile('.jpg','get a file','MultiSelect','on')

then you can select the files you need and the filename will be a cell array
containing all the files' names.

I wish this helps.

Regards,
Ahmad El-Saeed

2009/4/16 ã

>
> Dear all:
> I want to use [filename pathname]=uigetfiles('.jpg','get a file') to load
> many images to my workspace in matlab, but I got around 30,000 images, it
> exceed the bound, the results returned were filename {0}, pathname {0}, so
> what other methods can be used to load huge number of the images please?
> Thanks in advance!!
>
> Shu ting
>
>
Are u processing those images sequentially? If yes, u might want to get the images iteratively and clear memory after each process..

S

To: m...
From: j...@hotmail.com
Date: Thu, 16 Apr 2009 21:40:30 +0000
Subject: [matlab] load huge number of images into workspace

Dear all:
I want to use [filename pathname]=uigetfiles('.jpg','get a file') to load many images to my workspace in matlab, but I got around 30,000 images, it exceed the bound, the results returned were filename {0}, pathname {0}, so what other methods can be used to load huge number of the images please? Thanks in advance!!

Shu ting