Hi all,
I tried to render a dicom series containing a mask(1 within mask region, other wise its 0).
However, when I render it the focal center is always the center of the mask, while I want it to be the center of whole dicom series, I tried the following code to change the focal center it doesn’t work:
center = reader.GetOutput().GetCenter()
a_camera = vtk.vtkCamera()
a_camera.SetViewUp(0, 0, -1)
a_camera.SetPosition(center[0], center[1] - 500, center[2])
a_camera.SetFocalPoint(center)
a_camera.ComputeViewPlaneNormal()
a_renderer.SetActiveCamera(a_camera)
a_renderer.ResetCamera()
a_camera.Dolly(1.5)
Thanks for your support here