Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: writing multi-image tiff
Replies: 4   Last Post: Jun 15, 2012 5:13 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Andrew

Posts: 2
Registered: 6/14/12
Re: writing multi-image tiff
Posted: Jun 15, 2012 5:13 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2013. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.