<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1418845211316_68646">Hey Bradley,</div><div id="yui_3_16_0_1_1418845211316_68648"><br></div><div id="yui_3_16_0_1_1418845211316_68650" dir="ltr">Thanks for your reply, I'll have a look at the itk code.</div><div id="yui_3_16_0_1_1418845211316_68652" dir="ltr"><br></div><div id="yui_3_16_0_1_1418845211316_75269" dir="ltr">I just have some 3d tiff ct data and after soon processing, my first thought was to just save it in its original format.</div><div id="yui_3_16_0_1_1418845211316_75271" dir="ltr"><br></div><div id="yui_3_16_0_1_1418845211316_68654" dir="ltr">Thanks for your remark re. spacing and origin; I was about to send an email to the person who gave me the ct data, to ask about this data. I now feel more confident that my code didn't screw up these numbers ;-)</div><div id="yui_3_16_0_1_1418845211316_68661" dir="ltr"><br></div><div id="yui_3_16_0_1_1418845211316_68663" dir="ltr">Maarten<br></div><div id="yui_3_16_0_1_1418845211316_66744"><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 Thursday, December 18, 2014 9:20 AM, Bradley Lowekamp <blowekamp@mail.nih.gov> wrote:<br> </font> </div>  <br><br> <div class="y_msg_container"><div id="yiv3032120664"><div>Hello,<div><br clear="none"></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 clear="none"></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 clear="none"></div><div>Brad</div><div><br clear="none"></div><div>[1] <a rel="nofollow" shape="rect" target="_blank" href="http://www.itk.org/Doxygen/html/group__ITKVTK.html">http://www.itk.org/Doxygen/html/group__ITKVTK.html</a></div><div>[2] <a rel="nofollow" shape="rect" target="_blank" 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 class="yiv3032120664yqt4139850685" id="yiv3032120664yqt28149"><div><br clear="none"><div><div>On Dec 17, 2014, at 4:42 PM, Maarten Beek via vtkusers <<a rel="nofollow" shape="rect" ymailto="mailto:vtkusers@vtk.org" target="_blank" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>> wrote:</div><br class="yiv3032120664Apple-interchange-newline" clear="none"><blockquote type="cite">

</blockquote></div></div></div></div><div class="yiv3032120664yqt4139850685" id="yiv3032120664yqt34024"><div><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="yiv3032120664yui_3_16_0_1_1418845211316_57536">Thanks for your reply David,</div><div id="yiv3032120664yui_3_16_0_1_1418845211316_59426"><br clear="none"></div><div dir="ltr" id="yiv3032120664yui_3_16_0_1_1418845211316_58425">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 dir="ltr" id="yiv3032120664yui_3_16_0_1_1418845211316_58427"><br clear="none"></div><div dir="ltr" id="yiv3032120664yui_3_16_0_1_1418845211316_58429">vtkImageWriter works fine as long as I remember the extent, spacing and origin.</div><div dir="ltr" id="yiv3032120664yui_3_16_0_1_1418845211316_58431"><br clear="none"></div><div dir="ltr" id="yiv3032120664yui_3_16_0_1_1418845211316_58433">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 dir="ltr" id="yiv3032120664yui_3_16_0_1_1418845211316_59439"><br clear="none"></div><div dir="ltr" id="yiv3032120664yui_3_16_0_1_1418845211316_59442">Maarten<br clear="none"></div><div id="yiv3032120664yui_3_16_0_1_1418845211316_56179"><span></span></div> <div class="yiv3032120664qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv3032120664yahoo_quoted" style="display:block;"> <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 rel="nofollow" shape="rect" ymailto="mailto:david.gobbi@gmail.com" target="_blank" href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>> wrote:<br clear="none"> </font> </div>  <br clear="none"><br clear="none"> <div class="yiv3032120664y_msg_container"><div id="yiv3032120664"><div dir="ltr"><div class="yiv3032120664gmail_extra"><div class="yiv3032120664gmail_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="yiv3032120664gmail_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="yiv3032120664gmail_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="yiv3032120664yqt4388141452" id="yiv3032120664yqtfd97931"><div><br clear="none"></div><div> - David </div></div></div></div></div></div><br clear="none"><br clear="none"></div>  </div> </div>  </div> </div></div>_______________________________________________<br clear="none">Powered by <a rel="nofollow" shape="rect" target="_blank" href="http://www.kitware.com/">www.kitware.com</a><br clear="none"><br clear="none">Visit other Kitware open-source projects at <a rel="nofollow" shape="rect" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br clear="none"><br clear="none">Please keep messages on-topic and check the VTK FAQ at: <a rel="nofollow" shape="rect" target="_blank" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br clear="none"><br clear="none">Follow this link to subscribe/unsubscribe:<br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a><br clear="none"><br clear="none"></div></div></div><br><br></div>  </div> </div>  </div> </div></body></html>