如何在matlab中显示dicom图像? [英] how to display dicom image in matlab?

查看:789
本文介绍了如何在matlab中显示dicom图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在matlab中询问这个函数 dicomread

I want to ask about this function in matlab dicomread

例如:

a = dicomread ('m.dcm');
imshow(a)






图像在屏幕上显示,但它是非常黑暗的.....我想知道它是黑暗的,而不是正常的。
我用不同的dicom图像检查但问题仍然存在。
我希望你能提前帮助我和


the image showed in the screen but it is very dark.....I wonder way it is dark and not normal. I checked with different dicom images but the problem remain. I hope you can help me and thanks in advance.

推荐答案

如果你正在处理单色图像,您可以设置最小和最大像素值之间的线性缩放,如下所示:

If you are dealing with monochrome images, you can set a linear scaling between a minimum and maximum pixel value as follows:

img = dicomread('filename');
imshow(img, [minAllowedPixValue maxAllowedPixValue]);

或者,您可以在完整动态范围内显示图像:

Alternately, you can display the image at full dynamic range:

imshow(img, []);

这篇关于如何在matlab中显示dicom图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