[vtkusers] How to splice an vtkImageData into another one?

WackoWanderer marcwang17 at hotmail.com
Sat Mar 3 21:38:53 EST 2018


for example I have two vtkImageData, I have VoxelGeo1 with size (5,5,5)  and
VoxelGeo2 with size(10,10,10)

I would like to copy the value of VoxelGeo1 into VoxelGeo2 but on the index
range x = 4 to 9,  y = 4 to 9,  z = 4 to 9 . 

Is there a way to do it without iterating over each cell? I looked at
subclassing vtkImageAlgorithm to create my own filter. But this feels like
overkill. I am also working in python.

Cheers



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list