I'm using dcmtk to fetch image data from dicom data. Now I have following information for a sample image:
- (0028,0002) Samples per Pixel: 1
- (0028,0004) Photometric Interpretation: MONOCHROME2
- (0028,0010) Rows: 256
- (0028,0011) Columns: 256
- (0028,0030) Pixel Spacing: 1.5625\1.5625
- (0028,0100) Bits Allocated: 16
- (0028,0101) Bits Stored: 12
- (0028,0102) High Bit: 11
- (0028,0103) Pixel Representation: 0
- (0028,0106) Smallest Image Pixel Value: 1
- (0028,0107) Largest Image Pixel Value: 1060
- (0028,1050) Window Center: 474
- (0028,1051) Window Width: 1000
- (0028,1055) Window Center & Width Explanation: Algo1
When I applied the window/center value to real pixel value of data, then many of them is white. I iterate on pixel values and then I found many pixel value (larger than 80 percent) is beyond Largest Image Pixel Value. Many of them are beyond of 5x of largest! This made my resulting image near to complete white. Strangely I don't why when I divide pixel values to 256 then the resulting image is near to the image that I expect. I can't understand why it's true.
Maybe it's good to see other unknown attribute :
- (0019,1009) Unknown: 1.0
- (0019,100b) Unknown: 245
- (0019,1016) Unknown: 25.53
Why this happend to my image?
pixel representation (0028,0103)
is 0 (you must read them as unsigned integers) – jap1968