Slice thickness information lost when using dicomwrite()
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Roman Hochuli
le 25 Fév 2011
Réponse apportée : mohd akmal masud
le 19 Fév 2018
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
0 commentaires
Réponse acceptée
Kenneth Eaton
le 28 Fév 2011
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
3 commentaires
Kenneth Eaton
le 28 Fév 2011
@Roman: It would be helpful if you could include a code sample in the question showing what you are doing. Without that, it's nearly impossible for us to make specific suggestions about what the problem may be.
Plus de réponses (1)
mohd akmal masud
le 19 Fév 2018
Hi all,
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);
end
info=dicominfo(P(:,:,K));
[r,c,slice] = findND (info.RescaleSlope);
Anyone who can help me solve this problem???
0 commentaires
Voir également
Catégories
En savoir plus sur Read and Write Image Data from Files dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!