<div dir="ltr"><div><div><div>Hello Kris,<br><br></div>ITK does not expose the third party libraries it uses in its Python wrapping. If you are trying to reimplement this nice insight journal paper in Python, you may want to install GDCMPython and use both ITK and gdcm, however you may have to duplicate the memory (load your DICOM once with each library). If you are trying to write some Python code that uses this C++ implementation, you could convert this filter into an ITK remote module [1][2] and wrap that module in Python.<br></div>Hope this helps,<br><br></div>François<br><div><div><br>[1] <a href="https://itk.org/ITKSoftwareGuide/html/Book1/ITKSoftwareGuide-Book1ch9.html#x48-1460009">https://itk.org/ITKSoftwareGuide/html/Book1/ITKSoftwareGuide-Book1ch9.html#x48-1460009</a><br>[2] <a href="https://github.com/InsightSoftwareConsortium/ITKModuleTemplate">https://github.com/InsightSoftwareConsortium/ITKModuleTemplate</a><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 18, 2017 at 1:55 PM, Kris Vorren <span dir="ltr"><<a href="mailto:kris.vorren@duke.edu" target="_blank">kris.vorren@duke.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
Hello,
<div><br>
</div>
<div>I am trying to load DICOMRT structure data into a tbd ITK class via a python script. I found some <a href="http://www.insight-journal.org/browse/publication/887" target="_blank">useful C++ code</a> by Jason Dowling that extracts contours from DICOMRT and draws them on
 the corresponding image data. I’ve managed to get this code to work on my own DICOM data. While trying to port sections of this code to python, I realized that Jason was directly instantiating GDCM classes to access the structure data. This is where I got
 stuck.</div>
<div><br>
</div>
<div>My install of ITK used the built-in GDCM library, and it does’t appear that Python wrappings for GDCM were built. Is there a way to build GDCM python wrappers in ITK? I couldn’t find a CMAKE flag for it. Would it be simpler to just build GDCM separately,
 rebuild ITK setting the system GDCM flag, and then import GDCM into Python?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>-Kris</div>
</div>

<br>______________________________<wbr>_______<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_<wbr>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>