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

Use exact minimal bounding box for rectangular region #114

Merged
merged 3 commits into from
Feb 24, 2017

Conversation

larrybradley
Copy link
Member

@larrybradley larrybradley commented Feb 23, 2017

The current bounding box for rectangular regions is defined to contain the rectangle at all rotation angles.

The minimal bounding box here is defined for the "exact" rectangular region. Note that for a mask defined with mode="center", the bounding box could have an extra pixel of padding on each side.

@larrybradley
Copy link
Member Author

Example:

The red outline is the region. The cyan outline is the bounding box. The image data is the region mask.

Old:
old

New:
new

@larrybradley larrybradley added this to the 0.3 milestone Feb 23, 2017
@cdeil
Copy link
Member

cdeil commented Feb 23, 2017

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants