You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed! Also, I'm not sure I get this feature, extent shouldn't be the abs(max - min) of the projection, not just the max? Projection is on vector centered at mean of point cloud, so there will be positive and negative projections on these eigenvectors, no?
@arnaudon , I will write it in a more clear way, but it is not wrong the way it is written. If the projections are not negative then the extent is equal to the greatest positive, whereas if there are negative projections, it also subtracts the smallest negative basically doing the abs(max - min),
There is a bug in the calculation of the principal direction extents:
NeuroM/neurom/morphmath.py
Lines 462 to 496 in fdf9f78
At the point where the most negative value is subtracted from the entire extent:
It shouldn't subtract from the entire extent, rather from the i-th component
extent[i]
.Failing test example with points on a circle with radius
0.5
, and center at0.0
:Which returns instead
[1.49, 1.0, 0.0]
.Thanks, @lidakanari for finding that there is something wrong with the principal direction extent function.
@arnaudon @adrien-berchet
The text was updated successfully, but these errors were encountered: