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

add rescale_to_diagonal, diagonal property to Image #442

Merged
merged 3 commits into from
Sep 13, 2014

Conversation

jabooth
Copy link
Member

@jabooth jabooth commented Sep 11, 2014

.diagonal on Image reports the diagonal size of the Image in pixels. .rescale_to_diagonal(diag) is useful if you want to coarsely make un-annotated images a certain size without worrying about aspect ratios.

@patricksnape
Copy link
Contributor

Perhaps a quick unit test for the old diagonal? Make sure it's coming out at the correct shape?

@jabooth
Copy link
Member Author

jabooth commented Sep 13, 2014

@patricksnape fair comment, this was a little rushed! Added tests for property and the method.

@patricksnape
Copy link
Contributor

+1

jabooth added a commit that referenced this pull request Sep 13, 2014
add rescale_to_diagonal, diagonal property to Image
@jabooth jabooth merged commit b01855b into menpo:master Sep 13, 2014
@jabooth jabooth deleted the rescaletodiag branch September 13, 2014 08:01
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.

None yet

2 participants