# How can I render as dicom series center, not the object center

**URL:** https://discourse.vtk.org/t/how-can-i-render-as-dicom-series-center-not-the-object-center/15147
**Category:** Support
**Tags:** python
**Created:** [January 13, 2025, 2:42am UTC](https://discourse.vtk.org/t/how-can-i-render-as-dicom-series-center-not-the-object-center/15147 "2025-01-13T02:42:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vinzileo](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/v/f6c823/32.png) [@vinzileo](https://discourse.vtk.org/u/vinzileo)
#### Post date: [January 13, 2025, 2:42am UTC](https://discourse.vtk.org/t/how-can-i-render-as-dicom-series-center-not-the-object-center/15147/1 "2025-01-13T02:42:07Z")

</div>

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

---

<div class="post-metadata">

### Author: ![1727711853](https://discourse.vtk.org/user_avatar/discourse.vtk.org/1727711853/32/8765_2.png) [@1727711853](https://discourse.vtk.org/u/1727711853)
#### Post date: [January 13, 2025, 5:14am UTC](https://discourse.vtk.org/t/how-can-i-render-as-dicom-series-center-not-the-object-center/15147/2 "2025-01-13T05:14:18Z")

</div>

try to remove the a\_renderer.ResetCamera(),it may reset all the camera parameters.
