3D Point Cloud - Gaussian Curvature
이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
0 개 추천
Hello All.
I have a 3D point cloud data (X [m]; Y[m]; Z[m]). And I want to calculate the value of some curvature (e.g. gaussian) in every point of the point cloud. Based on these curvature information I would select the points, that may belong to some geometric shape in the point cloud (e. g. to some planes, spheres etc.).
Is there a built in function for it in Matlab, like normals() for normal vector estimation? Or does anyone know a way how to do this? It should be fast and dont need to be really precise, because it is only a pre-processing step.
Thanks in Advance,
Richard
채택된 답변
darova
2019년 11월 26일
one way
clc,clear
% generate some data
r = 3;
t = linspace(0,10)';
x = r*cos(t);
y = r*sin(t);
z = sin(1*t);
t1 = t(2:end) - diff(t)/2;
dv = diff([x y z])./diff([t t t]); % first derivative at midpoints
d2v= diff(dv)./diff([t1 t1 t1]); % second derivative at points [2:end-1]
dv = 1/2*( dv(1:end-1,:) + dv(2:end,:) );% first derivative at points [2:end-1]
[dx,dy,dz] = deal( dv(:,1),dv(:,2),dv(:,3) );
[d2x,d2y,d2z] = deal( d2v(:,1),d2v(:,2),d2v(:,3) );
% curvature
kk = (d2z.*dy - d2y.*dz).^2 + (d2x.*dz - d2z.*dx).^2 + (d2y.*dx - d2x.*dy).^2;
kk = sqrt(kk) ./ (dx.^2+dy.^2+dz.^2).^(3/2);
% radius
RR1 = 1./kk;
plot(t(2:end-1),RR1)
댓글 수: 10
RiHo
2019년 11월 26일
Thank you for your answer darova. It is almost the thing, what I looking for. :)
But the problem with this is that, I dont know, how to determine the t. Because I have a 3D scanned point cloud (e.g. a point cloud from a building scan or something), where you can have lot of shapes, so its not only one curve.
For example: 

With a CloudCompare software its possible to calculate the Gaussian curvature in every point of the point cloud, and then you get this:

You can see, that the points belonging to these small spheres are in green color.
I want to get something similar. So some curvature information in every point.
Thanks,
Richard
darova
2019년 11월 26일
Do you have neighbouring points? Or you have only points (cloud)?
Surface curvate depends on plane
I have only points, but I can select e.g. 5 neighbouring points. I´m calculating also the normal vectors at each point using a local small plane from 5 closest points.
But I have problem with the curvature.
darova
2019년 11월 26일
Two different curvatures, depends on defying a plane

RiHo
2019년 12월 4일
The plane is defined as a contact surface (best fit plane) in the choosen points, and the parameters are calculated using orthogonal regression.
Thats the way how I can calculate the normals also.
darova
2019년 12월 4일
Can you show plane at which you want to compute curvature?
RiHo
2019년 12월 4일

Fig. - Points lying on the surface of the sphere in 2D with 2 planes fitted in 2 picked points.
Legend:
Black - points of the cloud, lying on the surface of a sphere;
Blue, Yellow - 2 picked points, with its plane fitted in 5 nearest neighbour;
Red - 5 neighbours for the Blue piced point;
Green - 5 neighbours for the Yellow piced point.
So I want to calculate the curvature in each point of the point cloud. For example using 5 neighboring points for calculation. Or maybe otherwise, idk.
But like I said this point cloud is a complex pointcloud containing lot of shapes, etc. (see the picture from the previous comments).
I hope it's understandable.
darova
2019년 12월 4일
Can you create a surface from the point cloud? Can you use surfnorm?
RiHo
2019년 12월 4일
I dont think so, because scanned point clouds have really rugged surface, like when you imagine point cloud of complex objects like buildings and so on. There are lot of complicated surfaces.
That's why I'm fitting a local small plane in every point for point normal vector computation, like in pcnormals.
If you can get normals for neighbouring points:
alpha = acos(dot(n1,n2));

추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Process Point Clouds에 대해 자세히 알아보기
참고 항목
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- 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)
