8000 Area filter for binary masks by ttung · Pull Request #1673 · spacetx/starfish · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Area filter for binary masks #1673

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

Merged
merged 1 commit into from
Dec 3, 2019
Merged

Area filter for binary masks #1673

merged 1 commit into from
Dec 3, 2019

Conversation

ttung
Copy link
Collaborator
@ttung ttung commented Nov 22, 2019

This filter allows us to filter a BinaryMaskCollection based on the size of the masks.

Test plan: Added some basic test cases.

@ttung ttung requested a review from shanaxel42 November 22, 2019 23:11
@codecov-io
Copy link
codecov-io commented Nov 22, 2019

Codecov Report

Merging #1673 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1673      +/-   ##
==========================================
+ Coverage    90.1%   90.14%   +0.03%     
==========================================
  Files         231      233       +2     
  Lines        8835     8870      +35     
==========================================
+ Hits         7961     7996      +35     
  Misses        874      874
Impacted Files Coverage Δ
starfish/core/morphology/Filter/areafilter.py 100% <100%> (ø)
...ish/core/morphology/Filter/test/test_areafilter.py 100% <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 2e61ae0...ab41be3. Read the comment docs.

This filter allows us to filter a BinaryMaskCollection based on the size of the masks.

Test plan: Added some basic test cases.
@ttung ttung force-pushed the tonytung-areafilter branch from e1259d4 to ab41be3 Compare December 3, 2019 20:39
@ttung ttung merged commit 841d799 into master Dec 3, 2019
@ttung ttung deleted the tonytung-areafilter branch December 3, 2019 22:03
shanaxel42 pushed a commit that referenced this pull request Dec 4, 2019
This filter allows us to filter a BinaryMaskCollection based on the size of the masks.

Test plan: Added some basic test cases.
ttung pushed a commit that referenced this pull request Dec 5, 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.
mattcai pushed a commit that referenced this pull request Dec 19, 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.
ttung pushed a commit that referenced this pull request Jan 13, 2020
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.
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.

3 participants
0