MATLAB: Defining shape of an image

image processing

I have an RGB image,I have extracted red,green,blue regions for that image.now i want to extract the shape of that image can u tell how to process please

Best Answer

Pat: See my BlobsDemo http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 It shows you how to find blobs and then how to use bwlabel() and regionprops() to measure several things about them such as the area, perimeter, centroid, circularity, etc. It then shows you how to apply filters with ismember() to selectively pick out certain blobs, like the nickels or dimes out from all the other coins present. You can string all these measurements together into one array and then you've created yourself a "feature vector" that describes that blob. Different kinds of blobs (blobs that look different) will be different in one or more of the features that you chose to measure.
Related Question