[Insight-users] how can i read *.img dataset using itk

alaamegawer alaamegawer at yahoo.com
Wed May 30 04:02:37 EDT 2012


yes it seems that , I  want to customized it to match standard . but
unfortunately i don't know the standard. so can you send me any document
explain standard.


Alaa

  

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

-- 
View this message in context: http://old.nabble.com/how-can-i-read-*.img-dataset-using-itk-tp33921777p33930026.html
Sent from the ITK - Users mailing list archive at Nabble.com.



More information about the Insight-users mailing list