Skip to content

Commit 5e48776

Browse files
committed
fix PARTSEG-DM
1 parent 6975e85 commit 5e48776

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package/PartSegCore/segmentation/segmentation_algorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def calculation_run(self, report_fun: Callable[[str, int], None]) -> ROIExtracti
376376

377377
report_fun("Flow calculation", 5)
378378
sprawl_algorithm: BaseWatershed = flow_dict[self.new_parameters["flow_type"]["name"]]
379-
mean_brightness = np.mean(cell_channel[cell_mask])
379+
mean_brightness = np.mean(cell_channel[cell_mask > 0])
380380
if mean_brightness < cell_thr:
381381
mean_brightness = cell_thr + 10
382382
segmentation = sprawl_algorithm.sprawl(

0 commit comments

Comments
 (0)