[Insight-users] how to write mhd ?

Oleksandr Dzyubak adzyubak at gmail.com
Tue Jun 2 10:58:23 EDT 2009


You have 16 bit pixel width that corresponds to the integral type "short".
Thus as ElementType you have to use a type short (or unsigned short).

Good luck,

Alex


x0_y0_0 wrote:
>
> hi,everyone,
> I have a RAW data of MR image,and its format is 256*256*256, with 
> 16bits stored and 12bits effective. I want to write a mhd/mha file for 
> it .I tried to write it ,but it was wrong.
> NDims = 3
> ElementByteOrderMSB = False
> ElementSpacing = 0.36 0.36 0.5
> DimSize = 256 256 256
> ElementType = MET_UCHAR
> Offset = 0 0 0
> ElementDataFile = patient.raw
> could you tell me to I write?
> regards,
> mexiao
>
>
> ------------------------------------------------------------------------
> ÒµÎñ¶©µ¥Á÷ʧÔõô°ì£¿ <http://qiye.163.com/?ft=1>
> ------------------------------------------------------------------------
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> 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
>   



More information about the Insight-users mailing list