Posted by
Justin McGrath on
Apr 25, 2008; 3:48pm
URL: http://imagej.273.s1.nabble.com/interpolation-for-millimeters-tp3696442p3696444.html
Isn't this called resampling, which involves, but it not the same as,
interpolation? I learned the math behind this years ago and promptly forgot
it, so I can't describe how to do it. However, I think that IrfanView (
http://www.irfanview.com/) has this capability. Choose
Image->Resize/Resample. To get a spacing of 1mm, multiply your original
pixel dimensions by 0.57.
The window (called Resample filter in IrfanView) affects the results
somewhat. Lanzcos is popular, but Burger Wilhelm on the list recently
recommended Mitchell-Netravali over Lanzcos.
One day I might break out my text and try to put this into ImageJ, but I'm
not really a programmer and I'm not a signal processing expert by any means,
so perhaps it's a job more suited to someone else.
Justin
On Fri, Apr 25, 2008 at 9:09 AM, Curtis Rueden <
[hidden email]> wrote:
> Hi Tony,
>
> This kind of problem is exactly what the VisAD Java class library for
> visualization of numerical data (
>
http://www.ssec.wisc.edu/~billh/visad.html<
http://www.ssec.wisc.edu/%7Ebillh/visad.html>
> )
> was designed to solve. It would take a small amount of coding on your part
> -- take a look at the FlatField's resample method. If you decide to go this
> route and need further assistance, I would be happy to help.
>
> -Curtis
>
> On Fri, Apr 25, 2008 at 5:58 AM, Tony Shepherd <
[hidden email]
> >
> wrote:
>
> > I have an image where the pixels have real-world dimensions, representing
> > 0.57mm per pixel in x and y directions.
> >
> > I need to create a new image from this, with pixel values as they would
> be
> > at every 1.0 mm in each direction. Some kind of interpolation for
> > re-gridding
> >
> > Does anyone have a plugin / code that can do this?
> >
> > Thanks
> >
>