Skip to content

Commit

Permalink
Added comments to eigenvalue calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Toverbye authored Jan 26, 2022
1 parent f1ce0c5 commit d098526
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/gvom.py
Original file line number Diff line number Diff line change
Expand Up @@ -1440,6 +1440,8 @@ def __calculate_eigenvalues(voxels_eigenvalues,metrics,cell_count):
yy = metrics[i,6]
yz = metrics[i,7]
zz = metrics[i,8]

# https://en.wikipedia.org/wiki/Eigenvalue_algorithm#3%C3%973_matrices

p1 = xy*xy + xz*xz + yz*yz
q = (xx + yy + zz ) / 3.0
Expand Down

0 comments on commit d098526

Please sign in to comment.