[Insight-users] Create image types in run time

Andreas Schuh andreas.schuh.84 at googlemail.com
Mon Feb 23 19:19:41 EST 2009


Hi David!

Use a function that is templated over the dimension. This way you  
needn't duplicate the code for each dimension.

--
regards
Andreas

Am 23.02.2009 um 21:37 schrieb "David Pastor" <david.pastor at die.upm.es>:

> Hello,
>
> I'm trying to write a program to create images automatically from an  
> own description and i need to pass the dimension of the image as a  
> parameter of the application so the template will be instantiated in  
> run time which is not feasible.
>
> Is there anyway to work with a variable dimension? it seems that i  
> need to rewrite the whole code for each dimension. The problem will  
> be fixed if there is a generic itk::Image pointer for any dimension...
>
> cheers
> david
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090224/02fc7265/attachment.htm>


More information about the Insight-users mailing list