imread slower with huge tif files
    조회 수: 4 (최근 30일)
  
       이전 댓글 표시
    
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 
댓글 수: 0
답변 (1개)
  Walter Roberson
      
      
 2022년 10월 5일
        Use the Tiff() class to work more directly with the tiff structure.
댓글 수: 0
참고 항목
카테고리
				Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

