Description:
When one uses skew_left_right(), the image is cropped to fit original image size and hence, content is lost.
For example:
Original:

After skewing:

As you can see the content is clipped at top-right and bottom-right corners.
How can I skew in a fashion that preserves content at the expense of larger (or changed) image sizes ?
Language/Compiler:
Python 3.7
OS:
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
Version:
0.2.9
How to recreate:
Sample input image -

import Augmentor
p = Augmentor.Pipeline("<image-location>")
p.skew_left_right(probability=1.0, magnitude=0.5)
p.sample(3)
What i have already done to resolve the issue:
peruse documentation - https://augmentor.readthedocs.io/en/master/userguide/mainfeatures.html
and code on github -
|
def skew_left_right(self, probability, magnitude=1): |
Description:


When one uses skew_left_right(), the image is cropped to fit original image size and hence, content is lost.
For example:
Original:
After skewing:
As you can see the content is clipped at top-right and bottom-right corners.
How can I skew in a fashion that preserves content at the expense of larger (or changed) image sizes ?
Language/Compiler:
Python 3.7
OS:
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
Version:
0.2.9
How to recreate:

Sample input image -
What i have already done to resolve the issue:
peruse documentation - https://augmentor.readthedocs.io/en/master/userguide/mainfeatures.html
and code on github -
Augmentor/Augmentor/Pipeline.py
Line 1366 in daf4478