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

Additional builders for BinaryMaskCollection #1637

Merged
merged 1 commit into from
Nov 18, 2019

Conversation

ttung
Copy link
Collaborator

@ttung ttung commented Oct 31, 2019

  1. from_binary_arrays_and_ticks will allow morphological filters to take a set of binary masks, run some processing, and produce another set of binary masks.
  2. from_label_array_and_ticks will allow image processing tools that produce a labeled image and produce a set of binary masks.

skimage.feature.watershed is an example of (2), and indeed, we adapt the existing watershed output to use from_label_array_and_ticks

Test plan: pass travis, but mostly make -j lint mypy && pytest -v -n4 starfish/core/morphology/object/
Depends on #1647

@ttung ttung changed the base branch from tonytung-label-image-vocabulary to tonytung-coordinate-cleanup October 31, 2019 06:03
@codecov-io
Copy link

codecov-io commented Oct 31, 2019

Codecov Report

Merging #1637 into tonytung-uncrop will increase coverage by 0.36%.
The diff coverage is 100%.

Impacted file tree graph

@@                 Coverage Diff                 @@
##           tonytung-uncrop    #1637      +/-   ##
===================================================
+ Coverage            89.74%   90.11%   +0.36%     
===================================================
  Files                  220      222       +2     
  Lines                 8290     8578     +288     
===================================================
+ Hits                  7440     7730     +290     
+ Misses                 850      848       -2
Impacted Files Coverage Δ
starfish/core/image/Segment/watershed.py 96.49% <100%> (-0.07%) ⬇️
...ary_mask/test/test_from_binary_arrays_and_ticks.py 100% <100%> (ø)
...inary_mask/test/test_from_label_array_and_ticks.py 100% <100%> (ø)
...tarfish/core/morphology/binary_mask/binary_mask.py 94.51% <100%> (+4.69%) ⬆️

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 fd63cdb...3be6be3. Read the comment docs.

@ttung ttung force-pushed the tonytung-coordinate-cleanup branch from 26894de to ecc5a1c Compare October 31, 2019 17:16
@ttung ttung force-pushed the tonytung-additional-builders branch 3 times, most recently from a7293da to b47d603 Compare November 7, 2019 09:31
@ttung ttung force-pushed the tonytung-coordinate-cleanup branch from 765b842 to c60458d Compare November 7, 2019 22:49
@ttung ttung force-pushed the tonytung-additional-builders branch 3 times, most recently from 88778bd to 746eaa2 Compare November 9, 2019 03:47
@ttung ttung changed the base branch from tonytung-coordinate-cleanup to tonytung-uncrop November 9, 2019 03:48
@ttung ttung force-pushed the tonytung-additional-builders branch from 746eaa2 to 5f4680c Compare November 9, 2019 05:49
@ttung ttung force-pushed the tonytung-additional-builders branch from 5f4680c to 0b6a4dc Compare November 13, 2019 06:39
@ttung ttung force-pushed the tonytung-additional-builders branch from 0b6a4dc to 8669973 Compare November 13, 2019 06:51
@ttung ttung force-pushed the tonytung-additional-builders branch from 8669973 to a65f7cd Compare November 13, 2019 16:05
@ttung ttung force-pushed the tonytung-additional-builders branch 3 times, most recently from 75c46b5 to 7516dd2 Compare November 13, 2019 19:37
@ttung ttung force-pushed the tonytung-additional-builders branch 3 times, most recently from d85eb1e to de76069 Compare November 13, 2019 22:53
@ttung ttung force-pushed the tonytung-additional-builders branch 2 times, most recently from 6276179 to d05355b Compare November 18, 2019 21:24
@ttung ttung force-pushed the tonytung-additional-builders branch 2 times, most recently from 4632f85 to ead1f9c Compare November 18, 2019 21:32
@ttung ttung force-pushed the tonytung-additional-builders branch 2 times, most recently from 45e7a41 to f66bca2 Compare November 18, 2019 21:40
@ttung ttung force-pushed the tonytung-additional-builders branch from f66bca2 to 7ce3d9c Compare November 18, 2019 21:42
@ttung ttung changed the base branch from tonytung-uncrop to master November 18, 2019 21:48
@ttung ttung force-pushed the tonytung-additional-builders branch from 7ce3d9c to 7b732a9 Compare November 18, 2019 21:49
1. `from_binary_arrays_and_ticks` will allow morphological filters to take a set of binary masks, run some processing, and produce another set of binary masks.
2. `from_label_array_and_ticks` will allow image processing tools that produce a labeled image and produce a set of binary masks.

`skimage.feature.watershed` is an example of (2), and indeed, we adapt the existing watershed output to use `from_label_array_and_ticks`

Test plan: pass travis, but mostly `make -j lint mypy && pytest -v -n4  starfish/core/morphology/object/`
Depends on #1632
@ttung ttung force-pushed the tonytung-additional-builders branch from 7b732a9 to 36672e7 Compare November 18, 2019 21:50
@ttung ttung merged commit 2093040 into master Nov 18, 2019
@ttung ttung deleted the tonytung-additional-builders branch November 18, 2019 21:55
ttung pushed a commit that referenced this pull request Nov 18, 2019
Methods to create label arrays, binary arrays, and binary masks.  This is mostly to reduce a bit of copy pasta, and to make it easier to write simple examples in docblocks.

Depends on #1637
Test plan:  pytest starfish/core/morphology/object/binary_mask/test/
ttung pushed a commit that referenced this pull request Dec 5, 2019
BinarizeImage takes an ImageStack and binarizes it into a BinaryMaskCollection.

Depends on #1637
Test plan: add tests for simple binarizing, and to test the input requirements.
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