> I am trying to read, process and the write multi-image tiff files > (uint16 intensity images). > I use imread to read each frame into a matrix. Then I do some > processing on the matrices and try to write back out to multi-image > tiff using imwrite. This works with single images but not image > stacks since imwrite expects the additional dimension to be a > colormap. I can fwrite out the matrix but then it isn't read as an > image.
It appears imwrite doesn't support multi-image tiffs. You might have to use an external utility to combine a set of discrete tiffs into a multipager. tiffcp maybe?