[vtk-developers] vtkImageWeightedSum
Mathieu Malaterre
mathieu.malaterre at kitware.com
Thu Apr 27 17:36:55 EDT 2006
> Changing vtkImageMathematics seems like the best solution but it is a
> lot of work. The one problem I can see is that the way
> vtkImageMathematics is written right now it has a big "switch" statement
> inside the innermost loop, this is an inefficient way of doing things.
> The performance will be less than the original vtkImageWeightedSum class.
That is completely true. The code was not meant for more than two
inputs. Too bad :(
> So if it was me doing the work, I would just move the class to VTK and
> convert it to the new pipeline.
Done. See
VTK/Imaging/vtkImageWeightedSum
Comments welcome,
Mathieu
More information about the vtk-developers
mailing list