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

Support of a special Pad operation #16

Open
rose-jinyang opened this issue Oct 16, 2021 · 2 comments
Open

Support of a special Pad operation #16

rose-jinyang opened this issue Oct 16, 2021 · 2 comments

Comments

@rose-jinyang
Copy link

rose-jinyang commented Oct 16, 2021

Hello
How are you?
Thanks for contributing to this project.
I am going to implement an operation for center-padding along with the shortest side while keeping the longest side.
There is the operation named "CenterPadToSquare" in "imgaug" library (https://github.com/aleju/imgaug).
image

But I can NOT find/implement such an operation/combination in this library.
Could u help me?

@ternaus
Copy link
Collaborator

ternaus commented Oct 16, 2021

PadIfNeeded should do the job.

@rose-jinyang
Copy link
Author

But PadIfNeeded requires the min_height and min_width values.
"CenterPadToSquare" of "imgaug" does not require such values.

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

2 participants