Hi alaamegawer,<br><br>That doesn'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"><<a href="mailto:alaamegawer@yahoo.com" target="_blank">alaamegawer@yahoo.com</a>></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 = "";<br>
write_conversion = "";<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'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>
><br>
> Hi alaamegawer,<br>
><br>
> It's your ".img" image an Analyze or Nifti image ?<br>
><br>
> If so, then the answer is:<br>
> yes, you can read it with ITK.<br>
><br>
><br>
> It you have a pair:<br>
><br>
> image.img<br>
> image.hdr<br>
><br>
><br>
> Then pass the "image.hdr" filename as input to<br>
> the itk::ImageFileReader, and it should be able<br>
> to read the image from there.<br>
><br>
><br>
> Luis<br>
><br>
><br>
> ------------------------------<br>
> On Mon, May 28, 2012 at 5:38 PM, alaamegawer <<a href="mailto:alaamegawer@yahoo.com">alaamegawer@yahoo.com</a>><br>
> wrote:<br>
><br>
>><br>
>><br>
>><br>
>> How are you everyone? i wanna read *.img and .its header using itk .<br>
>> please tell me how? if you can.<br>
>><br>
>><br>
>> thanks in advance<br>
>><br>
>><br>
><br>
</div></div><div class="im HOEnZb">> _____________________________________<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>
><br>
><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>