Reputation: 1849
For rendering purposes I need a vtkImageData object with two components where each component consists of the single component of two vtkImageData objects. How can I achieve that? Is there a vtkImageAlgorithm for this like http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/vtkImageWeightedSum?
Thanks,
Dirk
Upvotes: 2
Views: 2830
Reputation: 12505
I would use vtkImageAppend or vtkImageAppendComponents:
http://www.vtk.org/doc/nightly/html/classvtkImageAppend.html
http://www.vtk.org/doc/nightly/html/classvtkImageAppendComponents.html
Upvotes: 3