[Insight-users] curious problem with itkLinearInterpolateFunction

Miller, James V (Research) millerjv at crd.ge.com
Wed Jun 22 13:12:52 EDT 2005


If you want to resample a segmented image, it is best to the
NearestNeighborImageFunction as the interpolator.  This will guarentee
your image will still have just 255s and 0s.

Any other interpolator will, in fact, interpolate the data.  So if a 
pixel in the resampled image corresponds to a subpixel location in the 
original image, an interpolated value will be calculated.

Jim



-----Original Message-----
From: insight-users-bounces+millerjv=crd.ge.com at itk.org
[mailto:insight-users-bounces+millerjv=crd.ge.com at itk.org]On Behalf Of
s.yang at dkfz-heidelberg.de
Sent: Wednesday, June 22, 2005 11:29 AM
To: insight-users at itk.org
Subject: [Insight-users] curious problem with
itkLinearInterpolateFunction


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
_______________________________________________
Insight-users mailing list
Insight-users at itk.org
http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list