Hi,
How can i segment colored images like this one, is the rgb threshold is a solution

 채택된 답변

John BG
John BG 2016년 3월 8일

1 개 추천

Bonjour Sbei
1.- Separate the components
A=imread('image_segmentation.jpg')
Ar=A(:,:,1);Ag=A(:,:,2);Ab=A(:,:,3)
2.- Apply the BW functions you show in the question to each primary colour
3.- Find the intersection pixels of the results found in the 3 layers
If you find this answer of any help solving this question, please click on the thumbs-up vote link,
thanks in advance
John

추가 답변 (1개)

Image Analyst
Image Analyst 2016년 3월 9일
편집: Image Analyst 2016년 3월 9일

0 개 추천

It looks like someone has already segmented it. The image started out as gray scale and then somehow segmented it and produced a pseudocolored version of it.
I'm not sure what you want to find here. You can see from the color gamut below that there are not well clustered colors. Everything is kind of blended.
As you rotate that gamut around, you get some very strange looking shapes, like "sheets" in the RGB Gamut space.
And here is what it looks like if you look straight down the V axis in HSV color space:
What color(s) do you want to find?
Check out my Color Segmentation tutorials in my File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

댓글 수: 4

sbei arafet
sbei arafet 2016년 3월 9일
Hi, Thanks for your answer What color(s) do you want to find? as i'm working with fuzzy connectedness , my object is to segment tumor regions , since hybrid images are not in gray space like PET-MRI , so the program will be semi-automatic , i will give seeds in tumor region and the algorithm will determine all the tumor region, so i'm not working for a specific color, thanks for the link i will check it.
Regards
Zubda Butt
Zubda Butt 2016년 3월 19일
Can you please explain your input arguments I and A in affinity function.
Shaveta Arora
Shaveta Arora 2016년 4월 18일
can I get the image database
Walter Roberson
Walter Roberson 2016년 4월 18일
Which image database, Shaveta Arora ?

댓글을 달려면 로그인하십시오.

질문:

2016년 3월 8일

편집:

2017년 8월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by