[Insight-users] curious problem with itkLinearInterpolateFunction
Kris Thielemans
kris.thielemans at csc.mrc.ac.uk
Thu Jun 23 11:20:10 EDT 2005
Hi all
> After a linear interpolation there is no reason to obtain a
> pixel with value 254 , whose neighborhoods are all 255.
<snip>
I suspect this is a rounding error + truncation. Probably linear
interpolation computes 254.999, and when it gets stored in the image that
gets truncated to 254. If so, that does sound like a bug to me, but not in
the interpolator. (I don't really know ITK yet as this is my first look at
it, so I'm probably wildly off).
Kris Thielemans
Hammersmith Imanet, part of GE Healthcare
Cyclotron Building
Hammersmith Hospital
Du Cane Road
London W12 ONN, United Kingdom
web site address: http://www.hammersmithimanet.com/~kris
-------------------------------------------
NOTE: My inbox has a SPAM filter that automatically throws away suspect
messages. If you expect a reply and don't get one, your message might have
been wrongly classified.
More information about the Insight-users
mailing list