[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtk-developers
Subject:    Re: [vtk-developers] vtkImageWeightedSum
From:       Mathieu Malaterre <mathieu.malaterre () kitware ! com>
Date:       2006-04-27 21:36:55
Message-ID: 44513977.1030304 () kitware ! com
[Download RAW message or body]


> 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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic