8eb4cb520a5ccfca9c25e849ccf0e17b1cd0659d,imgaug/augmenters/geometric.py,PerspectiveTransform,_augment_images,#PerspectiveTransform#Any#Any#Any#Any#,1811
Before Change
// cv2.warpPerspective only supports <=4 channels
nb_channels = images[i].shape[2]
dtype = images[i].dtype
if dtype not in [np.float32, np.float64, np.uint8]:
images[i] = images[i].astype(np.float64) // e.g. np.int32
if nb_channels <= 4:
warped = cv2.warpPerspective(images[i], M, (max_width, max_height))
if warped.ndim == 2 and images[i].ndim == 3:
warped = np.expand_dims(warped, 2)
After Change
h, w = image.shape[0:2]
warped = ia.imresize_single_image(warped, (h, w), interpolation="cubic")
if input_dtype == np.bool_:
warped = warped > 0.5
elif warped.dtype != input_dtype:
warped = meta.restore_dtypes_(warped, input_dtype)
result[i] = warped
return result
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: aleju/imgaug
Commit Name: 8eb4cb520a5ccfca9c25e849ccf0e17b1cd0659d
Time: 2018-12-23
Author: alexander.jung@zenuity.com
File Name: imgaug/augmenters/geometric.py
Class Name: PerspectiveTransform
Method Name: _augment_images
Project Name: aleju/imgaug
Commit Name: e12d86d75eba0fae8592a8b086806155b320cb60
Time: 2018-12-19
Author: kontakt@ajung.name
File Name: imgaug/augmenters/blur.py
Class Name: AverageBlur
Method Name: _augment_images
Project Name: aleju/imgaug
Commit Name: cf9fcac0f251a83b0bb800bea15053c6f9fa18bf
Time: 2018-12-24
Author: alexander.jung@zenuity.com
File Name: imgaug/augmenters/geometric.py
Class Name: Affine
Method Name: _warp_skimage