alphaSpectrum
고유한 알파 셰이프를 제공하는 알파 값
설명
예제
2차원 포인트 클라우드의 알파 스펙트럼 구하기
2차원 점 집합을 만들고 플로팅합니다.
th = (pi/12:pi/12:2*pi)'; x1 = [reshape(cos(th)*(1:5), numel(cos(th)*(1:5)),1); 0]; y1 = [reshape(sin(th)*(1:5), numel(sin(th)*(1:5)),1); 0]; x = [x1; x1+15;]; y = [y1; y1]; plot(x,y,'.') axis equal
디폴트 알파 반지름을 사용하여 포인트 클라우드에 대한 알파 셰이프를 만듭니다.
shp = alphaShape(x,y);
포인트 클라우드의 고유한 알파 셰이프를 생성하는 임계 알파 값의 스펙트럼을 구합니다.
alphaspec = alphaSpectrum(shp);
스펙트럼에서 알파 값에 의해 생성된 고유한 알파 셰이프 4개를 플로팅합니다.
for k = 1:4 alpha = alphaspec(8*k-7); shp.Alpha = alpha; subplot(2,2,k) plot(shp) title("Alpha = "+alpha) end
입력 인수
shp
— 알파 셰이프
alphaShape
객체
알파 셰이프로, alphaShape
객체로 지정됩니다. 자세한 내용은 alphaShape
를 참조하십시오.
예: shp = alphaShape(x,y)
는 (x,y)
점 좌표에서 2차원 alphaShape
객체를 만듭니다.
출력 인수
a
— 고유한 알파 셰이프의 알파 값
열 벡터
고유한 알파 셰이프의 알파 값으로, 내림차순으로 정렬된 열 벡터로 반환됩니다.
버전 내역
R2014b에 개발됨
참고 항목
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)