How to multiply all the pixel number of each slice with their own rescale slope(dicominfo) in each slice
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Dear all,
I have the file as attached. the format is dicom (.dcm)
How to multiply all the pixel number of each slice with their own rescale slope(in dicominfo) in each slice?
**that means each slice have their own rescale slope value.
so that the new pixel value will come out when I view this images.
4 Commenti
Rik
il 27 Giu 2023
What leads you to believe the rescale slope and intercept might be different for each slice?
Risposta accettata
Rik
il 27 Giu 2023
In general you should remember to include the intercept as well, although apparently that is 0 for this dataset.
unzip jaszakspect.zip
IM = dicomread('jaszakspect.dcm');
size(IM)
info = dicominfo('jaszakspect.dcm');
[min(IM(:)) max(IM(:))]
IM = double(IM)*info.RescaleSlope + info.RescaleIntercept;
[min(IM(:)) max(IM(:))]
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su DICOM Format in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!