DICOM Images show greyish

6 ビュー (過去 30 日間)
Simon
Simon 2021 年 10 月 25 日
コメント済み: Simon 2021 年 10 月 26 日
Hi there,
im curently working with CT and MRI Scans in DICOM Format. The MRI Images work completly fine, but the CT Images look this greyish. It is the same in the matlab Dicom Viewer but not in Online Viewers, there the Images are shown normal.
I already tried to rescale them, but it didn't help at all?
Has anybody an Idea where this comes from and how to fix it?
Thanks for your help :)
  7 件のコメント
DGM
DGM 2021 年 10 月 25 日
編集済み: DGM 2021 年 10 月 25 日
It depends what you mean by changing the contrast. The above example does increase the contrast.
A = rgb2gray(imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/777493/image.jpeg'));
range(double(A(:)))/mean(double(A(:))) % example contrast metric
ans = 1.2804
A = mat2gray(A,double([mode(A(1,:)) max(A(:))]));
range(double(A(:)))/mean(double(A(:))) % check contrast again
ans = 12.5577
imadjust will let you adjust input and output black/white points (linear) and optionally adjust gamma. stretchlim() can be used for finding the values needed by imadjust(). I'm sure there are other things that can be done too, depending on what you need. Phrases like "contrast adjustment" or "contrast enhancement" are unfortunately kind of vague, since they can mean contradictory things in different contexts.
Simon
Simon 2021 年 10 月 25 日
Thank you guys for all your help, so far im a a state, where I can continue in processing ;)

サインインしてコメントする。

回答 (2 件)

Image Analyst
Image Analyst 2021 年 10 月 25 日
Try using [] in imshow() to scale your min to 0 and max to 255:
imshow(yourGrayScaleImage, []);
  21 件のコメント
Image Analyst
Image Analyst 2021 年 10 月 26 日
OK since the reconstruction diameter is 500 for one of the images, and the image is 512x512 for both images, what is the reconstruction diameter for the other image? If the discs are the same size in the real world then the cm per pixel spatial calibration factor must be different for the two images because the discs shows up with a different pixel diameter in the two images.
Simon
Simon 2021 年 10 月 26 日
Just for understanding, here you can see what these two discs originally looked like. (The right one is changed to binary already, cause of the original problem)
Also the left Image is saved as 256x256

サインインしてコメントする。


Simon
Simon 2021 年 10 月 26 日

カテゴリ

Help Center および File Exchange3-D Volumetric Image Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by