[Insight-users] reading dicom series by metaimageheader
Luis Ibanez
luis . ibanez at kitware . com
Thu, 25 Sep 2003 01:29:48 -0400
Hi Soumen,
I don't get why you are passing the name of one
of the dicom files as arguments to your program....
Shouldn't you be passing the filename of the
metaimage header that you created ?
Could you please post the code you are using
for reading the file ?
I assume that you are using the ImageFileReader<>
class....
Regards,
Luis
----------------------
Soumen Dey wrote:
> hi,
>
> I have tried to read a series of dicom files by using a metaimage header.
> My .mhd file looks like this...NDims = 3
> DimSize = 512 512 5
> ElementSpacing = 1 1 1
> Position = 0 0 0
> ElementByteOrderMSB = False
> ElementType = MET_UCHAR
> HeaderSize = -1
> ElementDataFile = LIST
> 1187920.dcm
> 1187938.dcm
> 1187956.dcm
> 1187974.dcm
> 1187992.dcm
>
> But running the program gives me following error messages...
> NDims required and not defined.
> MetaObject: Read: MET_Read Failed
> MetaImage: M_Read: Error parsing file
> MetaImage: Read: Cannot parse file
> NDims required and not defined.
> MetaObject: Read: MET_Read Failed
> MetaImage: M_Read: Error parsing file
> MetaImage: Read: Cannot parse file
> NDims required and not defined.
> MetaObject: Read: MET_Read Failed
> MetaImage: M_Read: Error parsing file
> MetaImage: Read: Cannot parse file
>
> I am invoking the program as follows...<program name> 1187920.dcm 1
> i.e i am giving the first file in series as imagefilename and 1 as slice
> number.
> Plz help me out by pointing out the problem. Is it there in invocation or
> in writting metheader.
> thenks for the help
> soumen
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk . org
> http://www . itk . org/mailman/listinfo/insight-users
>