Log in

View Full Version : High-Performance Multipage TIFF-Input


Johnny_Deep_Down_Below
27th August 2011, 00:57
Hello!

I need a FAST method to read multipage TIFF images, which are stored in the following format:

Resultion: 800x550
Frames: 270
Size: 327 MB
Format: Multipage TIFF

(This is just an example)


I tried:

ImmaRead (using Image Magick)
The new AviSynth 2.60 ("ImageSourceAnim()")


The first one is so incredibly slow, it cannot be used for anything useful at all.
The second one stills needs several seconds for stepping from one frame to the next one. This is also unacceptable.
For larger images (e.g. 3000x2000 pixel) this is even a lot worse!

So is there any multipage TIFF-plugin with reasonable performance?

SSH4
27th August 2011, 11:25
no. Multipage TIFF not fast on most imagereader too.

convert Multipage TIFF to png/tga/something other... with IrfanView or any other free/not free software.

Johnny_Deep_Down_Below
27th August 2011, 15:22
There is NO technical reason why a multipage TIFF file should be any slower than single files.
It's just that the implementations for Avisynth obviously suck.

MATLAB uses LibTIFF with a buffered TIFF file index (the pointers to the individual pages in a TIFF file are stored like a linked list, so you can an enourmous speedup by caching the addresses of all images and not doing a lookup for each image).

In MATLAB R2009a, you can read 65000 images from a TIFF file in about 90 seconds, for an average of about 1.5 milliseconds per image.

Sure, I could just write an AVI file directly from MATLAB, but I thought AviSynth was fast and flexible.
Well, that turned out to be wrong...

Wilbert
27th August 2011, 16:59
There is NO technical reason why a multipage TIFF file should be any slower than single files.
It's just that the implementations for Avisynth obviously suck.
You are free to try to implement a faster instead of complaining.