How to find the Alpha Hull of 2-D image

1 回表示 (過去 30 日間)
ganesh s
ganesh s 2015 年 12 月 1 日
コメント済み: Sean de Wolski 2015 年 12 月 3 日
i would like to know how to find the alpha hull of the image like convex hull for 2-D image

回答 (1 件)

Sean de Wolski
Sean de Wolski 2015 年 12 月 1 日
編集済み: Sean de Wolski 2015 年 12 月 1 日
You will need to binarize the image (however, you need to do that), find the points on the perimeter ( find/bwperim , or bwboundaries) and then call alphaShape on those points.
Simple example:
I = imread('onion.png');
BW = I(:,:,2)>100 & I(:,:,1)<150;
[r,c] = find(bwperim(BW));
ah = alphaShape(c,r);
plot(ah)
This is about as simple of an example as it gets. You might want to do more advanced things like calling regionprops with 'SubarrayIdx' so that you find the alpha hull of each object in the image, etc.
  4 件のコメント
ganesh s
ganesh s 2015 年 12 月 2 日
Yes sir, I am using earlier version. How to find it for the older version.
Sean de Wolski
Sean de Wolski 2015 年 12 月 3 日
Upgrade...

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeBounding Regions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by