The attribute (0028,0002) SamplesPerPixelapplies only to color images and tells you the number of planes that are present in the image (e.g. 3 for RGB), so you have
PhotometricInterpretation=RGB
SamplesPerPixel=3
With 8 bits per pixel (I will revise BPP below). As long as you have PhotometricInterpretation= MONOCHROME1 or MONOCHROME2, you can expect that there SamplesPerPixelwill be 1 and nothing else.
, :
BitsAllocated (0028,0100)
BitsStored (0028,0101)
HighBit (0028,0102)
, (BitsAllocated), (BitsStored, HighBit). HighBit , = BitsStored-1
, : hounsfield, -1000 +3000. 12 , ,
BitsAllocated (0028,0100) = 16
BitsStored (0028,0101) = 12
HighBit (0028,0102) = 11
PixelRepresentation, , (0) 2s (1). CT, , CT.
, Bits Allocated == 32 ( ), , ('frames'), NumberOfFrames (0028,0008) > 1. , , .
, , , ;-). , DICOM .
, DCMTK . DicomImage (getInterData()), , DICOM .
[EDIT]: DICOM , , .