18 python NewSequence.py input.dcm output.dcm
21 Thanks to Robert Irie for code
27 if __name__ ==
"__main__":
33 r.SetFileName( file1 )
43 de.SetByteValue(
"Occupation",
gdcm.VL(len(
"Occupation")))
50 nds=it.GetNestedDataSet()
55 sq.SetLengthToUndefined()
61 des.SetValue(sq.__ref__())
62 des.SetVLToUndefined()
68 w.SetFileName( file2 )