<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Pat, I had other question? Why did you build kiwi in different parts: one with the Mac terminal (where ves-ios-device and ves-ios-simulator are built) and the other with Xcode when you run and built the kiwi program? Are you able to compile everything only in Xcode or not? I am asking you this because I am trying to read the dicom file in a different way.</span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">The thing is when I included the header vtkDICOMImageReader.h in the vesKiwiDataLoader.cpp file from your project and compiled the files using the mac terminal I didn´t have any building errors. However now when I include the same header file in a .mm file which I created in a new project with the paths and libraries set correct, I am having building erros in files which belong to the c++ libraries from the iOS SDK (specifically stl_algobase.h and char_traits.h, I got semantic erros like undeclared identifier 'ostreambuf_iterator' ). </div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<font color="#222222" face="arial, sans-serif">Do you need to put the incude files in .cpp files and build them separately from the project?</font></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><font color="#222222" face="arial, sans-serif">Best Regards</font></div><br><div class="gmail_quote">
On Thu, Jul 26, 2012 at 4:51 PM, Pat Marion <span dir="ltr"><<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks, I received the data and I will take a look soon.  It's possible that VTK's DICOM reader is not a full featured DICOM reader, and it will be unable to read your data in full.  I'll give it a try.  Does this dataset contain a single image slice, or multiple slices?<span class="HOEnZb"><font color="#888888"><br>


<br>Pat</font></span><div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On Thu, Jul 26, 2012 at 4:25 PM, Samuel Valdes G. <span dir="ltr"><<a href="mailto:sovaldes@uc.cl" target="_blank">sovaldes@uc.cl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Dear Pat,<div><br></div><div>May be, I gave you a DICOM file really heavy. I found other one that is much smaller that the first one if you want to work with it. Here I attached the file<div><div><br><br><div class="gmail_quote">


On Thu, Jul 26, 2012 at 9:51 AM, Samuel Valdes G. <span dir="ltr"><<a href="mailto:sovaldes@uc.cl" target="_blank">sovaldes@uc.cl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes of course, I had troubles to send you the file via e-mail, because it was rejected by your server. Here I post a link where you can download the file<div>



<br></div><div><a href="https://docs.google.com/file/d/0BzrUJhUyClc8WHh3V2gtRFlIMlE/edit" target="_blank">https://docs.google.com/file/d/0BzrUJhUyClc8WHh3V2gtRFlIMlE/edit</a></div>
<div><br></div><div>Best Regards</div><span><font color="#888888"><div><br></div></font></span><div><span><font color="#888888">Samuel<br><br></font></span><div class="gmail_quote"><div>
On Thu, Jul 26, 2012 at 12:37 AM, Pat Marion <span dir="ltr"><<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>></span> wrote:<br>
</div><div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Perhaps the reader is having trouble reading your file.  Is it possible to send me test.dcm so I can try?<span><font color="#888888"><br>




<br>Pat</font></span><div><div><br><br><div class="gmail_quote">On Wed, Jul 25, 2012 at 8:23 PM, Samuel Valdes G. <span dir="ltr"><<a href="mailto:sovaldes@uc.cl" target="_blank">sovaldes@uc.cl</a>></span> wrote:<br>






<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">1. First I went to the vesKiwiDataLoader.cpp file and below the line 192 I add this code</div>






