[Insight-developers] instantiating itkVector
Richard Beare
richard.beare at gmail.com
Thu Dec 4 17:03:10 EST 2008
Hi,
In this case I'll know it at compile time - it is dependent on the
dimensionality of the image. Actually, to be specific, it is given by
3^(ImType::ImageDimension - 1).
It would probably look neater in the code if I could do it in a way
that was not dependent on compile time knowledge, but I'm not sure
that is possible. I'll need to do something equivalent with matrix
types too.
On Fri, Dec 5, 2008 at 12:50 AM, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>
> Richard,
>
>
> Would you know the size of the neighborhood at compilation time ?
>
> or only at run-time ?
>
>
> Please let us know,
>
>
> Thanks
>
>
> Luis
>
>
> ----------------------
> Richard Beare wrote:
>>
>> Hi,
>> I need to create a vector type with length equal to the size of a
>> neighborhood - i.e. 3^ImageDimension. I suspect that there needs to be
>> some sort of trick with macros, because calling pow is no good. Any
>> suggestions?
>>
>> Thanks
>> _______________________________________________
>> Insight-developers mailing list
>> Insight-developers at itk.org
>> http://www.itk.org/mailman/listinfo/insight-developers
>>
>
More information about the Insight-developers
mailing list