[Insight-users] Pointer to itk image or filter of any type

Weiguang Guan guanw at rhpcs.mcmaster.ca
Mon Jun 20 13:57:31 EDT 2005


Thank you very much. This seems to be the only option even though I don't 
like it.

Weiguang
-- 
========================================================
Weiguang Guan, Research Engineer
RHPCS, McMaster University
========================================================

On Mon, 20 Jun 2005, Miller, James V (Research) wrote:

> This is not possible with ITK.  All filters and images must be explictly
> typed at compile time.
> 
> You can structure your program to provide an algorithm with any datatype
> using a switch statement that instantiates an algorithm with the
> various datatypes you want to support.
> 
> Jim
> 
> 
> -----Original Message-----
> From: insight-users-bounces+millerjv=crd.ge.com at itk.org
> [mailto:insight-users-bounces+millerjv=crd.ge.com at itk.org]On Behalf Of
> Weiguang Guan
> Sent: Monday, June 20, 2005 1:34 PM
> To: Karthik Krishnan
> Cc: insight-users at itk.org
> Subject: Re: [Insight-users] Pointer to itk image or filter of any type
> 
> 
> Thank you, but this is not what I want. I want to define a generic
> itk::Image type with unknown data type, MyGenericITKImageType.  Then,
> typedef itk::ImageToImageFilter <MyGenericITKImageType,
> MyGenericITKImageType> MyGenericITKFilterType.
> 
> Is it possible?
> 
> Weiguang
> 



More information about the Insight-users mailing list