Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Hyperplane update #1034

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
2 changes: 1 addition & 1 deletion scilpy/tractanalysis/bundle_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def uniformize_bundle_sft(sft, axis=None, ref_bundle=None, swap=False):
old_origin = sft.origin
sft.to_vox()
sft.to_corner()

density = get_endpoints_density_map(sft, point_to_select=3)
indices = np.argwhere(density > 0)
kmeans = KMeans(n_clusters=2, random_state=0, copy_x=True,
Expand Down Expand Up @@ -342,4 +343,3 @@ def remove_outliers_qb(streamlines, threshold, nb_points=12, nb_samplings=30,
outliers_ids, inliers_ids = prune(streamlines, threshold, summary)

return outliers_ids, inliers_ids

Loading