how to segment color image?

i want to segment green color and display seperately
and should work for all colors as well

2 Comments

Did you try anything already? The more you show from your own effort, the higher is the motivation of the readers in this forum.
yes i did try simply giving threshold for x and y cords. for the image above there was certain rows and cols of 0's and rest with values i tried separating 0's with 'if' functions but its not working.it just gives x & y values in command window.

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 19 Jan 2014
Not sure what you're looking for. It looks like you've already found the green and are displaying it separately.
See my File Exchange for color segmentation demos: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

1 Comment

nida
nida on 23 Jan 2014
Edited: nida on 23 Jan 2014
i want a separate figure consisting of only green color shaped figure(cropped). thank you

Sign in to comment.

Tags

Asked:

on 19 Jan 2014

Edited:

on 23 Jan 2014

Community Treasure Hunt

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

Start Hunting!