Skip to content

Commit

Permalink
Fix bug in segmentation algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
JulioAPeraza committed Apr 19, 2023
1 parent 42ed691 commit 70bf2e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def _fit(self, gradient):
map_arr[labels_arr == i] = gradient[labels_arr == i]
gradient_maps.append(map_arr)

map_bounds.append(map_arr.max())
map_bounds.append(gradient[labels_arr == i].max())

segments.append(gradient_maps)
labels.append(labels_arr)
Expand Down

0 comments on commit 70bf2e6

Please sign in to comment.