how can i perform gray scale dicom image of 16bits normalization ?

4 vues (au cours des 30 derniers jours)
agatte
agatte le 15 Juil 2016
Hello,
I need to normalize dicom Image of 16bits to the range of 0 65535. How can I do it ?
I would appreciate for any help please :)
  2 commentaires
Walter Roberson
Walter Roberson le 15 Juil 2016
What is the input range of the data? What is class() of the data?
agatte
agatte le 15 Juil 2016
Modifié(e) : Walter Roberson le 15 Juil 2016
im = dicomread(image);
im1 = im2uint16(im);
im2= imadjust(im1);

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 15 Juil 2016
maxv = double( max(YourImage(:)) );
minv = double( min(YourImage(:)) );
scaled_Image = uint16( (double(YourImage) - minv) ./ (maxv - minv) * 65535 );
... or you could just click the appropriate button on the imcontrast tool to match the data range.

Catégories

En savoir plus sur DICOM Format dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by