[Insight-developers] GDCM problems with created dicom
Mathieu Malaterre
mathieu.malaterre at kitware.com
Fri Dec 17 10:38:38 EST 2004
Lorensen, William E (Research) wrote:
> Mathieu,
> I am having trouble with dicom files that we are creating. We are reading
> dicoms, filtering them and creating new dicoms. We are passing the meta data
> from the input to the output unmodified.
>
> If I run the dicom3tools dcdump program it fails on an assertion
>
> dcdump 88_20_0.0625_1.dcm
> you get an error messages that includes the phrase
> Assertion `bitsallocated <= bytesinword*8u' failed.
>
> I have tried to track things down further, and there is trouble in the
> 0x0002 area. I notice lots of FIXME comments in the gdcm code aroubd
> processing of the 0x0002 tags.
>
> I know this message is a bit cryptic, but I'm on travel trying to get this
> to work.
>
> Once I get back, I'll get you a sample file that is failing. I can force the
> fail if I run the dicomSeriesReadSeriesWrite example.
>
> Have you seen problems like this?
Unfortunately yes. There has been some mail on the gdcm mailing list
about this issue. e-film had also some trouble reading some DICOM imagea
produced by GDCM. It appears that the length of group 0x0002 was wrong.
The easy solution was simply to remove this tag from the output.
As a quick fix I can remove this tag also from itkGDCMImageIO, until
they rewrite the function that calculate the lenght of group 0x0002.
How does that sound ?
Mathieu
More information about the Insight-developers
mailing list