Skip to content

Commit

Permalink
Merge pull request #13 from LorenzLamm/rainbow_distances
Browse files Browse the repository at this point in the history
randomize point drawn
  • Loading branch information
LorenzLamm authored Jul 29, 2024
2 parents 2e2569f + 00e5c75 commit fe91737
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lasso_3d/_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,11 @@ def _color_distances(
# get the volume
foreground = image_layer.data == connected_component_number

point = None
if point is None:
point = np.argwhere(foreground)[0]
point = np.argwhere(foreground)[
np.random.randint(np.sum(foreground))
]

dist_field = dijkstra3d.euclidean_distance_field(
foreground,
Expand Down

0 comments on commit fe91737

Please sign in to comment.