[Insight-users] curious problem with itkLinearInterpolateFunction

s.yang at dkfz-heidelberg.de s.yang at dkfz-heidelberg.de
Wed Jun 22 11:29:20 EDT 2005


Hello all,
a question about itkLinearInterpolateFunction, which is involved in
ResampleImageFilter. I have a segmented image with a white object(pixel
value=255) lies in black background(pixel value=0). If i transform it using e.g
translation or rotation, and resample it into a new file, then i get an image,
that seems to be OK. but i 've found, within this white object some pixes value
are not 255 but 254. This error leads to some artefacts in my subseuquent work.
I guess, the problem might consist in itkLinearInterpolateFunction. Can any one
tell me, what wrong with it?
By the way ,I tried the other two interpolatefunction  BSpline und NN, but they
were worse. 

thanks
Siwei


More information about the Insight-users mailing list