[Insight-users] [ITK Community] newbie C++ question
Matt McCormick
matt.mccormick at kitware.com
Thu Dec 26 15:59:25 EST 2013
Hi Massinissa,
Making the function a template, then instantiating the function on the
required types should work.
Hope this helps,
Matt
On Thu, Dec 26, 2013 at 2:27 PM, Massinissa Bandou
<Massinissa.Bandou at usherbrooke.ca> wrote:
> Hello ITK
>
> I have to read 3 images, double, float and short. how can I program my
> function without changing the ImageType every time ???
>
> myFunction()
> {
> typedef itk::Image< *float*, 3 > ImageType;
> ....
> ....
> }
>
> thank you in advance!!
>
>
>
> --
> View this message in context: http://itk-users.7.n7.nabble.com/newbie-C-question-tp33081.html
> Sent from the ITK - Users mailing list archive at Nabble.com.
> _____________________________________
> 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.php
>
> 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
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
More information about the Insight-users
mailing list