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

Provide an apply method to binary mask collections. #1655

Merged
merged 1 commit into from
Nov 22, 2019

Conversation

ttung
Copy link
Collaborator

@ttung ttung commented Nov 18, 2019

This allows a method to be applied to the individual masks and constituted into a new binary mask collection.

Depends on #1653
Test plan: Wrote a test that performed binary dilation on the standard set of masks used for testing, and verified the results were somewhat sane.

@ttung ttung requested a review from shanaxel42 November 18, 2019 06:21
@codecov-io
Copy link

codecov-io commented Nov 18, 2019

Codecov Report

Merging #1655 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1655      +/-   ##
=========================================
+ Coverage   90.06%   90.1%   +0.04%     
=========================================
  Files         223     223              
  Lines        8563    8599      +36     
=========================================
+ Hits         7712    7748      +36     
  Misses        851     851
Impacted Files Coverage Δ
...re/morphology/binary_mask/test/test_binary_mask.py 96.07% <100%> (+0.95%) ⬆️
...tarfish/core/morphology/binary_mask/binary_mask.py 95% <100%> (+0.48%) ⬆️

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 995db89...5bd39db. Read the comment docs.

@ttung ttung force-pushed the tonytung-binary-mask-apply branch from 5b81f31 to 67e156f Compare November 18, 2019 07:57
@ttung ttung force-pushed the tonytung-binary-mask-col-factories branch from fde868a to a3a126b Compare November 18, 2019 18:52
@ttung ttung force-pushed the tonytung-binary-mask-apply branch from 67e156f to 87cef15 Compare November 18, 2019 18:52
@ttung ttung force-pushed the tonytung-binary-mask-col-factories branch from a3a126b to bb8c6a4 Compare November 18, 2019 20:55
@ttung ttung force-pushed the tonytung-binary-mask-apply branch from 87cef15 to 0a6650a Compare November 18, 2019 20:55
@ttung ttung force-pushed the tonytung-binary-mask-col-factories branch from bb8c6a4 to 26a12d9 Compare November 18, 2019 21:24
@ttung ttung force-pushed the tonytung-binary-mask-apply branch from 0a6650a to 05557b9 Compare November 18, 2019 21:24
@ttung ttung force-pushed the tonytung-binary-mask-col-factories branch from 26a12d9 to d69ddf3 Compare November 18, 2019 21:27
@ttung ttung force-pushed the tonytung-binary-mask-apply branch from 05557b9 to ba23d8e Compare November 18, 2019 21:27
@ttung ttung force-pushed the tonytung-binary-mask-col-factories branch from d69ddf3 to f12e14d Compare November 18, 2019 21:32
@ttung ttung force-pushed the tonytung-binary-mask-apply branch from ba23d8e to 57e22c7 Compare November 18, 2019 21:32
@ttung ttung force-pushed the tonytung-binary-mask-col-factories branch from f12e14d to ddc6148 Compare November 18, 2019 21:34
@ttung ttung force-pushed the tonytung-binary-mask-apply branch from 57e22c7 to 00a0c58 Compare November 18, 2019 21:34
@ttung ttung force-pushed the tonytung-binary-mask-col-factories branch from ddc6148 to abc468d Compare November 18, 2019 21:40
@ttung ttung force-pushed the tonytung-binary-mask-apply branch from 00a0c58 to 0017809 Compare November 18, 2019 21:40
@ttung ttung force-pushed the tonytung-binary-mask-col-factories branch from abc468d to ff2c472 Compare November 18, 2019 21:42
@ttung ttung force-pushed the tonytung-binary-mask-apply branch from 0017809 to d5f4f42 Compare November 18, 2019 21:42
@ttung ttung force-pushed the tonytung-binary-mask-col-factories branch from ff2c472 to e9e12d2 Compare November 18, 2019 21:49
@ttung ttung force-pushed the tonytung-binary-mask-apply branch 3 times, most recently from 5e90a78 to efe3314 Compare November 18, 2019 21:53
@ttung ttung changed the base branch from tonytung-binary-mask-col-factories to master November 18, 2019 21:57
@ttung ttung force-pushed the tonytung-binary-mask-apply branch from efe3314 to 098435d Compare November 18, 2019 21:57
@ttung ttung force-pushed the tonytung-binary-mask-apply branch from 098435d to 04627c7 Compare November 18, 2019 23:33
@ttung ttung force-pushed the tonytung-binary-mask-apply branch from 04627c7 to 963fc4d Compare November 20, 2019 21:36
This allows a method to be applied to the individual masks and constituted into a new binary mask collection.

Depends on #1653
Test plan: Wrote a test that performed binary dilation on the standard set of masks used for testing, and verified the results were somewhat sane.
@ttung ttung force-pushed the tonytung-binary-mask-apply branch from 963fc4d to 5bd39db Compare November 20, 2019 22:50
@ttung ttung merged commit 6cc087f into master Nov 22, 2019
ttung pushed a commit that referenced this pull request Nov 22, 2019
This PR introduces filters to take a binary mask collection to produce another binary mask collection.

A map filter is added that can take arbitrary methods in numpy/scipy/skimage and run them against the binary masks.

Depends on #1655
Test plan: Added a simple test that does binary dilation on binary masks.
ttung pushed a commit that referenced this pull request Nov 22, 2019
This PR introduces filters to take a binary mask collection to produce another binary mask collection.

A map filter is added that can take arbitrary methods in numpy/scipy/skimage and run them against the binary masks.

Depends on #1655
Test plan: Added a simple test that does binary dilation on binary masks.
@ttung ttung deleted the tonytung-binary-mask-apply branch November 22, 2019 17:58
ttung pushed a commit that referenced this pull request Dec 13, 2019
This is the counterpart to the apply provided in #1655.

Test plan: Added a test that reduced using xors. Because we have boring test data that don't overlap, this is one way of generating interesting output.
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