I have a very large point cloud (42 million points), and I need to find the center of this cloud.

답변 (2개)

Star Strider
Star Strider 2016년 5월 8일

1 개 추천

The centre (or more accurately in this example, ‘centroid’) is the mean of the individual x, y, and z coordinates for the cloud. So if each row of the matrix defining them is an individual point, and the columns define the position of each point, the coordinates of the centroid are the mean of the matrix.
Image Analyst
Image Analyst 2016년 5월 8일

0 개 추천

Why can't you just average all of the components?

댓글 수: 4

Evan
Evan 2016년 5월 8일
First off, Thank you Image Analyst. I have tried simply taking the avg of the x y z values, but the results are not quite right, so I figured I would inquire in hope that there is a pre-built Matlab tool that I was missing.
Image Analyst
Image Analyst 2016년 5월 8일
Why do you say it's not right? I know there may be some reasons (and I can think of some) but I want to hear your reason.
Walter Roberson
Walter Roberson 2016년 5월 8일
What is the range of values? With 42 million of them, I would be concerned about exceeding (required precision)/eps when they are totaled
Image Analyst
Image Analyst 2016년 5월 8일
Good point. Might be able to get pretty much the same centroid just by taking a subset of them.

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

카테고리

태그

질문:

2016년 5월 8일

댓글:

2016년 5월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by