<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/<wbr>Contents/Developer/Toolchains/<wbr>XcodeDefault.xctoolchain/usr/<wbr>bin/../include/c++/v1/cmath:<wbr>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/<wbr>insight-users/2015-March/<wbr>051696.html</a></div><div><br></div><div>and the cycle continues ...</div><div><br></div><div><br></div><div><br></div></div>