Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@alessiamarcolini
Copy link
Collaborator

Fixes #267

@alessiamarcolini alessiamarcolini force-pushed the fix-polygon-to-mask-array-dims branch from 1fee94d to 6160f0b Compare May 18, 2021 21:35
@alessiamarcolini alessiamarcolini added this to the 0.2.6 milestone May 18, 2021
@codecov
Copy link

codecov bot commented May 18, 2021

Codecov Report

Merging #268 (ed15e91) into master (acc0f82) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #268   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           17        17           
  Lines         1207      1207           
  Branches       114       114           
=========================================
  Hits          1207      1207           
Impacted Files Coverage Δ
src/histolab/masks.py 100.00% <100.00%> (ø)
src/histolab/util.py 100.00% <100.00%> (ø)

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 acc0f82...ed15e91. Read the comment docs.

@ernestoarbitrio
Copy link
Member

General comment, why move a polygon to a rectangle for the mask array operation? @alessiamarcolini can you give me a rationale of this choice?

@alessiamarcolini
Copy link
Collaborator Author

I changed the naming because a polygon can have more than 4 vertices and we explicitly require a CoordinatePair which corresponds to 4 vertices. Probably a more appropriate name would be "quadrilateral" but to me it's a bit ugly... @ernestoarbitrio what do you think?

@ernestoarbitrio
Copy link
Member

I changed the naming because a polygon can have more than 4 vertices and we explicitly require a CoordinatePair which corresponds to 4 vertices. Probably a more appropriate name would be "quadrilateral" but to me it's a bit ugly... @ernestoarbitrio what do you think?

gotcha , I would say that your name is absolutely appropriate. So let's keep it

Copy link
Member

@ernestoarbitrio ernestoarbitrio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just single comment, otherwise LGTM

@alessiamarcolini alessiamarcolini merged commit 244bf0d into master May 20, 2021
@alessiamarcolini alessiamarcolini deleted the fix-polygon-to-mask-array-dims branch May 20, 2021 09:25
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.

polygon_to_mask_array returns mask with inverted shape

3 participants