<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 17, 2014 at 5:07 PM, Derek Magee <span dir="ltr"><<a href="mailto:D.R.Magee@leeds.ac.uk" target="_blank">D.R.Magee@leeds.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="EN-GB" link="blue" vlink="purple"><div><p class="MsoNormal">
<span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">So, the answer is “no you can’t” I think, which leads me on to two more questions:<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> </span></p>
</div></div></blockquote><div><br></div><div>"Yes, you can!". :-). It may take a little effort, though...</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div lang="EN-GB" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u></span></p><p style="margin-left:18pt"><u></u><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span>1)<span style="font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'"> </span></span></span><u></u><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">My current workaround is to manually remove itkopenjpeg from the linker by modifying my CMake thus:<u></u><u></u></span></p>
<p style="margin-left:18pt"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">message("ITK Libs: ${ITK_LIBRARIES}")<u></u><u></u></span></p>
<p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">#target_link_libraries(IServer ${ITK_LIBRARIES})<u></u><u></u></span></p>
<p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">target_link_libraries(IServer "what is printed out, but removing itkopenjpeg") <u></u><u></u></span></p>
<p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">As I know if I don’t do this it causes openslide (which uses the system openjpeg) to crash, I’m assuming the reverse is true for ITK. Does anyone know what functionality uses openjpeg/jpeg2000? (i.e. what file formats to avoid for now!)</span></p>
</div></div></blockquote><div><br></div><div>GDCM Image IO uses openjpeg/jpeg2000. You can manually specify the ITK modules needed and exclude GDCM [1]. </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div lang="EN-GB" link="blue" vlink="purple"><div><p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p><p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p style="margin-left:18pt"><u></u><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span>2)<span style="font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'"> </span></span></span><u></u><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Is this an issue with openslide or ITK? (“</span>The current version of OpenJPEG needs to updated to be closer to upstream” is a bit ambiguous and could mean a) ITK only works with (an) old version(s) of openjpeg, b) ITK works with a hacked version of openjpeg, c) Something needs updating in openjpeg as it is “broken” ). And, should I raise an issue with the appropriate developers? (If so how?)</p>
</div></div></blockquote><div>ITK works with an old, hacked version of OpenJPEG. Brian Helba (in CC) is working on updating the version and going towards vanilla upstream. Collaboration with him would be the best long term solution.</div>
<div><br></div><div>Thanks,</div><div>Matt</div><div> </div><div><br></div><div>[1] <a href="http://www.kitware.com/blog/home/post/557">http://www.kitware.com/blog/home/post/557</a></div><div><br></div></div></div></div>