[vtkusers] About vtkImageReslice interpolation
Simon ESNEAULT
simon.esneault at gmail.com
Tue Jul 8 05:41:01 EDT 2014
Hi All,
We use vtkImageResample/vtkImageReslice (from vtk 5.8.1) quite a lot here,
and I've noticed a strange behavior.
If we down sample a volume by a factor of 2 in all 3 directions, the output
image will be the exact same if we use a nearest neighborhood, linear or
cubic interpolation. There seems to be no interpolation at all if the
reduction factor is a power of two.
If the reduction factor is set to 2.00001, the interpolation is performed
correctly when asked for linear or cubic.
Is this an intended behavior ?
After some debugging :
In the file vtkImageReslice.cxx, method vtkTricubicInterpCoeffs (line 1503)
with a power of 2 factor we always fall back to the part with the comment
// no interpolation (line 1510), but I don't understand why.
And last question : there is a new vtkImageResize that was introduced in
vtk 5.10, will the behavior be the same ?
Thanks for your help
-Simon
--
------------------------------------------------------------------
Simon Esneault
13 rue Vasselot
35000 Rennes, France
Tel : 06 64 61 30 94
Mail : simon.esneault at gmail.com
------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140708/e0ef7ec6/attachment.html>
More information about the vtkusers
mailing list