[Insight-users] converting a float image to a double image

David R. Haynor haynor at u.washington.edu
Thu Sep 9 12:54:55 EDT 2010


hi gang,

one has to be impressed that, in 1077 lines of documentation for this filter, there is not a single example.

-dh

On Thu, 9 Sep 2010, Albert Sanchez wrote:

> Thanks Sean for your quick answer,
> CastImageFilter works fine.
> 
> Albert
> 
> 
> On Thu, Sep 9, 2010 at 18:01, Sean Ziegeler <sean.ziegeler at nrlssc.navy.mil> wrote:
>       What you want is itk::CastImageFilter , see:
>       http://www.itk.org/Insight/Doxygen/html/classitk_1_1CastImageFilter.html
> 
>       -Sean
> 
> 
> On 09/09/10 10:57, Albert Sanchez wrote:
> Hi,
> 
> How can I convert an itk::Image<float,2> to an itk::Image<double,2> ?
> A cast does not work so I suppose there is a function or something to do
> this, but I could not find it anywhere.
> 
> Could you help me?
> 
> Thanks a lot!
> Albert
> 
> 
> 
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
> 
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
> 
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
> 
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
> 
> 
> 
>


More information about the Insight-users mailing list