How to make Tiff fast and memory efficient
Ältere Kommentare anzeigen
In the following code using R2012b, the Tiff object keeps allocating more internal memory with every read.
t = Tiff('file.tiff')
for i=1:n
t.nextDirectory
imagesc(t.read)
end
t.close
Closing the object frees the memory at the end. But is there a way to clear the memory for frames which have already been displayed without closing the object?
Akzeptierte Antwort
Weitere Antworten (1)
Jerome Lecoq
am 3 Mär. 2014
0 Stimmen
It turns out that if you open the tiff in 'r+' mode. There is no buffering/memory leak. I am going to file a bug report on this.
Kategorien
Mehr zu Adding custom doc finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!