<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
<br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><p>  else if (this->hasEnding(filename, "dcm"))</p><p>  {</p><p>      vtkSmartPointer<vtkDICOMImageReader> reader = vtkSmartPointer<vtkDICOMImageReader>::New();</p>







<p>      reader->SetFileName(filename.c_str());</p><p>      //return 0;</p><p>      this->datasetFromAlgorithm(reader);</p><p>  } </p><p>2. Then I added in the include area the vtkDICOMImageReader.h. In the line 27, I put</p>







<p></p><p>#include <vtkDICOMImageReader.h></p><p>3. Afterwards I add DICOM file to the data folder (located in /path/to/VES/Apps/iOS/Kiwi/Kiwi/Data) and I drag it to my project. The name of my file is test.dcm</p><p>







4. The I went to the vesKiwiViewer.cpp file and I add an option to open my DICOM file in the dataset. I wrote in the line 192</p><p></p><p>this->addBuiltinDataset("Test", "test.dcm"); </p><p>5. After that I compiled again in the mac terminal the ves-ios-simulator and ves-ios-device folders (make ves-ios-simulator and make ves-ios-device) in the /path/to//VES/Apps/iOS/CMakeBuild/build/CMakeExternals/Build path and the I compiled all the kiwi project again.</p>







<p>Now the problem that I am having is that I am having a <u>memory acces problem</u> when I tried to open the new file in the simulator. As I checkes, the problem is related with the <b>datasetFromAlgorithm,</b> which is not letting me to render the DICOM image. The error that I am having is in the vtkPolyData.h at the line 78, when the program is trying to convert de DICOM dataset to a vtkPolyData.</p>







<p>Do you have any solution for this?</p><p>Best Regards,</p><p>Samuel</p></div><br></div><div><div><div class="gmail_quote">On Wed, Jul 25, 2012 at 8:22 PM, Samuel Valdes G. <span dir="ltr"><<a href="mailto:valdesgutierrez@gmail.com" target="_blank">valdesgutierrez@gmail.com</a>></span> wrote:<br>







<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So I did this<div><br></div><div>1. First I went to the vesKiwiDataLoader.cpp file and below the line 192 I add this code</div>







<div><br></div><div>







<p>  <span>else</span> <span>if</span> (<span>this</span>->hasEnding(filename, <span>"dcm"</span>))</p>
<p>  {</p>
<p>      vtkSmartPointer<vtkDICOMImageReader> reader = vtkSmartPointer<vtkDICOMImageReader>::New();</p>
<p>      reader->SetFileName(filename.c_str());</p>
<p><span>      </span>//return 0;</p>
<p>      <span>this</span>->datasetFromAlgorithm(reader);</p>
<p>  } </p><p>2. Then I added in the include area the vtkDICOMImageReader.h. In the line 27, I put</p><p>







</p><p><span>#include </span><vtkDICOMImageReader.h></p><p>3. Afterwards I add DICOM file to the data folder (located in /path/to/VES/Apps/iOS/Kiwi/Kiwi/Data) and I drag it to my project. The name of my file is test.dcm</p>








<p>4. The I went to the vesKiwiViewer.cpp file and I add an option to open my DICOM file in the dataset. I wrote in the line 192</p><p>







</p><p><span>this</span>->addBuiltinDataset(<span>"Test"</span>, <span>"test.dcm"</span>); </p><p>5. After that I compiled again in the mac terminal the ves-ios-simulator and ves-ios-device folders (make ves-ios-simulator and make ves-ios-device) in the /path/to//VES/Apps/iOS/CMakeBuild/build/CMakeExternals/Build path and the I compiled all the kiwi project again.</p>








<p>Now the problem that I am having is that I am having a <u>memory acces problem</u> when I tried to open the new file in the simulator. As I checkes, the problem is related with the <b>datasetFromAlgorithm,</b> which is not letting me to render the DICOM image. The error that I am having is in the vtkPolyData.h at the line 78, when the program is trying to convert de DICOM dataset to a vtkPolyData.</p>








<p>Do you have any solution for this?</p><p>Best Regards,</p><p>Samuel</p><p></p><p></p></div><div><div><div><div class="gmail_quote">On Wed, Jul 25, 2012 at 1:42 PM, Pat Marion <span dir="ltr"><<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>></span> wrote:<br>








<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Samuel,<br><br>The KiwiViewer app for Android and iPad does not have support for DICOM, however, the VTK library that the app is based on does have DICOM I/O support, so it should be straightforward to add a DICOM reader to KiwiViewer.  In theory, it should work with just a small amount of additional code, but I have not tried it.<br>










<br>If you decide to try yourself, first make sure you can build and run KiwiViewer on your device.  Next, edit the file src/kiwi/vesKiwiDataLoader.cpp.  Search for vtkXMLImageDataReader and you'll see the code that handles vtk image files (.vti extension.)  You could insert similar code here to read DICOM files using the vtkDICOMImageReader.<br>










<br>Pat<br><br><div class="gmail_quote"><div><div>On Tue, Jul 24, 2012 at 7:35 PM, Samuel Valdes G. <span dir="ltr"><<a href="mailto:sovaldes@uc.cl" target="_blank">sovaldes@uc.cl</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>

<span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Had anyone had succes loading a DICOM file through Kiwiviewr? IS there any tutorial for doing that?</span><br style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif" clear="all">











<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br></div><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Regards</span><br style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">











<br style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Samuel Valdés G.</span>
<br></div></div>_______________________________________________<br>
Ves mailing list<br>
<a href="mailto:Ves@public.kitware.com" target="_blank">Ves@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ves" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ves</a><br>
<br></blockquote></div><br>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br>Atte<br><br>Samuel Valdés G.<br>
</font></span></div>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div></div></div><br></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br>
</div></div></blockquote></div><br>