How to make Tiff fast and memory efficient
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dimitri Yatsenko
el 24 de Sept. de 2012
Respondida: Jerome Lecoq
el 3 de Mzo. de 2014
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?
0 comentarios
Respuesta aceptada
Jerome Lecoq
el 2 de Mzo. de 2014
I see the same problem in 2013b. I would think this is a bug or an undocumented buffer. At the very least we should be able to disable that buffer.
0 comentarios
Más respuestas (1)
Jerome Lecoq
el 3 de Mzo. de 2014
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.
0 comentarios
Ver también
Categorías
Más información sobre Image Data en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!