I am working with relatively large data sets of single (4 MP, 8-bit) tiff images. Each set contains somewhere in the vicinity of 5000 images (i.e. 20 GB per set). Working with such sets can be very time consuming. For example, simply calculating the time average of a 4000-image set takes over 40 minutes (2441 seconds, to be exact) according to the profiler. Of this, about 85% of the time comes from imread. Is there a way, either by optimizing the use of imread or by using a low-level function, that I can reduce the read out time of the files? I am using imread as follows:
img = imread(filename, 'tif');
Thanks for any help.