필터 지우기
필터 지우기

DICOM Image Color Values

조회 수: 6 (최근 30일)
Lydia Lee
Lydia Lee 2020년 10월 14일
답변: Jemima Pulipati 2020년 10월 20일
I am relatively new to Matlab, and I am working with a dicom image. It is all in grayscale. The values on the image currently to all the way up into the 2000s (when I look at the colors in imtool). My questions are how do I switch the image to either a 0-1 color scale, or a 0-255 color scale. My second questions is, how do I figure out if the image is in HSV or RGB format currently?
Thank you.

답변 (1개)

Jemima Pulipati
Jemima Pulipati 2020년 10월 20일
From my understanding, you want to convert your image to an image having its values in the range [0,1] or [0,255].
The mat2gray function is used to convert a matrix into a grayscale image whose values are in the range [0,1].
The following answer from the community may help you to convert the image values to the range [0,255].
NOTE: You can also use the imadjust function to adjust the image intensity values or colormap.
The following link addresses the second part of your question regarding how to identify the image format.

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by