Hi Lynx,<br><br>The ITK implementation of TIFF only supports <br><br> * signed char<br> * unsigned char<br> * signed short<br> * unsigned short<br><br>(a grep for "m_ComponentType" in the itkTIFFImageIO<br>
will reveal as much).<br><br><br>It is possible, however, that the underlying "tiff" libraries<br>support "float" as a pixel type. <br><br>But that functionality is not exposed at this point.<br><br>
As Dan suggested, you may want to use the MetaImage<br>file format instead of TIFF.<br><br><br> Regards,<br><br><br> Luis<br><br><br>---------------------------------------------<br><div class="gmail_quote">On Sun, Jul 26, 2009 at 7:21 AM, <span dir="ltr"><<a href="mailto:lynx.abraxas@freenet.de">lynx.abraxas@freenet.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello!<br>
<br>
<br>
Using TIF as my input and output file format I noticed that I can load 3D-TIF<br>
with itk::ImageFileReader. (It says only 2D is possible in the wiki<br>
<a href="http://www.itk.org/Wiki/ITK_File_Formats" target="_blank">http://www.itk.org/Wiki/ITK_File_Formats</a>.) However I was not able to save a<br>
TIF in pixel type float (for a more exact distance map). Weren't both float<br>
and 3D introduced with TIFF 6.0?<br>
<br>
Is there no "popular" file format supported together with float or doulbe in<br>
ITK?<br>
What file format should I use for float or double and what viewer?<br>
I tried the vtk image format (suffix: .vtk) but ParaView seems to destinguish<br>
between diffrent vtk types. Would I just have to rename *.vtk to *.vti for my<br>
floats?<br>
<br>
<br>
Thanks.<br>
Lynx<br>
<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at: <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br>