You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now the affine shear function does a horizontal shear. Are there plans to add shearing in the vertical direction? Or is there another way of doing it?
The text was updated successfully, but these errors were encountered:
That is currently not in the library.
You could hack it by subclassing imgaug.augmenters.geometric.Affine. Assuming that you use the cv2 backend in Affine, you would have to overwrite the method Affine._warp_cv2(...). Most of the code would be completely identical with the current code of the method, but the generation of the affine transformation matrix
scikit-image's transform.AffineTransform (documentation) only supports shearing in horizontal direction, but I think you could get vertical direction by computing
the affine transformation matrix to rotate by -90°
the affine transformation matrix to apply the desired shearing in degrees (in horizontal direction)
the affine transformation matrix to rotate by +90°
the affine transformation matrix to apply the remaining parameters (same as in the code block above, but without shearing)
These matrices could then be multiplied to get the final affine transformation matrix.
Right now the affine shear function does a horizontal shear. Are there plans to add shearing in the vertical direction? Or is there another way of doing it?
The text was updated successfully, but these errors were encountered: