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">https://docs.google.com/file/d/0BzrUJhUyClc8WHh3V2gtRFlIMlE/edit</a></div>
<div><br></div><div>Best Regards</div><div><br></div><div>Samuel<br><br><div class="gmail_quote">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>
<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 class="HOEnZb"><font color="#888888"><br>
<br>Pat</font></span><div class="HOEnZb"><div class="h5"><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><br></div>