imread slower with huge tif files

2 visualizzazioni (ultimi 30 giorni)
MementoMori
MementoMori il 5 Ott 2022
Risposto: Walter Roberson il 5 Ott 2022
Images1=zeros(128,128,20000);
Images2=zeros(200,200,20000);
len=20000;
for k=1:len
k
Images1(:,:,k) = double(imread(path1,k));
Images2(:,:,k) = double(imread(path2,k));
end
The for loop becomes slower when k is high, why? and how can I prevent it?
The files that I am reading are .tif files

Risposte (1)

Walter Roberson
Walter Roberson il 5 Ott 2022
Use the Tiff() class to work more directly with the tiff structure.

Categorie

Scopri di più su File Operations in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by