When I convert the monochrom dicom image as attached below I get the following warnings and the output image is full of noise. Regardless whether I convert to bmp, tiff, png, etc.
The image violates the DICOM standard in a number of ways. The reason for the "noise" is a wrong value of (60xx,0100) Overlay Bits Allocated -- as the warning indicates -- and incorrectly encoded overlay plane data. The standard specifies in part 3:
If the overlay data are embedded in the Image Pixel Data (7FE0,0010), the value of this Attribute shall be the same as Bits Allocated (0028,0100).
Last edited by Jörg Riesmeier on Wed, 2005-04-06, 15:12, edited 1 time in total.
Thank you for the quick response!
Is it possible to ignore the overlays and only to render the plain image when using the dcmtk library?
And what is the meaning of the other warning:
WARNING: invalid value for 'PixelHeight' (0) ... assuming 1 !
Jörg Riesmeier wrote:The image violates the DICOM standard in a number of ways. The reason for the "noise" is a wrong value of (60xx,0100) Overlay Bits Allocated -- as the warning indicates -- and incorrectly encoded overlay plane bits. The standard states in part 3:
If the overlay data are embedded in the Image Pixel Data (7FE0,0010), the value of this Attribute shall be the same as Bits Allocated (0028,0100).
jb wrote:Is it possible to ignore the overlays and only to render the plain image when using the dcmtk library?
Sure, just set the option "-O" (--no-overlays) when calling dcm2pnm. You should probably also enable the stored VOI windows by adding "+Wi 1" (--use-window) to the command line.
jb wrote:And what is the meaning of the other warning:
This means that the stored value for (0028,0030) Pixel Spacing is invalid ("0\0").