I was wondering if I can use imgaug to resize an image using the logic often used in object detection algorithms. It works like this in pseudo code (or a pytorch example):
It seems a similar thing is possible by using shorter-side and longer-side in Resize, but it only allows keeping the same aspect ratio by defining a shorter-sideOR a longer-side.
I was wondering if I can use
imgaug
to resize an image using the logic often used in object detection algorithms. It works like this in pseudo code (or a pytorch example):It seems a similar thing is possible by using
shorter-side
andlonger-side
inResize
, but it only allows keeping the same aspect ratio by defining ashorter-side
OR alonger-side
.I would expect something like: