Pixel data sequence
Moderator: Moderator Team
Pixel data sequence
Hi All,
I have one image(DX modality) where there is side mark "R" on the image...When i am opening this image in my viewer, side mark "R" is not coming, but the same thing is coming in ezDicom and eFIlm....
Pixel data is coming in sequence tag... following is the dcmdump :
(0054,0220) SQ (Sequence with explicit length #=1) # 72, 1 ViewCodeSequence
(fffe,e000) na (Item with explicit length #=4) # 64, 1 Item
(0008,0000) UL 52 # 4, 1 IdentifyingGroupLength
(0008,0100) SH [R-10214] # 8, 1 CodeValue
(0008,0102) SH [SNM3] # 4, 1 CodingSchemeDesignator
(0008,0104) LO [postero-anterior] # 16, 1 CodeMeaning
(fffe,e00d) na (ItemDelimitationItem for re-encoding) # 0, 0 ItemDelimitationItem
(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem
(2050,0000) UL 16 # 4, 1 PresentationLUTGroupLength
(2050,0020) CS [IDENTITY] # 8, 1 PresentationLUTShape
(7fe0,0000) UL 6830106 # 4, 1 PixelDataGroupLength
(7fe0,0010) OB (PixelSequence #=2) # u/l, 1 PixelData
(fffe,e000) pi 00\00\00\00 # 4, 1 Item
(fffe,e000) pi ff\d8\ff\e0\00\10\4a\46\49\46\00\01\01\00\00\01\00\01\00\00\ff\c3... # 6830066, 1 Item
(fffe,e0dd) na (SequenceDelimitationItem) # 0, 0 SequenceDelimitationItem
In following way, i am reading the dicom file :
if(dataset->findAndGetUint16Array(DCM_PixelData,(const Uint16 *&)pUINT16).bad() || pUINT16 == NULL)
{
}
Can anyone suggest me how to get this side mark on image...
Thanks in advance !!!!
Thanks,
Angad Nath
I have one image(DX modality) where there is side mark "R" on the image...When i am opening this image in my viewer, side mark "R" is not coming, but the same thing is coming in ezDicom and eFIlm....
Pixel data is coming in sequence tag... following is the dcmdump :
(0054,0220) SQ (Sequence with explicit length #=1) # 72, 1 ViewCodeSequence
(fffe,e000) na (Item with explicit length #=4) # 64, 1 Item
(0008,0000) UL 52 # 4, 1 IdentifyingGroupLength
(0008,0100) SH [R-10214] # 8, 1 CodeValue
(0008,0102) SH [SNM3] # 4, 1 CodingSchemeDesignator
(0008,0104) LO [postero-anterior] # 16, 1 CodeMeaning
(fffe,e00d) na (ItemDelimitationItem for re-encoding) # 0, 0 ItemDelimitationItem
(fffe,e0dd) na (SequenceDelimitationItem for re-encod.) # 0, 0 SequenceDelimitationItem
(2050,0000) UL 16 # 4, 1 PresentationLUTGroupLength
(2050,0020) CS [IDENTITY] # 8, 1 PresentationLUTShape
(7fe0,0000) UL 6830106 # 4, 1 PixelDataGroupLength
(7fe0,0010) OB (PixelSequence #=2) # u/l, 1 PixelData
(fffe,e000) pi 00\00\00\00 # 4, 1 Item
(fffe,e000) pi ff\d8\ff\e0\00\10\4a\46\49\46\00\01\01\00\00\01\00\01\00\00\ff\c3... # 6830066, 1 Item
(fffe,e0dd) na (SequenceDelimitationItem) # 0, 0 SequenceDelimitationItem
In following way, i am reading the dicom file :
if(dataset->findAndGetUint16Array(DCM_PixelData,(const Uint16 *&)pUINT16).bad() || pUINT16 == NULL)
{
}
Can anyone suggest me how to get this side mark on image...
Thanks in advance !!!!
Thanks,
Angad Nath
Re: Pixel data sequence
Pixel data is coming as data type "OB" and we are using findAndGetUint16Array API to get the PIXEL DATA.... Is it correct ?
Thanks,
Angad Nath
Thanks,
Angad Nath
Re: Pixel data sequence
I think i have to use DcmPixelSequence() class to get the DcmElement...
Am i right ?
Thanks,
Angad Nath
Am i right ?
Thanks,
Angad Nath
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Pixel data sequence
If you want to access the compressed pixel data, read the following HOWTO. If you want to access the decompressed pixel data, you should register the appropriate decoder(s) and call chooseRepresentation(EXS_LittleEndianExplicit, ...) on the compressed dataset. Of course, using the DicomImage class would also help (with the decoders registered before loading an image).
Re: Pixel data sequence
Hi,
Thanks for your reply.
My problem is not how to read the compressed pixel data. For DX images, some side mark(label) like "R" is coming on the image. But when i am displaying this image in viewer, side marker(labels) are not coming. A black space is coming there.EZDicom is opening that image correctly with side markers on it....
I created the bmp file also using DicomImage Class. But in bmp file also, side markers are not coming....
Can you tell me in which tags these side markers are coming(either these values are coming in pixel data tag or there is some another tag like Laterality, Image Laterality etc). I changed the Laterality from "R" to "L", but after doing that also its showing "R" only in ezDicom.....Also if i change window level , window width in ezDicom for this image, these side markers are remaining constants.
I am sending the file to your email id(dicom@offis.de) for your reference.
Thanks in advance...
Angad Nath
Thanks for your reply.
My problem is not how to read the compressed pixel data. For DX images, some side mark(label) like "R" is coming on the image. But when i am displaying this image in viewer, side marker(labels) are not coming. A black space is coming there.EZDicom is opening that image correctly with side markers on it....
I created the bmp file also using DicomImage Class. But in bmp file also, side markers are not coming....
Can you tell me in which tags these side markers are coming(either these values are coming in pixel data tag or there is some another tag like Laterality, Image Laterality etc). I changed the Laterality from "R" to "L", but after doing that also its showing "R" only in ezDicom.....Also if i change window level , window width in ezDicom for this image, these side markers are remaining constants.
I am sending the file to your email id(dicom@offis.de) for your reference.
Thanks in advance...
Angad Nath
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Pixel data sequence
I checked the DICOM image: As far as I can see, there is no side marker on the image. There is only a strange box near the right shoulder.
Re: Pixel data sequence
yes, right...But when you open the same image in any another viewer(like ezDicom), "R" will come in this strange box....I don't understand how ezDicom is showing "R" on the image.....
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Pixel data sequence
Did you already check other DICOM viewer than ezDICOM? If not, please do so ...
Re: Pixel data sequence
yes its coming fine in osirix and efilm also....
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Pixel data sequence
Is the marker/label at the same position as the "box" when rendering the image with DCMTK?
Re: Pixel data sequence
Yes, exactly the same position....One black box is coming with "R" written on it....
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Pixel data sequence
Then it could also be a JPEG decompression issue ... very strange. In order to validate this, could you please decompress the DICOM image with dcmdjpeg and feed the resulting (uncompressed) DICOM image into ezDICOM, OsiriX and/or eFilm.
Re: Pixel data sequence
after decompressing also, its opening exactly fine in ezDicom and efilm....
One more thing which i want to add is : efilm is not showing the side markers clearly(for both compressed and decompressed fomat). But if you use magnifier over the image, it shows "R" clearly...or if you change the window width / window level beyond the limit like (5500 / 0), efilm shows it clearly...
But side marker quality is same for both compressed and decompressed image....
Thanks,
Angad Nath
One more thing which i want to add is : efilm is not showing the side markers clearly(for both compressed and decompressed fomat). But if you use magnifier over the image, it shows "R" clearly...or if you change the window width / window level beyond the limit like (5500 / 0), efilm shows it clearly...
But side marker quality is same for both compressed and decompressed image....
Thanks,
Angad Nath
Re: Pixel data sequence
Hi,
Any luck with my last post.
Is there any bug in dcmtk due to which side markers are not coming ?
Thanks,
Angad Nath
Any luck with my last post.
Is there any bug in dcmtk due to which side markers are not coming ?
Thanks,
Angad Nath
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Pixel data sequence
I've no idea. We need to check this more thoroughly. Therefore, I've added this issue to our internal to-do/bug list.
Who is online
Users browsing this forum: No registered users and 1 guest