Thanks Sean for your quick answer,<br><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">CastImageFilter </span>works fine.</div><div><br clear="all">Albert <br>


<br><br><div class="gmail_quote">On Thu, Sep 9, 2010 at 18:01, Sean Ziegeler <span dir="ltr">&lt;<a href="mailto:sean.ziegeler@nrlssc.navy.mil">sean.ziegeler@nrlssc.navy.mil</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

What you want is itk::CastImageFilter , see:<br>
<a href="http://www.itk.org/Insight/Doxygen/html/classitk_1_1CastImageFilter.html" target="_blank">http://www.itk.org/Insight/Doxygen/html/classitk_1_1CastImageFilter.html</a><br>
<br>
-Sean<div><div></div><div class="h5"><br>
<br>
On 09/09/10 10:57, Albert Sanchez wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
Hi,<br>
<br>
How can I convert an itk::Image&lt;float,2&gt; to an itk::Image&lt;double,2&gt; ?<br>
A cast does not work so I suppose there is a function or something to do<br>
this, but I could not find it anywhere.<br>
<br>
Could you help me?<br>
<br>
Thanks a lot!<br>
Albert<br>
<br>
<br>
<br></div></div>
_____________________________________<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>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<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>
_____________________________________<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>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<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></div>