Hi,<br><br>The ics header gives you the information for a basic RAW reader:<br>- Extent,<br>- Spacing<br>- Orientation<br>- ...<br><br>In Python you can parse the ics header, set a vtkImageReader with the parameters and set the filename to blabla.ids<br>
<br>I can send cxx classes that you should be able to wrap in python. These classes implement a vtkICSImageReader<br><br>Best regards,<br>Jerome<br><br><div class="gmail_quote">2009/11/4 Alexander Richter <span dir="ltr">&lt;<a href="mailto:Alexander.Richter@student.fh-kiel.de">Alexander.Richter@student.fh-kiel.de</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">








<div link="blue" vlink="purple" lang="DE">

<div>

<p class="MsoNormal">Hi there,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"><span lang="EN-US">I am opening *.mhd and *.dcm (DICOM) files
with vtkMetaImageReader and vtkDICOMImageReader. Everything is working
fine.  Now I am trying to open an *.ics file which is very similar to the
*.mhd file. Both header files are filled with some meta information about the stored
image data. The *.mhd header data looks like this: </span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">Param=Value (separated by =). </span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">But the *.ics file looks a bit different: </span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">Param   Value (separated by a
tab).</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">As I read and hopefully understood it’s
not possible to use vtkMetaImageReader here because of the given format. Is
there a possibility to interprete the *.ics header file with a vtk-class ? And
if not: Has anyone some ideas how to solve this problem ?</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">Thankful for every answer</span></p>

<p class="MsoNormal"><span lang="EN-US">Alex</span></p>

</div>

</div>


<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>