codester2 / devide

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

add slice3dVWR interpolation mode switcher #95

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently the slice3dVWR slices do linear interpolation.  Can we switch to
nearest neighbour?  If so, add a drop-down box to the primary interface
with which the user can change this.

Original issue reported on code.google.com by cpbotha on 12 Sep 2008 at 12:24

GoogleCodeExporter commented 9 years ago

Original comment by cpbotha on 4 Dec 2008 at 1:04

GoogleCodeExporter commented 9 years ago

Original comment by cpbotha on 23 Dec 2008 at 5:36

GoogleCodeExporter commented 9 years ago

Original comment by cpbotha on 28 Jul 2009 at 12:00

GoogleCodeExporter commented 9 years ago
To change vtkImagePlaneWidget reslice interpolation, do the following:
{{{
# obj is a slice3dVWR instance
ipw = obj.sliceDirections._sliceDirectionsDict.values()[0]._ipws[0]
ipw.SetResliceInterpolateToNearestNeighbour()
}}}

The opengl hardware still does linear interpolation on top of this, which gives 
strange effects.  To disable that as well, do the following BEFORE adding input 
data:
{{{
ipw.SetTextureInterpolate(0)
}}}

Original comment by cpbotha on 11 Aug 2009 at 11:40

GoogleCodeExporter commented 9 years ago
I'm postponing this to a later release.  Although useful, I don't have a good 
use case 
for this functionality yet.  If you do, please let me know!!

Original comment by cpbotha on 11 Aug 2009 at 11:57

GoogleCodeExporter commented 9 years ago

Original comment by cpbotha on 11 Aug 2009 at 11:57