I’m trying to plot a histogram in matlab of a dicom image. This is a medical image format, and the colormap is not the standard [0 255] gray levels. so the imhist is not working for me. any suggestions?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If I remember correctly, DICOM images use
uint16for their pixels’ values.Have you tried
To force
imhistto use the full range ofuint16values?Alternatively, you can always use
histinstead ofimhist.