Hi alaamegawer,<br><br>That doesn&#39;t look like a Nifti nor an Analyze header...<br><br>Where did you get the image file from ?<br><br><br>Google search for some of the header<br>entries leads to this message:<br><a href="http://mathforum.org/kb/message.jspa?messageID=945301">http://mathforum.org/kb/message.jspa?messageID=945301</a><br>
<br>
<br><br>    Luis<br><br><br><br>------------------------------------<br><div class="gmail_quote">On Mon, May 28, 2012 at 7:03 PM, alaamegawer <span dir="ltr">&lt;<a href="mailto:alaamegawer@yahoo.com" target="_blank">alaamegawer@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
thanks for your answer , yes i tried to do that but  i had exception handling<br>
so when i opened the header file i found it look like that<br>
<br>
        byte_order = 0;<br>
    read_conversion = &quot;&quot;;<br>
    write_conversion = &quot;&quot;;<br>
    t_dim = 0;<br>
    x_dim = 512;<br>
    y_dim = 512;<br>
    z_dim = 122;<br>
    datatype = 1;<br>
    bitpix = 16;<br>
    bytes_pix = 2;<br>
    vol_max = 0.000000;<br>
    vol_min = 0.000000;<br>
    t_pixdim = 0.000000;<br>
    x_pixdim = 0.086133;<br>
    y_pixdim = 0.086133;<br>
    z_pixdim = 0.299999;<br>
    t_start = 0.000000;<br>
    x_start = -22.006933;<br>
    y_start = -56.206932;<br>
    z_start = -19.799999;<br>
    z_time = 0.000000;<br>
    dim_units :<br>
    voxel_type :<br>
    id = 0;<br>
    vis_only = 0;<br>
    data_type :<br>
    vol_type :<br>
    db_name : PT1_FB_Plan<br>
    medical_record :<br>
    originator :<br>
     ......<br>
<br>
so i don&#39;t know what can i do to read it?<br>
<br>
thanks in advance<br>
<br>
Alaa<br>
<br>
<br>
</div></div><div class="HOEnZb"><div class="h5">Luis Ibanez wrote:<br>
&gt;<br>
&gt; Hi alaamegawer,<br>
&gt;<br>
&gt; It&#39;s your &quot;.img&quot; image an Analyze or Nifti image ?<br>
&gt;<br>
&gt; If so, then the answer is:<br>
&gt; yes, you can read it with ITK.<br>
&gt;<br>
&gt;<br>
&gt; It you have a pair:<br>
&gt;<br>
&gt;      image.img<br>
&gt;      image.hdr<br>
&gt;<br>
&gt;<br>
&gt; Then pass the &quot;image.hdr&quot; filename as input to<br>
&gt; the itk::ImageFileReader, and it should be able<br>
&gt; to read the image from there.<br>
&gt;<br>
&gt;<br>
&gt;      Luis<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt; On Mon, May 28, 2012 at 5:38 PM, alaamegawer &lt;<a href="mailto:alaamegawer@yahoo.com">alaamegawer@yahoo.com</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; How are you everyone? i wanna read *.img and .its header using itk .<br>
&gt;&gt; please tell me how? if you can.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; thanks in advance<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
</div></div><div class="im HOEnZb">&gt; _____________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;<br>
&gt;<br>
</div><span class="HOEnZb"><font color="#888888">--<br>
View this message in context: <a href="http://old.nabble.com/how-can-i-read-*.img-dataset-using-itk-tp33921777p33922414.html" target="_blank">http://old.nabble.com/how-can-i-read-*.img-dataset-using-itk-tp33921777p33922414.html</a><br>

</font></span><div class="HOEnZb"><div class="h5">Sent from the ITK - Users mailing list archive at Nabble.com.<br>
<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<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.php" target="_blank">http://www.kitware.com/products/protraining.php</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>
</div></div></blockquote></div><br>