[Dcmlib] DocEntry offset bug?
Benoit Regrain
benoit.regrain at creatis.insa-lyon.fr
Fri Jun 10 10:47:51 CEST 2005
Hi,
In the Dicom norm, a Dicom file is composed by some entries. Each entry
has an 'header' (containing group, element, size, etc.) and datas.
The DocEntry::GetOffset() points to the beginning of the entry's datas.
The read made before setting the entry's offset is only to read the entry's
header.
Cheers
Benoit Regrain
----- Original Message -----
From: <dqqiu at hkusua.hku.hk>
To: <dcmlib at creatis.insa-lyon.fr>
Sent: Friday, June 10, 2005 9:32 AM
Subject: [Dcmlib] DocEntry offset bug?
>
>
> Dear All,
>
> I'm trying to write a programm to create DICOMDIR for dicom images. I need
> to
> use the offset of a data element, but I found that the
> DocEntry::GetOffset()
> actually point to the start of next data element rather than itself. After
> exploring the source code, I found that in Document::GetNextEntry the file
> pointer position after rather than before the reading was passed to
> SetOffset(). So I changed to passed the file pointer position before
> reading to
> the function, but the library doesn't work. I think there are somewhere
> else in
> the code knows the actual meaning of GetOffset,so I think the logic is
> designed. Any comment on this behavior?
>
> Regards,
> Deqiang Qiu
>
> _______________________________________________
> Dcmlib mailing list
> Dcmlib at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
More information about the Dcmlib
mailing list