Skip to content

Commit

Permalink
Expand context coordiante
Browse files Browse the repository at this point in the history
  • Loading branch information
brianreicher committed Nov 14, 2023
1 parent 64e71b9 commit b37773e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/rusty_mws/rusty_mws_segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,8 @@ def __init__(
if context is not None:
self.context: Coordinate = context
else:
self.context: Coordinate = Coordinate(
np.max(a=np.abs(neighborhood[:neighborhood_length]), axis=0)
)
affs_shape_half: list = [sz//2 for sz in open_ds(affs_file, affs_dataset, mode="r").data.shape[1:]]
self.context: Coordinate = Coordinate(affs_shape_half)

self.filter_val: float = filter_val
self.seeded: bool = seeded
Expand Down Expand Up @@ -324,7 +323,7 @@ def segment_seed_correction(
neighborhood_length=self.neighborhood_length,
mongo_port=self.mongo_port,
db_name=self.db_name,
)
)

success = success & skel_correct_segmentation(
seeds_file=self.seeds_file,
Expand Down

0 comments on commit b37773e

Please sign in to comment.