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

The function imcrop_tosquare in session-0 has a minor problem #102

Open
vibertthio opened this issue Sep 18, 2018 · 0 comments
Open

The function imcrop_tosquare in session-0 has a minor problem #102

vibertthio opened this issue Sep 18, 2018 · 0 comments

Comments

@vibertthio
Copy link

...
            crop = img[max(0, extra // 2 + 1):min(-1, -(extra // 2)), :]
...

The result will not be a square when extra is 1.
For example, the crop is img[1:-1, :] when extra is 1.

It should be:

...
            crop = img[extra // 2:-(extra // 2) - 1, :]
...
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

No branches or pull requests

1 participant