Obtaining the eigenvalues of the point cloud
Posted: Fri Oct 01, 2021 10:55 am
Hi! I'm trying to calculate some of the variables of the "Compute geometric features" tool using python, but I'm getting slightly different values for the eigenvalues compared with CC with a distance neighbourhood of 10cm. I attached the very simple point cloud I'm testing.
This is being my procedure:
[[5.62499999e-05 5.58333418e-06 4.41666670e-06]
[5.58333418e-06 2.35833325e-05 5.74999993e-06]
[4.41666670e-06 5.74999993e-06 1.58333333e-06]]
[5.76848763e-05 2.37209627e-05 1.08268506e-08]
Using CloudCompare I'm finding the following values:
[0.000043 0.000018 0.000000]
Someone has any idea where is my error?
This is being my procedure:
Code: Select all
import numpy as np
A = np.array([[728049.836, 4395284.986, 201.337],
[728049.849, 4395284.988 ,201.338],
[728049.852 , 4395284.982 , 201.337],
[728049.840 ,4395284.977, 201.335]])
covariance_matrix=np.cov(A.T)
[5.58333418e-06 2.35833325e-05 5.74999993e-06]
[4.41666670e-06 5.74999993e-06 1.58333333e-06]]
Code: Select all
eigenvalues = np.linalg.eig(covariance_matrix)
Using CloudCompare I'm finding the following values:
[0.000043 0.000018 0.000000]
Someone has any idea where is my error?