[Insight-users] Image template with a variable argument.
Karthik Krishnan
Karthik.Krishnan at kitware.com
Fri Feb 24 09:27:18 EST 2006
René Sánchez Martín wrote:
> Hi all,
>
> I have designed a filter that inherits from ImageToImageFilter and the
> output image is the following:
>
> Image<Vector<int,K>>
>
> K used to be a constant passed through a template, but right now I
> need to pass it to the test program from command line. Of course, the
> compiler tell me that K must be constant. I could pass the variable
> through a Set method, but I want my class to inherit from
> ImageToImageFilter. Any suggestion to cope with that?
>
K must be known at compile time.
Use Image< VariableLengthVector< int > >.
> Thanks in advance.
>
> Rene Sanchez
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list