我正在使用Dcmtk C ++库制作Dicom工具。我正在尝试使该工具与不同类型的Dicom图像兼容。作为其中的一部分,我正在寻找具有Planar配置1的Ultrasound Dicom图像,我只有平面配置0.有人可以说我可以用Planar配置1获得一些免费的美国Dicom图像吗?
感谢。
答案 0 :(得分:1)
您可以使用GDCM直接使用此类文件,或创建一个新文件:
$ gdcminfo gdcmData/US-RGB-8-epicard.dcm
MediaStorage is 1.2.840.10008.5.1.4.1.1.6.1 [Ultrasound Image Storage]
TransferSyntax is 1.2.840.10008.1.2.2 [Explicit VR Big Endian]
NumberOfDimensions: 2
Dimensions: (640,480,1)
Origin: (0,0,0)
Spacing: (1,1,1)
DirectionCosines: (1,0,0,0,1,0)
Rescale Intercept/Slope: (0,1)
SamplesPerPixel :3
BitsAllocated :8
BitsStored :8
HighBit :7
PixelRepresentation:0
ScalarType found :UINT8
PhotometricInterpretation: RGB
PlanarConfiguration: 1
TransferSyntax: 1.2.840.10008.1.2.2
Orientation Label: AXIAL
哪个符合您的需要,您甚至可以将其转换回Planar Configuration = 0:
$ gdcmconv --raw --planar-configuration 0 gdcmData/US-RGB-8-epicard.dcm change.dcm
$ gdcminfo change.dcm
MediaStorage is 1.2.840.10008.5.1.4.1.1.6.1 [Ultrasound Image Storage]
TransferSyntax is 1.2.840.10008.1.2.1 [Explicit VR Little Endian]
NumberOfDimensions: 2
Dimensions: (640,480,1)
Origin: (0,0,0)
Spacing: (1,1,1)
DirectionCosines: (1,0,0,0,1,0)
Rescale Intercept/Slope: (0,1)
SamplesPerPixel :3
BitsAllocated :8
BitsStored :8
HighBit :7
PixelRepresentation:0
ScalarType found :UINT8
PhotometricInterpretation: RGB
PlanarConfiguration: 0
TransferSyntax: 1.2.840.10008.1.2.1
Orientation Label: AXIAL
答案 1 :(得分:0)