<div dir="ltr">Yes, you can try something like this:<div><br></div><div>positionPath = vtkDICOMPython.vtkDICOMTagPath(</div><div>  vtkDICOMPython.DC.DetectorInformationSequence,</div><div>  0, # this is the index</div><div>  <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">vtkDICOMPython.DC.ImagePositionPatient)</span></div><div><br></div><div>positionValue = metadata.GetAttributeValue(positionPath)</div><div># check positionValue.GetNumberOfValues()</div><div># use positionValue.GetDouble(i) to get values 0, 1, and 2</div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 8, 2018 at 9:51 AM, Jojobus <span dir="ltr"><<a href="mailto:jojotranel@hotmail.com" target="_blank">jojotranel@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Many thanks for your answer. I tried your solution but "position" is<br>
returning [].<br>
<br>
I think that the cause might be the (0x0020,0x0032) tag<br>
(ImagePositionPatient) nested in (0x0054,0x0022) with SPECT images (whereas<br>
it is not the case with CT images, thus directly callable).<br>
<br>
By reading your documentation, the solution might be included with<br>
vtkDICOMPath, however, I don't know how to manage with it?<br>
<br>
Thanks again for your help,<br>
<div class="gmail-HOEnZb"><div class="gmail-h5"><br>
Jonathan<br></div></div></blockquote></div></div></div></div>