<div dir="ltr">Thanks all. I made a mistake in the previous: I used ITK 3.20. <div><br></div><div>I will make one last attempt to get the source code from the publication up and running by compiling on an older Ubuntu workstation. I'll let you know how it goes. <br><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 21, 2016 at 4:50 PM, Dženan Zukić <span dir="ltr"><<a href="mailto:dzenanz@gmail.com" target="_blank">dzenanz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:verdana,sans-serif;font-size:small">Hi Amber,</div><div style="font-family:verdana,sans-serif;font-size:small"><br></div><div style="font-family:verdana,sans-serif;font-size:small">what you can try to do is use <a href="http://sourceforge.net/projects/itk/files/itk/3.20/InsightToolkit-3.20.1.tar.gz/download" target="_blank">ITK 3.20.1</a>, which is much more similar to v3.10 than ITK 4 is. Another solution for one-off conversion is usage of <a href="http://slicerrt.github.io/" target="_blank">SlicerRT</a>.</div><div style="font-family:verdana,sans-serif;font-size:small"><br></div><div style="font-family:verdana,sans-serif;font-size:small">Regards,</div><div style="font-family:verdana,sans-serif;font-size:small">Dženan</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_4635878084812386538h5">On Mon, Nov 21, 2016 at 12:17 PM, Amber Simpson <span dir="ltr"><<a href="mailto:simpsona@gmail.com" target="_blank">simpsona@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_4635878084812386538h5"><div dir="ltr"><div>Hi All,</div><div><br></div><div>I have 200 images and segmented masks in MHD format that I would like to export to DICOM RT for sharing on The Cancer Imaging Archive. There is a publication that covers this topic, but the code appears to be restricted to ITK 3.10. The issues I encountered while compiling on Ubuntu 16.04 and OS X 10.9.5 are detailed below.</div><div><br></div><div>The paper and source code:</div><div><a href="http://www.insight-journal.org/browse/publication/316" target="_blank">http://www.insight-journal.org<wbr>/browse/publication/316</a> </div><div><br></div><div>Any help would be greatly appreciated. I'm open to other approaches as well.</div><div><br></div><div>Thanks,</div><div>Amber</div><div><br></div><div><br></div><div><br></div><div>---------------------</div><div><br></div><div><br></div><div>Compile error on the RTSTRUCT code with ITK 4.10:</div><div><br></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(52,189,38)"><span style="color:rgb(0,0,0)">[ 50%] </span>Building CXX object CMakeFiles/export2RTSTRUCT.dir<wbr>/export2RTSTRUCT.cxx.o</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo">In file included from /Users/simpsonl/Dropbox/Liver/<wbr>src/RTSTRUCT/export2RTSTRUCT.c<wbr>xx:8:</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><b>/Users/simpsonl/Dropbox/Liver/<wbr>src/RTSTRUCT/itkRTSTRUCTIO.h:2<wbr>8:10: </b><span style="color:rgb(195,55,32)"><b>fatal error: </b></span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><b> 'gdcmSeqEntry.h' file not found</b></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo">#include "gdcmSeqEntry.h"</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(52,189,38)"><b> ^</b></p></div><div><br></div><div>There is a bug report discussed here:</div><div><a href="http://public.kitware.com/pipermail/insight-users/2009-April/029900.html" target="_blank">http://public.kitware.com/pipe<wbr>rmail/insight-users/2009-April<wbr>/029900.html</a><br></div><div><br></div><div><br></div><div>The error is apparently solved by reverting to ITK 3.10. Unfortunately, ITK 3.10 is not compiling on either workstation. This is the compile error with ITK 3.10 on OS X (Ubuntu was similarly problematic):</div><div><br></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><b>/Applications/Xcode.app/Conten<wbr>ts/Developer/Toolchains/XcodeD<wbr>efault.xctoolchain/usr/bin/../<wbr>include/c++/v1/cmath:668:1: note: </b></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"> candidate function</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo">abs(long double __x) _NOEXCEPT {return fabsl(__x);}</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(52,189,38)"><b>^</b></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo">27 warnings and 4 errors generated.</p></div><div><br></div><div>This is apparently solvable with ITK 4: <br></div><div><br></div><div><a href="https://itk.org/pipermail/insight-users/2015-March/051696.html" target="_blank">https://itk.org/pipermail/insi<wbr>ght-users/2015-March/051696.ht<wbr>ml</a></div><div><br></div><div>and the cycle continues ...</div><div><br></div><div><br></div><div><br></div></div>
<br></div></div>______________________________<wbr>_________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org" target="_blank">Community@itk.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/community" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/community</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div></div>