[Insight-developers] Image::TransformPhysicalPointToIndex
Luis Ibanez
luis.ibanez@kitware.com
Wed, 27 Feb 2002 16:56:51 -0500
Sounds good to me.
That's more consistant with the notion of looking for the nearest neighbor.
Luis
=============================
Lydia Ng wrote:
>Currently Image::TransformPhysicalPointToIndex
>does a truncation to convert the index from
>continuous space to discrete space. i.e
>
> for (unsigned int i = 0 ; i < VImageDimension ; i++)
> {
> index[i] = static_cast<long>(inputPoint[i]);
> }
>
>Any objection if that the truncation is change
>to vnl_math_rnd instead? ie.
>
> for (unsigned int i = 0 ; i < VImageDimension ; i++)
> {
> index[i] = static_cast<long>( vnl_math_rnd(inputPoint[i]) );
> }
>
>
>- Lydia
>
>
>
>_______________________________________________
>Insight-developers mailing list
>Insight-developers@public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-developers
>