codester2 / devide

Automatically exported from code.google.com/p/devide
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Add VTK's new interpolation modes to resampleImage module's dropdown list #191

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I see that vtkImageReslice now offers 5 interpolation modes:
nearest neighbour, linear, cubic, Lanczos, and Kaizer.

Would be nice if these new modes (esp. Lanczos) could be added to the options 
listed in dropdown box of the DeVIDE resampleImage module.

Original issue reported on code.google.com by fma...@gmail.com on 17 Mar 2011 at 4:15

GoogleCodeExporter commented 8 years ago
I changed this to a defect since mode 2 (used by DeVIDE to set interpolation to 
cubic) does not actually refer to cubic. Unsure if this was the case with older 
versions of DeVIDE, but not any more.

Quoting from vtkImageReslice.h:
00063 // interpolation mode constants
00064 #define VTK_RESLICE_NEAREST 0
00065 #define VTK_RESLICE_LINEAR 1
00066 #define VTK_RESLICE_RESERVED_2 2
00067 #define VTK_RESLICE_CUBIC 3
00068 #define VTK_RESLICE_LANCZOS 4
00069 #define VTK_RESLICE_KAISER 5

Original comment by fma...@gmail.com on 17 Mar 2011 at 5:03

GoogleCodeExporter commented 8 years ago

Original comment by fma...@gmail.com on 24 Jun 2011 at 6:25

GoogleCodeExporter commented 8 years ago
Actually these interpolation methods are new to vtk5.9.0 and not implemented in 
5.6.1 yet. For future implementation.

Original comment by fma...@gmail.com on 7 Jul 2011 at 10:21