Skip to content

Commit 5d4ba35

Browse files
author
Donglai Wei
committed
remove CLAUDE.md
1 parent a5c544b commit 5d4ba35

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

connectomics/decoding/segmentation.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ def decode_binary_watershed(
184184
seed = cc3d.connected_components(seed_map)
185185
seed = remove_small_objects(seed, min_seed_size)
186186
segmentation = mahotas.cwatershed(-semantic.astype(np.float64), seed)
187-
segmentation[~foreground] = 0 # Apply mask manually (mahotas 1.4.18 doesn't support mask parameter)
187+
segmentation[~foreground] = (
188+
0 # Apply mask manually (mahotas 1.4.18 doesn't support mask parameter)
189+
)
188190
segmentation = remove_small_instances(segmentation, min_instance_size, remove_small_mode)
189191

190192
return fastremap.refit(segmentation)
@@ -284,7 +286,9 @@ def decode_binary_contour_watershed(
284286
seed = remove_small_objects(seed, min_seed_size)
285287

286288
segmentation = mahotas.cwatershed(-semantic.astype(np.float64), seed)
287-
segmentation[~foreground] = 0 # Apply mask manually (mahotas 1.4.18 doesn't support mask parameter)
289+
segmentation[~foreground] = (
290+
0 # Apply mask manually (mahotas 1.4.18 doesn't support mask parameter)
291+
)
288292
segmentation = remove_small_instances(segmentation, min_instance_size, remove_small_mode)
289293

290294
segmentation = fastremap.refit(segmentation)
@@ -359,7 +363,9 @@ def decode_binary_contour_distance_watershed(
359363
)
360364

361365
segmentation = mahotas.cwatershed(-distance.astype(np.float64), seed)
362-
segmentation[~foreground] = 0 # Apply mask manually (mahotas 1.4.18 doesn't support mask parameter)
366+
segmentation[~foreground] = (
367+
0 # Apply mask manually (mahotas 1.4.18 doesn't support mask parameter)
368+
)
363369
segmentation = remove_small_instances(segmentation, min_instance_size, remove_small_mode)
364370

365371
segmentation = fastremap.refit(segmentation)

0 commit comments

Comments
 (0)