-
Notifications
You must be signed in to change notification settings - Fork 1
Postprocess ihc #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Postprocess ihc #33
Conversation
constantinpape
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current adaptation splits the functions into SGN and IHC. They can probably be more generalized, but this circumvents the adaptation of the prior erosion before using the connected graph components.
Splitting this makes sense. We can discuss more adaptations next week.
| def run_unet_segmentation_slurm( | ||
| output_folder: str, | ||
| min_size: int, | ||
| boundary_distance_threshold: float = 0.5, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also expose the center_distance_threshold here.
scripts/extract_block.py
Outdated
| with zarr.open(s3_path, mode="r") as f: | ||
| raw = f[input_key][roi] | ||
|
|
||
| elif ".tif" in input_path: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would change this to if input_key is None. That's more consistent to how we handle this otherwise in the codebase.
|
|
||
| # create edges between points whose distance is less than threshold min_edge_distance | ||
| for i in coords: | ||
| for j in coords: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks wrong. Shouldn't i, j be indices into the respective array or list?
So
for i in range(len(coords))
etc. ?
Adapt post-processing for the segmentation of inner hair cells (IHCs).
The current adaptation splits the functions into SGN and IHC. They can probably be more generalized, but this circumvents the adaptation of the prior erosion before using the connected graph components.
WIP