clustering an image using matlab
3 次查看(过去 30 天)
显示 更早的评论
i have error in coding below. can someone help me.? when i run they only calculate the area of cell but error when i want to cluster them based on area ..please help me
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/148253/image.jpeg)
coding link below :)
https://word.office.live.com/wv/WordView.aspx?FBsrc=https%3A%2F%2Fwww.facebook.com%2Fattachments%2Ffile_preview.php%3Fid%3D734274853338438%26time%3D1427127122%26metadata&access_token=100003736390577%3AAVKwfhY8Bg_OXG_qYVHRh4hByGWdBCkH8QqLBSW3UOoxzQ&title=Try+thresholding+in+HSV+color+space+to+get+purple+blobs+but+not+black+blobs+or+yellow+background.docx
0 个评论
采纳的回答
Image Analyst
2015-3-24
I showed you how to segment and measure the regions in your prior question. Please explain what "cluster them based on area" means. You can make a can chart of the blob areas. Are you saying that you, for some reason, expect the areas to be clustered into two size ranges? So that the histogram would be bimodal (with two humps)? If so, what do you based that one?
更多回答(1 个)
izyan hanum
2015-3-24
2 个评论
Image Analyst
2015-3-24
OK, I see from your duplicate question that you actually mean "select" or "classify" or "do size filtering" rather than "cluster" - the wrong terminology is what threw me off.
I suggest you look over my Image Segmentation Tutorial where I show how to exactly that. I get images of the two sizes of coins. I know you got your answer from the other person, but this tutorial has lots of other good stuff in it besides size filtering.
![](https://www.mathworks.com/matlabcentral/images/broken_image.png)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!