How to find the local maxima in a point cloud?

조회 수: 6 (최근 30일)
okul
okul 2022년 2월 10일
답변: Chris Rygaard 2022년 3월 2일
Hi all,
I have a point cloud data (x,y,z) of two hills and I want to find the top points of these hills. Every row of the data matrix contains the x coordinate, y coordinate and z coordinate (height) of a point. How can I find these two top points? Any help will be pretty much appreciated.
Thanks in advance.

채택된 답변

KSSV
KSSV 2022년 2월 10일
Read about max.
  댓글 수: 1
okul
okul 2022년 2월 11일
Thank you for the suggestion. I already tried max but, I do not think it is the solution. I want to find the highest point of each hill and these points are apart from each other in the point cloud.

댓글을 달려면 로그인하십시오.

추가 답변 (3개)

Chris Rygaard
Chris Rygaard 2022년 2월 21일
I worked on a similar problem in which the data had an unknown number of peaks. The only solution I found was a brute-force search of each point and its 'neighbors':
(1) Select a radius, R, that defines the horizontal distance between a point an all of its 'neighbors' of interest. The exact value of R isn't critical, but it needs to be less than the (horizontal) distance between the peak and the valley between the peaks (for both peaks), and it needs to be large enough to consider neighbors on all sides.
(2) Search through all of the points. If a point has a higher z-value than all of its neighbors, then it's a peak.

Image Analyst
Image Analyst 2022년 2월 21일

Chris Rygaard
Chris Rygaard 2022년 3월 2일
I know OP already has an answer, but this looks incredibly relevant:
(just in case somebody asks this question in the future)

카테고리

Help CenterFile Exchange에서 Point Cloud Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by