<div dir="ltr">Hi Rajesh,<div><br></div><div>With vtk-dicom and the vtkDICOMReader, it is possible to get the value of any DICOM tag as described here:</div><div><a href="http://dgobbi.github.io/vtk-dicom/doc/api/attributes.html" target="_blank">http://dgobbi.github.io/vtk-<wbr>dicom/doc/api/attributes.html</a><br></div><div><br></div><div>You can use vtk-dicom with any version of VTK from 5.10 through VTK 8. In VTK 7 and 8, you just have to set Module_vtkDICOM:BOOL=ON when you configure VTK with cmake.</div><div><br></div><div>The vtkDICOMReader is not to be confused with VTK's built-in vtkDICOMImageReader, which provides fewer options.</div><div><br></div><div>Cheers,</div><div> - David</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 27, 2017 at 6:10 PM, Ramamurthy, Rajesh (GE Global Research, US) <span dir="ltr"><<a href="mailto:ramamurr@research.ge.com" target="_blank">ramamurr@research.ge.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div class="m_1988387752639363662m_4358409986203232237WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">David,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Another follow-up question. In VTK7.1.1, is there a method to tell the slice location tag? I found other methods e.g. , for slice spacing but not slice location.
Or is there a function that returns all the tags, and we can get the information that way?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Rajesh<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> vtkusers [mailto:<a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.o<wbr>rg</a>]
<b>On Behalf Of </b>David Gobbi<br>
<b>Sent:</b> Sunday, August 27, 2017 3:30 PM<br>
<b>To:</b> Liu_tj<br>
<b>Cc:</b> vtkusers<br>
<b>Subject:</b> EXT: Re: [vtkusers] What ditermines whether the slice order should be reversed?<u></u><u></u></span></p><div><div class="m_1988387752639363662h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi Liu Peng,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">The vtkDICOMReader sorts according to the Image Plane Module:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="http://dicom.nema.org/MEDICAL/dicom/current/output/chtml/part03/sect_C.7.6.2.html" target="_blank">http://dicom.nema.org/MEDICAL/<wbr>dicom/current/output/chtml/par<wbr>t03/sect_C.7.6.2.html</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">That is, the slices are sorted in a manner such that the VTK image data has a right-handed coordinate system (called an RCS in the link above).<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Sorting the slices to get an RCS means that sometimes the slices will be sorted the same as the InstanceNumber, and sometimes they will be sorted opposite to InstanceNumber, depending on the order in which scanner ordered the slices.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">You can perform the sorting yourself by calling reader->SortingOff(). If Sorting is Off, the reader will take the slices in the same order as the vtkStringArray that you passed to reader->SetFileNames().<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">If you send me the block of code where you set up and call the reader, then I might be able to provide more help. Don't forget to also say what versions of VTK and vtk-dicom you are using.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Cheers,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> - David<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Sun, Aug 27, 2017 at 10:41 AM, Liu_tj <<a href="mailto:tjlp@netease.com" target="_blank">tjlp@netease.com</a>> wrote:<u></u><u></u></p>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I have a question about the DICOM slice order. I use the DICOM reader by David Gobbi to read the slice series to vtkImageData. And I found that the oder is the same as the order by DICOM instanceNumber tag. However, some doctors tell me
that the order should be reversed because the scan should start from head to foot.
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">@David, if I need to reverse, how to achieve that by your DICOM reader?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Liu Peng<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<p> <u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>
</blockquote></div><br></div></div>