37e60440977698fa4a5edb34e47a2bdbb8d7a167,pyntcloud/scalar_fields/sf_kneighbors.py,Normals,compute,#Normals#,72
Before Change
// range from 0-shape[0] to allow indexing along axis 1 and 2
idx_trick = range(eigenvalues.shape[0])
unoriented_normals = eigenvectors[idx_trick, :, sort[:, 0]]
nx = unoriented_normals[:, 0]
ny = unoriented_normals[:, 1]
nz = unoriented_normals[:, 2]
k = k_neighbors.shape[1]
After Change
def compute(self):
cov = cov3D(self.k_neighbors)
u, s, v = np.linalg.svd(cov)
unoriented_normals = u[:, :, -1]
nx = unoriented_normals[:, 0]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: daavoo/pyntcloud
Commit Name: 37e60440977698fa4a5edb34e47a2bdbb8d7a167
Time: 2017-08-01
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/scalar_fields/sf_kneighbors.py
Class Name: Normals
Method Name: compute
Project Name: PyMVPA/PyMVPA
Commit Name: b157150be42a40cd0bd9e7609caadb267133cd4c
Time: 2009-08-19
Author: debian@onerussian.com
File Name: mvpa/tests/test_procrust.py
Class Name: ProcrusteanMapperTests
Method Name: testSimple
Project Name: daavoo/pyntcloud
Commit Name: 84ea1329f53f5b8e2b216d68ec3eb399e87bef9a
Time: 2017-08-01
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/scalar_fields/sf_kneighbors.py
Class Name: Normals
Method Name: compute