albumentations_examples icon indicating copy to clipboard operation
albumentations_examples copied to clipboard

Support of a special Pad operation

Open rose-jinyang opened this issue 3 years ago • 2 comments

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?

rose-jinyang avatar Oct 16 '21 06:10 rose-jinyang

PadIfNeeded should do the job.

ternaus avatar Oct 16 '21 13:10 ternaus

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

rose-jinyang avatar Oct 17 '21 06:10 rose-jinyang