|
On Jul 2, 6:32 am, "rubionelove " <rubionel...@gmail.com> wrote:
> Hi all,
> I did the tutorials with LAB color space in the demo section but in my case the image don't have well separated regions. In my image regions of different colours are very close one from another and do not have strong edges.
> I don't want to use tools like "ginput", "roipoly" or similar to define colour region because, I've to analyze a sequence and colours may change a lot.
>
> I would like to classify areas that have similar colours, create a blob for each area, and label the blobs.
>
> any suggestions?
>
> Thanks to all
-------------------------------------------------------------------------------------------------------------------
Yes, that's true. Often you don't have well separated color
clusters. The colors often just blend continuously from one to
another and there's often no clear dividing line. For example, look
at the color ramps in the MATLAB help documentation for the colormap()
function. Now where does the "winter" ramp change from blue to
green? Where does the "spring" ramp change from magenta to yellow.
As you can see, it's a judgement call. As another example, look at
the photo of the rose on this page:
http://en.wikipedia.org/wiki/Color_quantization
and look at the gamut on the same page. You can see that the gamut is
continuous with no clear dividing lines. You can also see there one
possible way of dividing the gamut up into a smaller number of color
classes.
But there is no "right" answer, except that if it works for your
situation, then it's "right" for you. So you just have to carve up
the color space in some sort of way that produces acceptable
segmentation for you. There are lots of color segmentation method
based on clustering. I can't give a tutorial on all of them because
there's way too many and I don't have the time, so all I can do is to
give you a few suggestions (like you asked) to research it further.
Other than the Wikipedia page, you might try downloading this plug in
for ImageJ:
http://rsb.info.nih.gov/ij/plugins/color-inspector.html
It's an excellent tool for visualizing the gamut of your image(s) and
may help you decide where to segment.
Good Luck
|