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 CenterFile Exchange에서 Bounding Regions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by