matlab help required. need to open a matlab file named as1.mat and convert the image from binary (masks are binary, 1-channel images). to gray level . matlab help required to open a file and convert theimage to graylevel i need to open and see

1 次查看(过去 30 天)
I need to open a matlab file named as1.mat and convert the image from binary (masks are binary, 1-channel images) to gray level. The image is attached.
Matlab help required to open a file and convert the image to graylevel.
I need to open and see the images of brain tumors. Can someone help me with the coding on how to open and see the images, and convert the images from binary to gray level.
The file is in the given link below.
Image is given in attachment as jpg. I need to see the original image in gray level or any other method.

回答(1 个)

Image Analyst
Image Analyst 2020-12-12
编辑:Image Analyst 2020-12-12
grayImage = imread('4.jpg');
Now as far as reading "as1.mat", you forgot to attach that file so we don't know what's in it. Can you attach it? I'm not going to go to some third party web site to get your mat file when you can simply attach it here. Let's keep everything all in one place.
Also, isn't this question just a duplicate of the question you asked yesterday?

类别

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