[vtkusers] vtkTIFFWriter yields 2D-"montage" instead of 3D TIF

David Gobbi david.gobbi at gmail.com
Mon Jun 6 12:09:36 EDT 2011


Hi Roman,

No-one has added this feature to VTK yet.  The part
of vtkTIFFWriter.cxx that would need to be changed
is vtkTIFFWriter::WriteFileHeader().

  - David


On Mon, Jun 6, 2011 at 9:38 AM, Roman Grothausmann
<roman.grothausmann at helmholtz-berlin.de> wrote:
> Dear mailing list members,
>
>
> When I use vtkTIFFWriter with SetFileDimensionality(3) I get a 2D-"montage"
> instead of 3D TIF when I load the file into e.g. ImageJ. How can I get a
> true 3D-TIF with VTK? (With ITK I have no problems to write a true 3D-TIF.)
>
> My general Pyhton-code is
>
> aWriter = vtk.vtkTIFFWriter()
> aWriter.SetInputConnection(stencil.GetOutputPort())
> aWriter.SetFileName(filename)
> aWriter.SetFileDimensionality(3)
>
> aWriter.Write()
>
>
> Any help or hints are very much appreciated
> Roman
>
> --
> Roman Grothausmann
>
> Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
> Bereich Funktionale Materialien
> Institut für angewandte Materialforschung
> Hahn-Meitner-Platz 1
> D-14109 Berlin
>
> (früher Hahn-Meitner-Institut und BESSY)
>
>
> Tel.: +49-(0)30-8062-42816
> Fax.: +49-(0)30-8062-43059
>
> Vorsitzender des Aufsichtsrats: Prof. Dr. Dr. h.c. mult. Joachim Treusch
> Stellvertretende Vorsitzende: Dr. Beatrix Vierkorn-Rudolph
> Geschäftsführer: Prof. Dr. Anke Rita Kaysser-Pyzalla, Prof. Dr. Dr. h.c.
> Wolfgang Eberhardt, Dr. Ulrich Breuer
> Sitz der Gesellschaft: Berlin
> Handelsregister: AG Charlottenburg, 89 HRB 5583
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list