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

Methods for uncropping binary masks. #1647

Merged
merged 1 commit into from
Nov 18, 2019
Merged

Methods for uncropping binary masks. #1647

merged 1 commit into from
Nov 18, 2019

Conversation

ttung
Copy link
Collaborator

@ttung ttung commented Nov 9, 2019

The existing builders for binary masks crop the masks to the smallest box that fits the non-zero data. This adds a method to reverse the crop when retrieving the masks. Documentation is also added to the builders' docblocks to indicate that they crop the masks.

Note that the constructor of BinaryMaskCollection does not crop the masks. The builders decide what they want to do.

Depends on #1632
Test plan: Add tests to verify the uncropping works as expected.

@codecov-io
Copy link

codecov-io commented Nov 9, 2019

Codecov Report

❗ No coverage uploaded for pull request base (tonytung-coordinate-cleanup@5453a59). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@                      Coverage Diff                       @@
##             tonytung-coordinate-cleanup    #1647   +/-   ##
==============================================================
  Coverage                               ?   89.75%           
==============================================================
  Files                                  ?      220           
  Lines                                  ?     8290           
  Branches                               ?        0           
==============================================================
  Hits                                   ?     7441           
  Misses                                 ?      849           
  Partials                               ?        0
Impacted Files Coverage Δ
...re/morphology/binary_mask/test/test_binary_mask.py 95.95% <100%> (ø)
...tarfish/core/morphology/binary_mask/binary_mask.py 89.81% <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 5453a59...922f2be. Read the comment docs.

@ttung ttung force-pushed the tonytung-uncrop branch 3 times, most recently from eb49e05 to c44608b Compare November 13, 2019 16:05
@ttung ttung force-pushed the tonytung-coordinate-cleanup branch from c0a165b to f61fe5f Compare November 13, 2019 18:58
@ttung ttung force-pushed the tonytung-coordinate-cleanup branch from f61fe5f to 91b5518 Compare November 13, 2019 19:33
@ttung ttung force-pushed the tonytung-uncrop branch 6 times, most recently from 84c0133 to d950271 Compare November 16, 2019 00:21
@ttung ttung force-pushed the tonytung-coordinate-cleanup branch from 3aee79b to abcb24f Compare November 17, 2019 22:11
@ttung ttung force-pushed the tonytung-uncrop branch 5 times, most recently from fd63cdb to 922f2be Compare November 18, 2019 20:55
@ttung ttung force-pushed the tonytung-coordinate-cleanup branch from 5453a59 to 915a4a6 Compare November 18, 2019 21:24
@ttung ttung force-pushed the tonytung-uncrop branch 2 times, most recently from 5806efa to 7339bfd Compare November 18, 2019 21:27
@ttung ttung changed the base branch from tonytung-coordinate-cleanup to master November 18, 2019 21:28
@ttung ttung force-pushed the tonytung-uncrop branch 3 times, most recently from 09e4e42 to f16ede2 Compare November 18, 2019 21:40
The existing builders for binary masks crop the masks to the smallest box that fits the non-zero data.  This adds a method to reverse the crop when retrieving the masks.  Documentation is also added to the builders' docblocks to indicate that they crop the masks.

Note that the constructor of BinaryMaskCollection does _not_ crop the masks.  The builders decide what they want to do.

Depends on #1632
Test plan: Add tests to verify the uncropping works as expected.
@ttung ttung merged commit 7a09703 into master Nov 18, 2019
@ttung ttung deleted the tonytung-uncrop branch November 18, 2019 21:48
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