[Insight-users] Error reading file MHD

Bill Lorensen bill.lorensen at gmail.com
Thu Jun 4 13:15:22 EDT 2009


If your data is 2 bytes per pixel, then the type should be USHORT.
UINT pixels are 4 bytes per pixel. Change MET_UINT to MET_USHORT.

On Thu, Jun 4, 2009 at 12:48 PM, Reinaldo <rheineo at gmail.com> wrote:
> Hi,
>
> I am reading a file MHD which contains information of an image of raw data,
> the raw image has a size of 500x500, if then multiply the result by two
> gives me half of what it should read in the program.
>
> example:
>
> 500 * 500 = 250 000
> 250 000 * 2 = 500 000
>
> the error is:
>
> MetaImage: M_ReadElements: data not read completely
> ideal = 1 000 000  : actual = 500 000
>
> this is the onfiguration of file mhd
>
> NDims = 2
> DimSize = 500 500
> ElementSpacing = 1 1
> ElementByteOrderMSB = false
> ElementType = MET_UINT
> ElementDataFile = t02.raw
>
> thanks for the cooperation.
>
>
> --
> REINALDO
>
> _____________________________________
> 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