I have to separate red tumor from the image by using thresholding approach while creating the mask I found some functions related to it but I didn't run the codes. I just wrote that and the image is there:
clear all;clc
a=imread('mri_img.png');
imshow(a);
red=a(:,:,1);
green=a(:,:,2);
blue=a(:,:,3);
subplot(2,2,1),imshow(a)
subplot(2,2,2),imshow(red)
subplot(2,2,3),imshow(green)
subplot(2,2,4),imshow(blue)
newcg=green>70;
newcb=blue<30;
newcg=~newcg;
MaskImage =newcg&newcb;
MaskImage = double(MaskImage);

 Akzeptierte Antwort

Image Analyst
Image Analyst am 3 Nov. 2019

0 Stimmen

Is the image a simple pseudocolor of a grayscale image? If so, do you have the original image? Or do the colors represent something different than grayscale?
Please see my attached demos.

3 Kommentare

Emir Kulakoglu
Emir Kulakoglu am 3 Nov. 2019
There is the file
Image Analyst
Image Analyst am 3 Nov. 2019
Bearbeitet: Image Analyst am 3 Nov. 2019
Try the Color Threshold App on the Apps tab of the tool ribbon. Use HSV color space.
Or see my file exchange: click here for my File Exchange
Emir Kulakoglu
Emir Kulakoglu am 3 Nov. 2019
Thankk youu !! I will try again

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by