cf9fcac0f251a83b0bb800bea15053c6f9fa18bf,imgaug/augmenters/geometric.py,Affine,_warp_skimage,#Affine#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,714
Before Change
output_shape=output_shape,
)
// warp changes uint8 to float64, making this necessary
if image_warped.dtype != image.dtype:
image_warped = image_warped.astype(image.dtype, copy=False)
if return_matrix:
return image_warped, matrix
return image_warped
After Change
if input_dtype == np.bool_:
image_warped = image_warped > 0.5
else:
image_warped = meta.restore_dtypes_(image_warped, input_dtype)
if return_matrix:
return image_warped, matrix
return image_warped
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
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
Project Name: aleju/imgaug
Commit Name: 879b63bdc4cf88f6c2e08ddae845ab590baef45c
Time: 2019-03-30
Author: kontakt@ajung.name
File Name: imgaug/augmentables/normalization.py
Class Name:
Method Name: restore_dtype_and_merge
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