How to temporarily read the image files ?

1 回表示 (過去 30 日間)
Ahsan Abbas
Ahsan Abbas 2016 年 4 月 15 日
コメント済み: Ahsan Abbas 2016 年 4 月 27 日
Hello Guys... I have 20 images that is stored in variable "imageData", each image has 10Mb size (6000 x 4000) that consume lot of memory, MATLAB always struck whenever i run process on images. I want to pick 2 images at a time from the folder process them and then loose the memory for next images and similar for others. Can some one help me to solve the problem ?
Thanks
  2 件のコメント
Adam
Adam 2016 年 4 月 15 日
What part of it are you having difficulty with? I assume you loaded the 20 images from file in the first place so just load 2 instead of 20, then do the same again. I'm not sure I understand where the problem lies.
If they weren't originally from file save them to a mat file.
doc matfile
does actually allow you to work with large data sets from file as though they were in memory (though a little slower, of course, especially depending which direction you index into the data). Or just a series of individual .mat files for each image.
Ahsan Abbas
Ahsan Abbas 2016 年 4 月 27 日
Ya my problem is solved.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by