What is the efficient way to read the images from the subfolders?
조회 수: 1 (최근 30일)
이전 댓글 표시
I saved the file location on the variable (1*815 cell array). I used the following code to read the image. But however I am getting out of Memory error in Windows 7, Matlab 2015 trail version
for i=1:815
ni(i)=imread(char(fullFileName(1,i)));
end
Any help is appreciated
Thanks in Advance
답변 (1개)
Walter Roberson
2015년 9월 12일
for K = 1:length(fullFileName)
ni{K} = imread(fullFileName{K});
end
If your images are large enough, you will run out of memory trying to store all of them in memory simultaneously. If so then be sure to use 64 bit MATLAB and increase your physical memory or your swap space (but swap space is slow!!!). Or reconsider your code to figure out whether you really need all of the images to be in memory at the same time.
댓글 수: 8
Stephen23
2015년 9월 13일
The OP has continued this topic in a new question:
Image Analyst
2015년 9월 13일
Please learn how to format code here: http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!