Sign in to follow this  

How to handle a flat point cloud when fitting a plane to a point cloud using PCA?

This topic is 1110 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am using PCA and it works when the point cloud is anything but perfect grid. For example when my point cloud is a perfect grid resting on XZ plane (Y is up), then my matrix returns this:

[7149.85, 0 ,2.28882e-005]
[0, 0, 0]
[2.28882e-005, 0, 13602.7]

 

Then I invert this matrix:

[0.000139863, 0, -2.35336e-013]
[-0, 0, 0]
[-2.35336e-013, 0, 7.35146e-005]

 

I find the largest eigen vector using the second matrix but since the determinant is 0, it doesn't work.

How can I handle these cases? Or am I doing it incorrectly where these cases are not special and should still yield correct results using the same algorithm?

In comparison my SVD implementation using numpy works every time but I want to implement it using PCA.

 

 

Thanks.

Share this post


Link to post
Share on other sites

This topic is 1110 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this