필터 지우기
필터 지우기

Read Back Mapped File Wasting too Much Memory

조회 수: 1 (최근 30일)
Ka Mirul
Ka Mirul 2017년 3월 1일
댓글: Jan 2017년 3월 1일
Dear Matlab users, I have a problem when read back mapped file. I use memmapfile to directly map a portion of TIFF file into my m-file. And it works for 1200 files and store it as character. This is the example :
nfile = 12000
rawdata = {1.nfile}
for i = 1 : nfile
rawdata{i} = memmapfile ('i-th.tiff') ; % just for example
end
However when i call back and try to use the data inside rawdata, the process taking too much used memory during read out mapped file:
for i = 1 : nfile
read_out = rawdata{i}.data ;
imwrite(read_out) ;
end
I have search for related problem and find nothing. Is anyone in this forum have same problem and have the solution? Thank you for your help.
Best Regards
Mirul
  댓글 수: 1
Jan
Jan 2017년 3월 1일
How much is "too much"? How do you determine the amount of used memory? What do you expect when you map 1200 files to memory? How large are the TIFFs?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Agriculture에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by