Skip to content
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

Refactor watershed's label image generation using the new API #1681

Closed
wants to merge 1 commit into from

Conversation

ttung
Copy link
Collaborator

@ttung ttung commented Nov 27, 2019

Uses the labeling algorithms provided by #1680 and the area filter from #1673 to implement labeling.

Depends on #1671, #1673, #1680
Test plan: ISS notebook yields 96 cells. The previous implementation did not support 3D and flattened everything along the Z axis. Processing in 3D exposed issues in peak_local_max. If we use the footprint + exclude borders approach, there is an off-by-one error in trimming the Z axis, resulting in completely blank images and no peaks. Therefore, we have to exclude the borders. Because of that, we detect more cells.

@codecov-io
Copy link

codecov-io commented Nov 27, 2019

Codecov Report

Merging #1681 into tonytung-refactor-label-base will increase coverage by 0.29%.
The diff coverage is 94.44%.

Impacted file tree graph

@@                       Coverage Diff                        @@
##           tonytung-refactor-label-base    #1681      +/-   ##
================================================================
+ Coverage                         89.84%   90.13%   +0.29%     
================================================================
  Files                               239      239              
  Lines                              8964     8945      -19     
================================================================
+ Hits                               8054     8063       +9     
+ Misses                              910      882      -28
Impacted Files Coverage Δ
starfish/test/full_pipelines/api/test_iss_api.py 100% <100%> (ø) ⬆️
starfish/core/image/Segment/watershed.py 95% <93.75%> (-0.8%) ⬇️
...tarfish/core/morphology/Filter/structural_label.py 61.53% <0%> (+61.53%) ⬆️
...rfish/core/morphology/Filter/min_distance_label.py 100% <0%> (+100%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1fdf1cb...0e7ac30. Read the comment docs.

@ttung ttung force-pushed the tonytung-refactor-label branch 2 times, most recently from 9a85dad to 01cc79b Compare December 2, 2019 23:32
@ttung ttung force-pushed the tonytung-refactor-label-base branch from fac04fe to cee6e94 Compare December 3, 2019 19:38
@ttung ttung force-pushed the tonytung-refactor-label-base branch from cee6e94 to 83477f5 Compare December 3, 2019 20:39
@ttung ttung force-pushed the tonytung-refactor-label-base branch from 83477f5 to f2b125c Compare December 3, 2019 22:04
@ttung ttung force-pushed the tonytung-refactor-label-base branch from f2b125c to 1fdf1cb Compare December 3, 2019 22:07
Uses the labeling algorithms provided by #1680 and the area filter from #1673 to implement labeling.

Depends on #1671, #1673, #1680
Test plan: ISS notebook yields 96 cells.  The previous implementation did not support 3D and flattened everything along the Z axis.  Processing in 3D exposed issues in `peak_local_max`.  If we use the footprint + exclude borders approach, there is an off-by-one error in trimming the Z axis, resulting in completely blank images and no peaks.  Therefore, we have to exclude the borders.  Because of that, we detect more cells.
@ttung ttung force-pushed the tonytung-refactor-label-base branch from 1fdf1cb to 10c72b5 Compare December 5, 2019 00:54
@ttung ttung closed this Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants