Import a DICOM file into the workspace.
Find the locations and current values of all instances of the ROINumber attribute nested in the metadata of the DICOM file.
roiNumber=4×2 table
Location Value
__________________________________________ _____
"StructureSetROISequence.Item_1.ROINumber" {[1]}
"StructureSetROISequence.Item_2.ROINumber" {[2]}
"StructureSetROISequence.Item_3.ROINumber" {[3]}
"StructureSetROISequence.Item_4.ROINumber" {[4]}
Update the value of the second instance of the ROINumber attribute in the table roiNumber.
roiNumber=4×2 table
Location Value
__________________________________________ _____
"StructureSetROISequence.Item_1.ROINumber" {[1]}
"StructureSetROISequence.Item_2.ROINumber" {[4]}
"StructureSetROISequence.Item_3.ROINumber" {[3]}
"StructureSetROISequence.Item_4.ROINumber" {[4]}
Update the dicomFile object with the new values for the ROINumber attribute.
Check whether the attribute has been updated in the dicomFile object.
roiNumber=4×2 table
Location Value
__________________________________________ _____
"StructureSetROISequence.Item_1.ROINumber" {[1]}
"StructureSetROISequence.Item_2.ROINumber" {[4]}
"StructureSetROISequence.Item_3.ROINumber" {[3]}
"StructureSetROISequence.Item_4.ROINumber" {[4]}
Find the location and current value of the Modality attribute of the DICOM file.
modality=1×2 table
Location Value
__________ ____________
"Modality" {'RTSTRUCT'}
Update the dicomFile object with a new value for the Modality attribute.
Check whether the attribute has been updated in the dicomFile object.
modality=1×2 table
Location Value
__________ _______________
"Modality" {'RTSTRUCTURE'}
Find the location and current value of the AcquisitionDateTime attribute of the DICOM file. The attribute does not exist in the DICOM file, so the function returns an empty table.
acquisitionDateTime =
0×2 empty table
Location Value
________ _____
Add the AcquisitionDateTime attribute to the dicomFile object using the decimal group and element numbers of the attribute.
Check whether the attribute exists in the updated dicomFile object.
acquisitionDateTime=1×2 table
Location Value
_____________________ ______________
"AcquisitionDateTime" {'2023-01-01'}
Find the location and current value of the ImplementationVersionName attribute of the DICOM file.
implementationVersionName=1×2 table
Location Value
___________________________ _______
"ImplementationVersionName" {'0.5'}
Erase the value of ImplementationVersionName attribute in the dicomFile object using the structure info.
info = struct with fields:
ImplementationVersionName: ''
Check whether the attribute has been updated in the dicomFile object.
implementationVersionName=1×2 table
Location Value
___________________________ __________
"ImplementationVersionName" {0×0 char}