colour image segmentation using k means
古いコメントを表示
I have a rgb image and have converted into hsv colour space,with k=2,now i want to segment the image as shown below,please tell what process to perform next
採用された回答
その他の回答 (2 件)
Spandan Tiwari
2013 年 10 月 11 日
1 投票
Another alternative could be to use multi-level Otsu's thresholding to get the segmentation. You can use the function multithresh in the Image Processing Toolbox to do that.
Otsu's method and k-means clustering have equivalent objective functions (minimize within-class variance). The following paper discusses this relation:
Dongju Liu, Jian Yu, " Otsu Method and K-means ," Vol. 1, pp.344-349, Ninth International Conference on Hybrid Intelligent Systems, 2009.
Image Analyst
2013 年 1 月 16 日
0 投票
Assuming you set k=2 and did the kmeans like you said and is shown in this example, I don't know what you want to do next. You haven't said. The most typical thing to do next is to call bwlabel() or bwconncomp() followed by regionprops to make various measurements (such as area) on the regions. I can be more specific if you get more specific.
4 件のコメント
FIR
2013 年 1 月 17 日
Image Analyst
2013 年 1 月 17 日
I thought you had already done that part because you said " have converted into hsv colour space,with k=2" and you showed an image that you had created. Converted is past tense, meaning that it happened in the past. Was that wrong? Did you not convert (classify) the image yet and so you needed Thorsten's code to do it for you?
FIR
2013 年 1 月 17 日
Assuming you set k=2 and did the kmeans like you said and is shown in this example, I don't know what you want to do next. You haven't said. The most typical thing to do next is to call bwlabel() or bwconncomp() followed by regionprops to make various measurements (such as area) on the regions. I can be more specific if you get more specific.
can you please tell me how can i calculate the area...
カテゴリ
ヘルプ センター および File Exchange で Color Segmentation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!