[Insight-users] problems with image resize (resample with interpolation and affine transform)
Darren Weber
darren.weber.lists at gmail.com
Fri Feb 12 17:19:24 EST 2010
Hi,
A program that was working with ITK 3.14 is not working with 3.16 (on OSX).
It's a mystery to me.
The program takes a list of image files (regex input), scans them all for
the largest image dimensions (2D), then "converts" or resamples all the
images in the series into the same dimensions.
The conversion process involves an information filter and a reslicer. The
latter includes an affine transform (just a translation to center the
images) and an interpolator.
The outputs fail to replicate the intensity scale of the inputs. Also, the
outputs are wildly different for .png and .tif inputs.
All the code and example files are available for download (as of Feb 2010)
ftp://anonymous@ftp.buckinstitute.org/dweber/testResize.tgz
In that archive, the source code and a build are in testResizeCode, the
input data files are in testResize/w1/bw/ and the outputs are in
testResize/w1/bw_resize. There is a script, testResize.bash, to run the
example - it has a variable for image type (png or tif). The output files
are wildly different for the png and tif inputs.
BTW, the purpose of this image resize process is to provide a series of
images with the same dimensions for registration. Is it true that a
registration process for any two images must have images of the same
dimensions?
Take care,
Darren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100212/ac1a9861/attachment.htm>
More information about the Insight-users
mailing list