Hello,<br><br>I want to get exactly one slice out of a 3D image.<br><br>I test this:<br><br>a = vtk.vtkImageClip()<br>a.SetInput(my3dimage)<br><br>a.SetOutputWholeExtent(*[0, 624, 0, 872, 248, 248])<br>a.ClipDataOn()<br>a.Update()<br>
<br>my_new_one_slice_image = a.Output()<br><br>But the Output is not the one image, it has exactly the same extent than the original, but without any scalars except the wanted slice.<br><br>What can I do?<br>