Thank you, I tried it...<br>But I havenot displayed this images. <br>I am using data from this web <br><a href="http://www.cma.mgh.harvard.edu/ibsr/data.html">http://www.cma.mgh.harvard.edu/ibsr/data.html</a><br><br>And I this code... <br>
<br><span style="font-family: courier new,monospace;">        typedef itk::ImageSeriesReader&lt; TImageType &gt;  ReaderType;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        ReaderType::Pointer reader = ReaderType::New();</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        reader-&gt;SetImageIO(itk::GDCMImageIO::New());</span> // it works for DICOM image series, but not for *.img series :(<br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        reader-&gt;SetFileNames( this-&gt;filesString );</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        try</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">            reader-&gt;Update();</span> // this crach, when I am trying to load *.img series :(<br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">            cout&lt;&lt;&quot;OK&quot;&lt;&lt;endl;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        }</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        catch(...)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        {</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">            return false;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        }</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        TImageTypePointer *Pout = (TImageTypePointer *)poutputImage;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        *Pout = reader-&gt;GetOutput();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        return true;</span><br>
<br>Do somebody know, where is the problem? <br>Thank you all very much<br><br><div class="gmail_quote">2011/4/18 Neil Panjwani <span dir="ltr">&lt;<a href="mailto:paniwani@gmail.com">paniwani@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">See Examples/IO/ImageSeriesReadWrite.cxx. More details can be found in the ITK Software Guide.<div><div></div><div class="h5">
<br><br><div class="gmail_quote">On Mon, Apr 18, 2011 at 2:01 PM, G G <span dir="ltr">&lt;<a href="mailto:greenlander1986@gmail.com" target="_blank">greenlander1986@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have one new questions,<br>What about loading *.img files as image series? It is same like *.dcm image series? Or something other? <br>


thanks a lot<div><div></div><div><br><br><div class="gmail_quote">2011/4/18 G G <span dir="ltr">&lt;<a href="mailto:greenlander1986@gmail.com" target="_blank">greenlander1986@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Oh then sorry for my stupid question :) I thought, that I have use special ITK class template... <br><div><div></div><div>



<br><div class="gmail_quote">2011/4/18 Neil Panjwani <span dir="ltr">&lt;<a href="mailto:paniwani@gmail.com" target="_blank">paniwani@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><a href="http://www.vtk.org/Wiki/ITK/Examples/IO/ImageFileReader" target="_blank">http://www.vtk.org/Wiki/ITK/Examples/IO/ImageFileReader</a><div>




<div></div><div><br><br><div class="gmail_quote">On Sun, Apr 17, 2011 at 7:25 PM, G G <span dir="ltr">&lt;<a href="mailto:greenlander1986@gmail.com" target="_blank">greenlander1986@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes I have found a lot of .img files and I would like to read it...<br>Is somewhere example?<div><div></div><div>

<br><br><div class="gmail_quote">2011/4/18 Neil Panjwani <span dir="ltr">&lt;<a href="mailto:paniwani@gmail.com" target="_blank">paniwani@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ITK can read ANALYZE files, which consist of .img and .hdr files. Do you have just .img?<br><br><div class="gmail_quote">







<div><div></div><div>On Sun, Apr 17, 2011 at 7:07 PM, G G <span dir="ltr">&lt;<a href="mailto:greenlander1986@gmail.com" target="_blank">greenlander1986@gmail.com</a>&gt;</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></div><div>Hi Can ITK read *.img files?  found a lot of this data type, but when i try to load in ITK-SNAP it crashed. <br>







Where can I find examples about this in ITK? <br>

Thanks a lot <br>
<br></div></div>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>