Clear Filters
Clear Filters

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

3 views (last 30 days)
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.

Answers (1)

Image Analyst
Image Analyst on 12 Dec 2020
Edited: Image Analyst on 12 Dec 2020
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?

Categories

Find more on Convert Image Type in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!