How obtain specific TAG (0008,0000)

818 views
Skip to first unread message

La Zonz'

unread,
Jan 9, 2013, 6:14:37 AM1/9/13
to dcm...@googlegroups.com
Hi,

I am trying to obtain this tag for remove it : (0008,0000) UL #   4, 1 IdentifyingGroupLength
My code :

File dcmFile = new File(finalFile);
final DicomInputStream in = new DicomInputStream(dcmFile);
DicomElement e = null;
DicomObject o = in.readDicomObject();
e = o.get(0x00080000);
if (e!=null){
  o.remove(0x00080000);
  System.out.println("(0008,0000) has been deleted");
}
dcmFile = new File(finalFile);
FileOutputStream fos = new FileOutputStream(f);
BufferedOutputStream bos = new BufferedOutputStream(fos);
DicomOutputStream dos = new DicomOutputStream(bos);
dos.writeDicomFile(o);
dos.close();
in.close();


In fact my problem is to acces TAG.
With in.readDicomObject() I have not  (0008,0000) in my DicomObject.
How could i do this?

thxs

Bradley Ross

unread,
Jan 9, 2013, 4:34:45 PM1/9/13
to dcm...@googlegroups.com
I don't believe that 0008,0000 is a Dicom tag.  It appears to be part of formatting of the file.  Was there a number between the UL and the # sign that would have been the length of group 8.  However, it apparently will appear in the listings of some of the programs that dump Dicom files.

La Zonz'

unread,
Jan 10, 2013, 5:08:42 AM1/10/13
to dcm...@googlegroups.com
Ok but my problem is when I send a dicom file with TransferSyntax : 1.2.840.10008.1.2 - Implicit VR Little Endian   to my PACS and I try to retrieve it, my file have some GroupLength TAG added.
(0008,0000) UL 310                                      #   4, 1 IdentifyingGroupLength
(0018,0000) UL 8                                        #   4, 1 AcquisitionGroupLength

(0020,0000) UL 176                                      #   4, 1 ImageGroupLength
(0028,0000) UL 190                                      #   4, 1 ImagePresentationGroupLength


With all other TransferSyntax there is no problem.

I don't understand.

Have you an idea to remove these tags ?

Arnold Maderthaner

unread,
Jan 10, 2013, 10:28:16 AM1/10/13
to dcm...@googlegroups.com
That tags just describe the length of the coming group so it shouldn't do anything to your application as those are standard tags.

La Zonz'

unread,
Jan 11, 2013, 8:33:40 AM1/11/13
to dcm...@googlegroups.com
In fact I send and retrieve my dicom file and made a cheksum for verify authenticity.
If GroupLength TAGs is present in my retrieve file, my checksum is different.

I have solve my problem with another soft (pixelmed) which can delete all GroupLength TAGs.

Arnold Maderthaner

unread,
Jan 11, 2013, 8:38:57 AM1/11/13
to dcm...@googlegroups.com
you shouldn't use md5sum for verifying the file as it won't work with most of vendors as everyone can add tags or use other things like padding bytes


Reply all
Reply to author
Forward
0 new messages