<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello,<div><br></div><div>I have recently refactored ITK's TIFFImageIO mostly for improving reading, but it supports writing 3D images as multi-paged tiffs. You can utilized ITK ImageIO by using ITK's VTK bridge module [1]. Alternatively, you can look at ITK's implementation as see about porting it to VTK[2]. I believe the writing method still has an evident heritage from VTK.</div><div><br></div><div>I am not a big fan for 3D tiffs because there is no standard way to store z-spacing and image origin.</div><div><br></div><div>Brad</div><div><br></div><div>[1] <a href="http://www.itk.org/Doxygen/html/group__ITKVTK.html">http://www.itk.org/Doxygen/html/group__ITKVTK.html</a></div><div>[2] <a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/IO/TIFF/src/itkTIFFImageIO.cxx#L504-L764">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/IO/TIFF/src/itkTIFFImageIO.cxx#L504-L764</a></div><div><br><div><div>On Dec 17, 2014, at 4:42 PM, Maarten Beek via vtkusers <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div><div style="background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"><div id="yui_3_16_0_1_1418845211316_57536">Thanks for your reply David,</div><div id="yui_3_16_0_1_1418845211316_59426"><br></div><div id="yui_3_16_0_1_1418845211316_58425" dir="ltr">I would like to write multi-page tiffs, but I might not be smart enough. I see one tiff file with all images stitched together in a long column, so I am thinking of a missing page return or something. But I guess that's a over-simplification ;-)</div><div id="yui_3_16_0_1_1418845211316_58427" dir="ltr"><br></div><div id="yui_3_16_0_1_1418845211316_58429" dir="ltr">vtkImageWriter works fine as long as I remember the extent, spacing and origin.</div><div id="yui_3_16_0_1_1418845211316_58431" dir="ltr"><br></div><div id="yui_3_16_0_1_1418845211316_58433" dir="ltr">Last year I saw multi-page tiff phloro images, now I see multi-page tiff ct data; maybe vtktiffwriter will be 3d capable some day....</div><div id="yui_3_16_0_1_1418845211316_59439" dir="ltr"><br></div><div id="yui_3_16_0_1_1418845211316_59442" dir="ltr">Maarten<br></div><div id="yui_3_16_0_1_1418845211316_56179"><span></span></div> <div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> On Wednesday, December 17, 2014 4:30 PM, David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>> wrote:<br> </font> </div> <br><br> <div class="y_msg_container"><div id="yiv4564333006"><div dir="ltr"><div class="yiv4564333006gmail_extra"><div class="yiv4564333006gmail_quote">On Wed, Dec 17, 2014 at 2:10 PM, Maarten Beek <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:beekmaarten@yahoo.com" target="_blank" href="mailto:beekmaarten@yahoo.com">beekmaarten@yahoo.com</a>></span> wrote:<blockquote class="yiv4564333006gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"><div>Hi David,</div><div dir="ltr"><br clear="none">Sorry, I'll try to remember. I did search the internet but couldn't find a clear answer.</div><div dir="ltr"><br clear="none"></div><div dir="ltr">I am a bit confused though, because vtkTiffReader reads multi-page tiffs fine. What is preventing a multi-page writer?</div></div></blockquote><div><br clear="none"></div><div>All that's missing is someone with the need to write multi-page files, who is willing to modify the writer so that it writes multi-page files! It isn't a trivial project, because there are at least three different semi-standard ways of storing 3D data in TIFF, and they aren't entirely compatible with one another.</div><div><br clear="none"></div><div>Even with the reader, multi-page files were troublesome for a long time, because it could read some 3D files but not others (again, because TIFF has several semi-standard ways of storing 3D data). TIFF was not initially designed to handle 3D, and all the ways of making it work with 3D are a bit hackish.</div><div><br clear="none"></div><div><br clear="none"></div><blockquote class="yiv4564333006gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"><div dir="ltr">What are my options in vtk? What writers do write 3d images? Does a tool exist that puts multiple tiffs in one multi-page tiff?<br clear="none"></div></div></blockquote><div><br clear="none"></div><div>Well, right now NIFTI is my favorite 3D image format. I don't use TIFF much, so I don't know what TIFF tools are available. </div><div class="yiv4564333006yqt4388141452" id="yiv4564333006yqtfd97931"><div><br clear="none"></div><div> - David </div></div></div></div></div></div><br><br></div> </div> </div> </div> </div></div>_______________________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a><br></blockquote></div><br></div></body></html>