keroprealtor.blogg.se

Matlab 2018b slow
Matlab 2018b slow












matlab 2018b slow

I attempted to convert the code to work with uint16 data by changing line 73 to: ('BitsPerSample', 16) īut after writing with outFileWriter = bigTiffWriter('test.tif', inFileInfo(1).Height, inFileInfo(1).Width, tileSize(1), tileSize(2)) įor b.data,'Destination',outFileWriter) Which results in the following output: Frame 10000 written in 66 seconds, 8.196721e+00 percent complete, time left=743 secondsįrame 20000 written in 225 seconds, 1.639344e+01 percent complete, time left=1145 secondsįrame 30000 written in 481 seconds, 2.459016e+01 percent complete, time left=1474 secondsįrame 40000 written in 915 seconds, 3.278689e+01 percent complete, time left=1877 secondsįrame 50000 written in 1512 seconds, 4.098361e+01 percent complete, time left=2177 secondsĪttempting to make use of the BigTIFF library does not work Tagstruct.PlanarConfiguration = ĭivider = 10^(floor(log10(numframes))-1) Notice the exponential increase in time as more frames are written. Seconds Frame 40000 written in 1035 seconds, 3.278689e+01 percentĬomplete, time left=2121 seconds Frame 50000 written in 1682 seconds,Ĥ.098361e+01 percent complete, time left=2421 seconds Time left=1163 seconds Frame 20000 written in 296 seconds,ġ.639344e+01 percent complete, time left=1509 seconds Frame 30000 written in 590 seconds, 2.459016e+01 percent complete, time left=1809 Imwrite(IMG(:,:,i),'test.tif','WriteMode','append') įprintf('Frame %d written in %.0f seconds, %2d percent complete, time left=%.0f seconds \n'. Use imwrite to write IMG to test.tif (recommended by MATLAB documentation) tic On the same machine, MATLAB would likely take days to do so using any method I have tried. ImageJ or a short Python script can do this in less than one minute on a fast machine.

matlab 2018b slow

I am trying to write a single multipage tiff file which is 128 pixels x 128 pixels x 122000 frames of 16-bit unsigned integers.














Matlab 2018b slow