imaging - Why my pixel value of DICOM is beyond 'Largest Image Pixel Value' attribute? -


i'm using dcmtk fetch image data dicom data. have following information 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 applied window/center value real pixel value of data, many of them white. iterate on pixel values , found many pixel value (larger 80 percent) beyond largest image pixel value. many of them beyond of 5x of largest! made resulting image near complete white. strangely don't why when divide pixel values 256 resulting image near image expect. can't understand why it's true.

maybe it's see other unknown attribute :

  • (0019,1009) unknown: 1.0
  • (0019,100b) unknown: 245
  • (0019,1016) unknown: 25.53

why happend image?

could verify reading 12 bits of each pixel? ie you've applied along these lines

int value = ((byte[0] & 0x0f) << 8) | byte[1];

and not

int value = (byte[0] << 8) | byte[1];


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -