Color Segmentation inside a GUI

3 views (last 30 days)
Brandon
Brandon on 1 May 2014
Commented: Image Analyst on 2 May 2014
Hi, I was given a project to separate a color image and determine the area of each color inside the image. The image is output to a MATLAB GUI, and I am supposed to use a callback function to find the area of each color region.
My theory of going about this is to pull out the 2D area of pixels and find the mean value of the pixels and then use this value as a base threshold for simple color segmentation. Then I can count the number of pixels within a range of set values and do some simple dimensional analysis to find the respective area of each color.
I'm not sure exactly how to get started with this and I have very little experience with image processing and GUI but any help is appreciated. Thanks in advance.

Answers (1)

Image Analyst
Image Analyst on 1 May 2014
Or else if you have an old version of MATLAB, see my File Exchange for several color segmentation demos/tutorials. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
  2 Comments
Brandon
Brandon on 2 May 2014
Sadly, the version of MATLAB currently being used in this lab is R2012a
Image Analyst
Image Analyst on 2 May 2014
Then my demos will help you a lot, right? It does what you want - find a region within a range of similar colors and gives the mean color of the region.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!