# How do I get the real-time Angle of a 3D image, as shown in the figure?

**URL:** <https://discourse.slicer.org/t/how-do-i-get-the-real-time-angle-of-a-3d-image-as-shown-in-the-figure/21923>\
**Category:** Support\
**Created:** [February 11, 2022, 6:09pm UTC](https://discourse.slicer.org/t/how-do-i-get-the-real-time-angle-of-a-3d-image-as-shown-in-the-figure/21923 "2022-02-11T18:09:07Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![gavinricky](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@gavinricky](https://discourse.slicer.org/u/gavinricky)\
**Post date:** [February 11, 2022, 6:09pm UTC](https://discourse.slicer.org/t/how-do-i-get-the-real-time-angle-of-a-3d-image-as-shown-in-the-figure/21923/1 "2022-02-11T18:09:07Z")

</div>

Operating system:windows 10  
Slicer version:4.8.1

 ![福昕截屏20220212020655449.PNG](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/5/3512e9c8d623540bc0ceeb02d782c8f2f94fa824.jpeg)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 11, 2022, 6:19pm UTC](https://discourse.slicer.org/t/how-do-i-get-the-real-time-angle-of-a-3d-image-as-shown-in-the-figure/21923/2 "2022-02-11T18:19:22Z")

</div>

You can add a small Python script that observes the slice node and adds this angle information. I would not recommend doing this, as the values are only meaningful if only one (if you introduce certain constraints then two) of the 3 angles is significantly different from zero. For example, it is impossible for a human to decipher what orientation the (LR 28, IS 88, AP 31) angles refer to.

Would you like to use this for getting C-arm anatomical angles (CRA/CAU, RAO/LAO, L-arm)? That is a quite tightly constrained use case, so for that a small Python scripted module could be added. Would you be interested in working on that? (it would be just a tiny Python scripted module, which would observe a view node and display the angles in a corner annotation).

---

<div class="post-metadata">

**Author:** ![gavinricky](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@gavinricky](https://discourse.slicer.org/u/gavinricky)\
**Post date:** [February 11, 2022, 6:26pm UTC](https://discourse.slicer.org/t/how-do-i-get-the-real-time-angle-of-a-3d-image-as-shown-in-the-figure/21923/3 "2022-02-11T18:26:52Z")

</div>

> [@lassoan](#):
>
> getting C-arm anatomical angles

Thank you for your reply. That’s exactly what I want to do. I wanna get C-arm anatomical angles before the operation.I would appreciate your assistance if you could help me.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 11, 2022, 7:03pm UTC](https://discourse.slicer.org/t/how-do-i-get-the-real-time-angle-of-a-3d-image-as-shown-in-the-figure/21923/4 "2022-02-11T19:03:27Z")

</div>

Do you have experience with Python scripting?

---

<div class="post-metadata">

**Author:** ![gavinricky](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@gavinricky](https://discourse.slicer.org/u/gavinricky)\
**Post date:** [February 11, 2022, 10:57pm UTC](https://discourse.slicer.org/t/how-do-i-get-the-real-time-angle-of-a-3d-image-as-shown-in-the-figure/21923/5 "2022-02-11T22:57:48Z")

</div>

Sorry, I have no experience with Python scripting.

---

<div class="post-metadata">

**Author:** ![gavinricky](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@gavinricky](https://discourse.slicer.org/u/gavinricky)\
**Post date:** [February 14, 2022, 5:30pm UTC](https://discourse.slicer.org/t/how-do-i-get-the-real-time-angle-of-a-3d-image-as-shown-in-the-figure/21923/6 "2022-02-14T17:30:12Z")

</div>

I would appreciate it if you could spare some time to help me resolve the problem.  
Even though I have no experience with Python scripting, I can learn.  
I look forward to your reply

---

<div class="post-metadata">

**Author:** ![timeanddoctor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/timeanddoctor/32/5839_2.png) [@timeanddoctor](https://discourse.slicer.org/u/timeanddoctor)\
**Post date:** [February 19, 2022, 2:57pm UTC](https://discourse.slicer.org/t/how-do-i-get-the-real-time-angle-of-a-3d-image-as-shown-in-the-figure/21923/7 "2022-02-19T14:57:32Z")

</div>

I am the author of this video. This is a script written a long time ago. If you find it useful, we can communicate.

我是这个视频的作者，这个是很久前写的一个脚本，你如果觉得有用，我们可以沟通下。

---

<div class="post-metadata">

**Author:** ![gavinricky](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@gavinricky](https://discourse.slicer.org/u/gavinricky)\
**Post date:** [February 19, 2022, 3:50pm UTC](https://discourse.slicer.org/t/how-do-i-get-the-real-time-angle-of-a-3d-image-as-shown-in-the-figure/21923/8 "2022-02-19T15:50:59Z")

</div>

Thank you so much, I have been looking for you for a long time! I also left a comment on station B, I hope to get your help

太感谢了，找了您很久！B站上也留过言，希望能得到您的帮助 🫰  
[wenchang.guo@163.com](mailto:wenchang.guo@163.com)

---

<div class="post-metadata">

**Author:** ![lili-yu22](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@lili-yu22](https://discourse.slicer.org/u/lili-yu22)\
**Post date:** [February 28, 2022, 10:24am UTC](https://discourse.slicer.org/t/how-do-i-get-the-real-time-angle-of-a-3d-image-as-shown-in-the-figure/21923/9 "2022-02-28T10:24:44Z")

</div>

teacher Li，have you use SPHARM PDM，can you tell me the priciple，thank you very much

---

<div class="post-metadata">

**Author:** ![timeanddoctor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/timeanddoctor/32/5839_2.png) [@timeanddoctor](https://discourse.slicer.org/u/timeanddoctor)\
**Post date:** [March 2, 2022, 1:13pm UTC](https://discourse.slicer.org/t/how-do-i-get-the-real-time-angle-of-a-3d-image-as-shown-in-the-figure/21923/10 "2022-03-02T13:13:02Z")

</div>

I did not use this, Thanks.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [July 21, 2022, 7:05pm UTC](https://discourse.slicer.org/t/how-do-i-get-the-real-time-angle-of-a-3d-image-as-shown-in-the-figure/21923/11 "2022-07-21T19:05:48Z")

</div>

You can find a script that prints anatomical angles (RAO/LAO, CRA/CAU) in the corner of a 3D view in [this post](https://discourse.slicer.org/t/angles-measurement-in-3d-view/24435/3).

---

<div class="post-metadata">

**Author:** ![learn\_shape](https://avatars.discourse-cdn.com/v4/letter/l/35a633/32.png) [@learn\_shape](https://discourse.slicer.org/u/learn_shape)\
**Post date:** [March 26, 2024, 12:31am UTC](https://discourse.slicer.org/t/how-do-i-get-the-real-time-angle-of-a-3d-image-as-shown-in-the-figure/21923/12 "2024-03-26T00:31:19Z")

</div>

hi, i need your help. 来自一个学习者
