[vtk-developers] vtkImageReslice constants
David Gobbi
david.gobbi at gmail.com
Sun Aug 26 18:14:36 EDT 2007
Hi Carlos,
Quadratic interpolation is not requested often enough for it to be added
to the class, but I have at least fixed the class in cvs so that it won't
segfault anymore.
I can't change the constants (the class has been around for too long for
me to want to do that) so you will have to specifically set nearest-neighbor,
linear, and cubic rather than just incrementing the value.
- David
On 8/25/07, Carlos Scheidegger <cscheid at sci.utah.edu> wrote:
> Hi,
>
> Looking at the vtkImageReslice constants, I can't help but notice that
> they're not contiguous. I imagine the intent is that eventually there should be a
>
> #define VTK_RESLICE_QUADRATIC 2
>
> However, VTK simply segfaults if SetInterpolationMode(2) is called. This is
> somewhat inconvenient in my case, where I'd like to generate comparisons
> between all interpolation modes by directly iterating over all constants.
>
> Would it be possible to put some check on the dispatching functions
> (vtkGetResliceInterpFunc and vtkGetResliceSummationFunc) instead of returning
> NULL, so that either an error is raised or a default interpolation mode is
> chosen? It seems segfaulting is somewhat harsh in this case.
>
> Thanks very much,
> Carlos Scheidegger
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
More information about the vtk-developers
mailing list