albumentations_examples
albumentations_examples copied to clipboard
Support of a special Pad operation
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).
But I can NOT find/implement such an operation/combination in this library. Could u help me?
PadIfNeeded should do the job.
But PadIfNeeded requires the min_height and min_width values. "CenterPadToSquare" of "imgaug" does not require such values.