Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
Andrew
Posts:
2
Registered:
6/14/12
|
|
Re: writing multi-image tiff
Posted:
Jun 15, 2012 5:13 PM
|
|
That solution is very very slow for long stacks.
This new fex function works beautifully though.
http://www.mathworks.com/matlabcentral/fileexchange/35684
Peter Boettcher <boettcher@ll.mit.edu> wrote in message <muy7iq5t7kc.fsf@G99-Boettcher.llan.ll.mit.edu>... > Steve Eddins <Steve.Eddins@mathworks.com> writes: > > > Peter Boettcher wrote: > >> "Mark B." <medwardb@hotmail.com> writes: > >> > >>> 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? > >> > >> -Peter > > > > imwrite(image1, 'foobar.tif'); > > imwrite(image2, 'foobar.tif', 'WriteMode', 'append'); > > imwrite(image3, 'foobar.tif', 'WriteMode', 'append'); > > Oh. Oops. Sorry, Mark. > > -Peter
|
|
|
|