How can I properly create histogram of DICOM image?

8 vues (au cours des 30 derniers jours)
Veronika
Veronika le 19 Avr 2017
Dear all,
I have DICOM image and I would like to create histogram of it. But I created only this:
grayImage = dicomread('000054.dcm');
figure()
imhist(grayImage);
[X,map] = imread('trees.tif');
grid on;
title('Histogram testovacího obrazu');
caption = sprintf('Histogram testovacího obrazu %s');
title(caption, 'FontSize',fontSize, 'Interpreter', 'None');
ylabel('Četnost');
I attach this DICOM image. But I would like to better displayed this histogram (different range of x axe).
Can you advice me? Thank you for your answers.
  1 commentaire
Walter Roberson
Walter Roberson le 22 Avr 2017
What is the intention of the line
[X,map] = imread('trees.tif');
?

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 22 Avr 2017
xlim([0 4095])

Plus de réponses (0)

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