[Insight-developers] Image::TransformPhysicalPointToIndex
Lydia Ng
lng@insightful.com
Wed, 27 Feb 2002 13:33:20 -0800
Currently Image::TransformPhysicalPointToIndex
does a truncation to convert the index from
continuous space to discrete space. i.e
for (unsigned int i =3D 0 ; i < VImageDimension ; i++)
{=20
index[i] =3D static_cast<long>(inputPoint[i]);
}
Any objection if that the truncation is change
to vnl_math_rnd instead? ie.
for (unsigned int i =3D 0 ; i < VImageDimension ; i++)
{=20
index[i] =3D static_cast<long>( vnl_math_rnd(inputPoint[i]) );
}
- Lydia