<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Tanks for your answer!However when I did what you have told, it still have some problem below:<div><br></div><div>itk::ExceptionObject&lt;0031e508&gt;</div><div><br>Description:itk::Error:TIFFimageIO:TIFF supports unsigned/signed char,unsigned short/signed short only.</div><div><br></div><div>As I said before, I want to use some tiff images ,however &nbsp;TIFF support unsigned/signed char,unsigned short/signed short only, so I'm still asking if there is a way to convert the uchar or ushort type to double for delica use? Thank you!<br><br><div></div><div id="divNeteaseMailCard"></div><br><pre><br>At&nbsp;2013-09-02&nbsp;20:09:33,"Bill&nbsp;Lorensen"&nbsp;&lt;bill.lorensen@gmail.com&gt;&nbsp;wrote:
&gt;When&nbsp;you&nbsp;define&nbsp;your&nbsp;read,&nbsp;just&nbsp;template&nbsp;it&nbsp;over&nbsp;the&nbsp;image&nbsp;type&nbsp;you
&gt;want&nbsp;the&nbsp;reader&nbsp;to&nbsp;produce.
&gt;typedef&nbsp;itk::Image&lt;&nbsp;double,&nbsp;2&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ImageType;
&gt;typedef&nbsp;itk::ImageFileReader&lt;ImageType&gt;&nbsp;ReaderType;
&gt;ReaderType::Pointer&nbsp;reader&nbsp;=&nbsp;ReaderType::New();
&gt;
&gt;
&gt;On&nbsp;Sun,&nbsp;Sep&nbsp;1,&nbsp;2013&nbsp;at&nbsp;10:41&nbsp;PM,&nbsp;shiwei&nbsp;&lt;swingsw89@163.com&gt;&nbsp;wrote:
&gt;&gt;&nbsp;Hi,&nbsp;When&nbsp;I&nbsp;was&nbsp;dealing&nbsp;with&nbsp;some&nbsp;tiff&nbsp;images,&nbsp;it&nbsp;only&nbsp;have&nbsp;two&nbsp;kinds&nbsp;of
&gt;&gt;&nbsp;pixeltype&nbsp;to&nbsp;choose:&nbsp;char&nbsp;and&nbsp;short.&nbsp;However,I&nbsp;need&nbsp;to&nbsp;convert&nbsp;the&nbsp;pixeltype
&gt;&gt;&nbsp;to&nbsp;double&nbsp;for&nbsp;delica&nbsp;use,&nbsp;I'm&nbsp;wondering&nbsp;whether&nbsp;ITK&nbsp;has&nbsp;a&nbsp;way&nbsp;to&nbsp;convert&nbsp;the
&gt;&gt;&nbsp;pixeltype&nbsp;to&nbsp;double?&nbsp;Thank&nbsp;you!
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;&nbsp;_____________________________________
&gt;&gt;&nbsp;Powered&nbsp;by&nbsp;www.kitware.com
&gt;&gt;
&gt;&gt;&nbsp;Visit&nbsp;other&nbsp;Kitware&nbsp;open-source&nbsp;projects&nbsp;at
&gt;&gt;&nbsp;http://www.kitware.com/opensource/opensource.html
&gt;&gt;
&gt;&gt;&nbsp;Kitware&nbsp;offers&nbsp;ITK&nbsp;Training&nbsp;Courses,&nbsp;for&nbsp;more&nbsp;information&nbsp;visit:
&gt;&gt;&nbsp;http://www.kitware.com/products/protraining.php
&gt;&gt;
&gt;&gt;&nbsp;Please&nbsp;keep&nbsp;messages&nbsp;on-topic&nbsp;and&nbsp;check&nbsp;the&nbsp;ITK&nbsp;FAQ&nbsp;at:
&gt;&gt;&nbsp;http://www.itk.org/Wiki/ITK_FAQ
&gt;&gt;
&gt;&gt;&nbsp;Follow&nbsp;this&nbsp;link&nbsp;to&nbsp;subscribe/unsubscribe:
&gt;&gt;&nbsp;http://www.itk.org/mailman/listinfo/insight-users
&gt;&gt;
&gt;
&gt;
&gt;
&gt;--&nbsp;
&gt;Unpaid&nbsp;intern&nbsp;in&nbsp;BillsBasement&nbsp;at&nbsp;noware&nbsp;dot&nbsp;com
</pre></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>