MATLAB: Slice thickness information lost when using dicomwrite()

dicom filesdicominfodicomreaddicomwriteImage Processing Toolboxslice thickness

Hi, I have written a bit of code to perform some manipulations on a set of DICOM files whose slice thickness (according to dicominfo) is 1 and then write them using dicomwrite. When I use InfoDcm.Slicethickness=1; in order for the slice thickness to be preserved, it only appears as [] when I apply dicominfo to the output file. Does anyone know how to ensure the slice thickness is unchanged?
Thanks, RH

Best Answer

I think your problem may be the missing capitalization of the "t" in the name SliceThickness. Notice that all the fields in the structure returned by DICOMINFO are in upper camel case