<div class="gmail_quote">Hello,<br><br>I'm a developer of a cross platform DICOM Viewer application. It uses Qt libraries ( version 4.5.0 ) for the GUI, itk to read the images (with GDCMIO precisely) and vtk to display them.<br>
<br>Until now, we were using itk 2.8.1 and all was quite fine. Now, we are looking forward to update the itk libraries to a more recent version but we have encountered a problem. We tried itk 3.10.1, and for some series of images, it gives an exception error when loading the files, and the data is not loaded in memory at all, so it's not possible to view any image.<br>
<br>We have written a litlle program to reproduce the problem. It is very simple, it declares the itk image format and the dicom reader, and tries to read the files contained in a folder the user has provided as an argument in the command line.<br>
First, we only wrote the piece of code that reads the files, but it gave no error or exception at all. <br>Later, we added the QApplication object in the main.cpp like you do in a typical Qt application. Then, when we run the program, the exception appeared again, so it seems there's some problem when using QApplication with this version of itk (3.10.1). <br>
<br>We also tried with an earlier version of itk and a later version. With the earlier (3.6.0) the problem doesn't appear, and with the later ( 3.14.0 ) it continues appearing.<br clear="all"><br>The exception message we get is the following:<br>
<br><b style="font-family:courier new,monospace">itk::ERROR: Image(0x9ae0b78): Bad direction, determinant is 0. Direction is 1 0 0<br>0 0 0<br>0 0 0</b><br><br>We tested this under a kubuntu 9.04<br><br></div><div class="gmail_quote">
You can download the source code of the program and additional data from <span class="Apple-style-span" style="font-family: Arial; font-size: 13px; white-space: pre; "><a href="http://www.box.net/shared/ctjvebgnr5">http://www.box.net/shared/ctjvebgnr5</a></span></div>
<div class="gmail_quote"><span class="Apple-style-span" style="font-size: 13px; "></span><span class="Apple-style-span" style="white-space: pre;"><br></span>All those files are compressed using gzip (bug.tar.gz) It contains the main.cpp to reproduce the problem, with the respective project file for qt (<a href="http://bug.pro">bug.pro</a>) and a folder with two dicom images that reproduces the problem. </div>
<div class="gmail_quote">
<br>To compile the program you will need qt 4.x libraries to be installed ( 4.5 preferably to better reproduce the problem ) and itk libraries too.<br><br>Follow this steps to get and run the executable:<br><br>1. qmake <a href="http://bug.pro" target="_blank">bug.pro</a> # generate the makefiles<br>
2. make debug # compile the program with debug info<br>3. ./bug-3.10.1 data/ # run the program, passing the directory containing the image data to load<br><br><br>It's a weird problem and we would like to know where is the problem exactly, because we don't know why is this error appearing when using the QApplication object.</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">Kind regards,<br><font class="Apple-style-span" color="#888888"><br></font></div><div class="gmail_quote"><font color="#888888">-- <br>Jesús Spínola
</font></div><br><br clear="all"><br>-- <br>Jesús Spínola<br>