怎样读dicom格式图片?
怎样读dicom格式图片?clear all
I = dicomread('wo.dcm');
imshow(I,'DisplayRange',[])
这样可以读出来,但是很模糊,有没更好的程序呢?
哪位大侠能帮帮小弟我啊?
提取dicom格式图片的信息
各位大侠,要提取dicom格式图片的信息除了dicominfo还有什么函数呢?因为dicominfo读不出病人的姓名。有哪位能帮我写个程序吗?谢咯 提取图像信息就用dicominfo函数,它能读出病人姓名,我刚刚测试过,另外dicomread函数可以读取图像数据。再举个例子吧
x=dicominfo('CT-MONO2-16-ankle.dcm')
x.PatientName
[ 本帖最后由 xiezhh 于 2009-4-25 07:53 编辑 ]
回复 板凳 xiezhh 的帖子
谢咯,我试试dicom
各位大侠,要提取dicom格式图片的信息,用dicominfo函数读出来很杂很乱信息又多,怎样才能提取一些有用的基本信息呢?用怎样的程序好呢? 读出的信息很丰富,一点都不乱,是结构体数据,按你所需要的字段提取就行了,可以将提取的信息写入Excel表格(需编程)。回复 5楼 wzgsxxgg 的帖子
相同或相近内容的话题,请勿开新贴,一帖发完回复 6楼 xiezhh 的帖子
还是不怎么会,能不能详细点呢?谢咯 试试3F说的了吗?哪里不清楚? 说具体些
回复 9楼 ChaChing 的帖子
试过了,读出来是x=
Filename: 'HL3E7.dcm'
FileModDate: '27-Apr-2009 13:52:24'
FileSize: 164502
Format: 'DICOM'
FormatVersion: 3
Width: 224
Height: 256
BitDepth: 12
ColorType: 'grayscale'
SelectedFrames: []
FileStruct:
StartOfPixelData: 49806
IdentifyingGroupLength: 588
SpecificCharacterSet: 'ISO_IR 100'
ImageType: 'DERIVED\SECONDARY\M\ND\CV15\CSA RESAMPLED'
InstanceCreationDate: '20090423'
InstanceCreationTime: '105811.718000'
SOPClassUID: '1.2.840.10008.5.1.4.1.1.4'
SOPInstanceUID: '1.3.12.2.1107.5.2.17.28706.30000009042300512526500001248'
StudyDate: '20090423'
SeriesDate: '20090423'
AcquisitionDate: '20090423'
ContentDate: '20090423'
StudyTime: '102642.562000'
SeriesTime: '105803.875000'
AcquisitionTime: '105337.392513'
ContentTime: '105811.718000'
AccessionNumber: ''
Modality: 'MR'
Manufacturer: 'SIEMENS'
InstitutionName: 'HuiYang No1 Hospi.'
InstitutionAddress: 'StreetNoStreet, City, District, ZIP, China'
ReferringPhysicianName:
StationName: 'MRC28706'
StudyDescription: 'head^general'
SeriesDescription: 't1_se_sag_h_CV_1'
ManufacturerModelName: 'C!'
ReferencedImageSequence:
DerivationDescription: 'Resample Z(1.082031)'
SourceImageSequence:
PatientGroupLength: 82
PatientName:
PatientID: 'WANG BING'
PatientBirthDate: '19810423'
PatientSex: 'M'
PatientAge: '028Y'
PatientWeight: 65
AcquisitionGroupLength: 450
ContrastBolusAgent: 'GD-DTPA'
BodyPartExamined: 'HEAD'
ScanningSequence: 'SE'
SequenceVariant: 'SP'
ScanOptions: ''
MRAcquisitionType: '2D'
SequenceName: '*se2d1'
AngioFlag: 'N'
SliceThickness: 5
RepetitionTime: 398
EchoTime: 11
NumberOfAverages: 3
ImagingFrequency: 14.6122
ImagedNucleus: '1H'
EchoNumber: 0
MagneticFieldStrength: 0.3425
SpacingBetweenSlices: 6.5000
NumberOfPhaseEncodingSteps: 181
EchoTrainLength: 1
PercentSampling: 80.8036
PercentPhaseFieldOfView: 87.5000
PixelBandwidth: 120
DeviceSerialNumber: '28706'
SoftwareVersion: 'syngo MR 2004C 4VA26B'
ProtocolName: 'Context Vision Filter'
ContrastBolusVolume: 15
TransmitCoilName: 'TxCoil'
AcquisitionMatrix:
InPlanePhaseEncodingDirection: 'ROW'
FlipAngle: 80
VariableFlipAngleFlag: 'N'
SAR: 0
dBdt: 0
PatientPosition: 'HLS'
RelationshipGroupLength: 428
StudyInstanceUID: '1.3.12.2.1107.5.2.17.28706.30000009042300325773400000025'
SeriesInstanceUID: '1.3.12.2.1107.5.2.17.28706.30000009042300504225000000442'
StudyID: '1'
SeriesNumber: 14
AcquisitionNumber: 1
InstanceNumber: 11
ImagePositionPatient:
ImageOrientationPatient:
FrameOfReferenceUID: '1.3.12.2.1107.5.2.17.28706.20090423102811375.0.0.0'
PositionReferenceIndicator: ''
SliceLocation: 8.1488
ImageComments: ''
ImagePresentationGroupLength: 180
SamplesPerPixel: 1
PhotometricInterpretation: 'MONOCHROME2'
PlanarConfiguration: 0
Rows: 256
Columns: 224
PixelSpacing:
BitsAllocated: 16
BitsStored: 12
HighBit: 11
PixelRepresentation: 0
WindowCenter: 721
WindowWidth: 1436
WindowCenterWidthExplanation: 'WINDOW1'
Private_0029_GroupLength:
Private_0029_10xx_Creator: 'SIEMENS MEDCOM HEADER '
Private_0029_11xx_Creator: 'SIEMENS CSA HEADER'
Private_0029_12xx_Creator: 'SIEMENS MEDCOM HEADER2'
Private_0029_1031:
Private_0029_1032:
Private_0029_1033:
Private_0029_1034:
Private_0029_1108:
Private_0029_1109:
Private_0029_1110:
Private_0029_1118:
Private_0029_1119:
Private_0029_1120:
Private_0029_1260:
StudyGroupLength: 20
RequestedProcedureDescription: 'head general'
ScheduledProcedureGroupLength: 82
PerformedProcedureStepStartDate: '20090423'
PerformedProcedureStepStartTime: '102642.562000'
PerformedProcedureStepID: 'MR20090423102642'
PerformedProcedureStepDescription: 'head^general'
PixelDataGroupLength: 114696
ans =
FamilyName: 'MR12641'
真的很乱 个人猜测LZ可能不清楚结构资料(structure), 才会觉得乱!
建议看下help中的MATLAB->Programming->Structure里面的内容, 学学结构array的使用!
本想在论坛搜搜有没中文, 报歉, 我是没搜到
页:
[1]