Slice thickness information lost when using dicomwrite()
4 views (last 30 days)
Roman Hochuli on 25 Feb 2011
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?
More Answers (1)
mohd akmal masud on 19 Feb 2018
I want to extract the RescaleSlope value from dicominfo for each slice. But i have 135 slice images. This is my code to extract RescaleSlope. But still failed. I JUST CAN EXTRACT ONE BY ONE ONLY.
P = zeros(256, 256, 135);
for K = 1 : 135
petname = sprintf('PET_I1001_PT%03d.dcm', K);
P(:,:,K) = dicominfo(petname);
[r,c,slice] = findND (info.RescaleSlope);
Anyone who can help me solve this problem???