Getting slice Z-coordinate

133 views
Skip to first unread message

Kobus Botha

unread,
Jan 22, 2015, 2:03:29 AM1/22/15
to pinnacl...@googlegroups.com
Good day

I need to do a script that will add the Linac couch as a structure. The couch shape is not regular and I thus need to determine which part of the couch is at each slice.

I need to loop through each slice and do a calculation using the Z-coordinate of the slice, but I cannot seem to get the Z-coordinate of the slice. 

I have tried using "SlicePosition"

Store .FloatAt .SliceZ = ViewWindowList .Current .SlicePosition;

and also "ZCoord"

Store .FloatAt .SliceZ = ViewWindowList .Current .ZCoord;

But even though it seems to be looping through the slices the value for SliceZ is always 0.

Any help will be appreciated.

Kind regards.
Kobus

Jacky Luo

unread,
May 11, 2022, 1:57:11 AM5/11/22
to pinnacle3-users
Hi Kobus,

I met the same problem as you. Did you get this solved? I'd like to have the Z-coordination of each slice, such as 0.2cm, 0.4cm..... rather than slice number. I couldn't get it. It will be much appreciated if you can share your experience!

All the best,
Jie

Bjørne Riis

unread,
May 14, 2022, 6:23:22 AM5/14/22
to pinnacl...@googlegroups.com
Hello,

Maybe this will help:

Voxelsize (Slice thickness) = VolumeList.#"#0".VoxelSize.Z;
Start Value = VolumeList.#"#0".Start.Z;
Current Slice = ViewWindowList.Current.SliceNumber;
Number of Slices = VolumeList .Current.Dimension.Z;

Best regards
Bjørne


--
--
You received this message because you are subscribed to the Google
Groups "pinnacle3-users" group.
To post to this group, send email to pinnacl...@googlegroups.com
To subscribe to this group, send email to
pinnacle3-us...@googlegroups.com
To unsubscribe from this group, send email to
pinnacle3-use...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/pinnacle3-users?hl=en

---
You received this message because you are subscribed to the Google Groups "pinnacle3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pinnacle3-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pinnacle3-users/946a808f-c141-4789-8fae-337ef141f3b0n%40googlegroups.com.


--
                                                                                                                                                                                   

Dipl.-Ing. Bjørne Riis
Medizinphysik-Experte


curavid strahlentherapie | radiologie
Paul Ehrlich Straße 1-3
23562 Lübeck
Tel +49 (451) 889 119 0240
Fax +49 (451) 889 119 056
b.r...@curavid.de
www.curavid.de

Amtsgericht Kiel: PR 284 KI
Strahlentherapeutisch-radiologische Partnerschaft Curavid Lübeck
Sitz der Gesellschaft: Paul-Ehrlich-Strasse 1-3, 23562 Lübeck

Zweigstellen in Lübeck:
MGZ im Hochschulstadtteil
FAZ in den Sana Kliniken

Diese Nachricht (inklusive aller Anhänge) ist vertraulich. Sie darf ausschließlich durch den vorgesehenen Empfänger und Adressaten gelesen, kopiert oder genutzt werden. Sollten Sie diese Nachricht versehentlich erhalten haben, bitten wir, den Absender (durch Antwort-E-Mail) hiervon unverzüglich zu informieren und die Nachricht zu löschen.Jede unerlaubte Nutzung oder Weitergabe des Inhalts dieser Nachricht, sei es vollständig oder teilweise, ist unzulässig.

Jianjie Luo (Nepean Blue Mountains LHD)

unread,
May 15, 2022, 10:11:01 PM5/15/22
to pinnacl...@googlegroups.com

Hi Bjørne,

 

Thank you for your help. This information is quite useful to me. We still have some other issues to get the position in cm.

 

For some cases, we have one image dataset with combined thickness. So we may have 3 No. 1 slices and Voxel size some are 2mm and Others are 1mm and continue 2mm again. This makes me difficult to use VoxelSize.Z*slice No. to find position in cm.

 

I do appreciate your response. J

 

All the best,

Jie

 

 

From: pinnacl...@googlegroups.com [mailto:pinnacl...@googlegroups.com] On Behalf Of Bjørne Riis
Sent: Saturday, 14 May 2022 8:23 PM
To: pinnacl...@googlegroups.com
Subject: Re: [p3rtp] Re: Getting slice Z-coordinate

 

You don't often get email from b.r...@curavid.de. Learn why this is important



Amtsgericht Kiel: PR 284 KI
Strahlentherapeutisch-radiologische Partnerschaft Curavid Lübeck
Sitz der Gesellschaft: Paul-Ehrlich-Strasse 1-3, 23562 Lübeck

Zweigstellen in Lübeck:
MGZ im Hochschulstadtteil
FAZ in den Sana Kliniken

Diese Nachricht (inklusive aller Anhänge) ist vertraulich. Sie darf ausschließlich durch den vorgesehenen Empfänger und Adressaten gelesen, kopiert oder genutzt werden. Sollten Sie diese Nachricht versehentlich erhalten haben, bitten wir, den Absender (durch Antwort-E-Mail) hiervon unverzüglich zu informieren und die Nachricht zu löschen.Jede unerlaubte Nutzung oder Weitergabe des Inhalts dieser Nachricht, sei es vollständig oder teilweise, ist unzulässig.

--

--
You received this message because you are subscribed to the Google
Groups "pinnacle3-users" group.
To post to this group, send email to pinnacl...@googlegroups.com
To subscribe to this group, send email to
pinnacle3-us...@googlegroups.com
To unsubscribe from this group, send email to
pinnacle3-use...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/pinnacle3-users?hl=en

---
You received this message because you are subscribed to the Google Groups "pinnacle3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pinnacle3-use...@googlegroups.com.


This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender.

Views expressed in this message are those of the individual sender, and are not necessarily the views of NSW Health or any of its entities.

Reply all
Reply to author
Forward
0 new messages