aa8b2ddf144968084044a944a9efd80ece983b0a,imgaug/augmenters/contrast.py,,adjust_contrast_gamma,#Any#Any#,94
Before Change
table = (min_value
+ (value_range ** np.float32(gamma))
* dynamic_range)
arr_aug = cv2.LUT(
arr, np.clip(table, min_value, max_value).astype(arr.dtype))
if arr.ndim == 3 and arr_aug.ndim == 2:
return arr_aug[..., np.newaxis]
return arr_aug
return ski_exposure.adjust_gamma(arr, gamma)
After Change
table = (min_value
+ (value_range ** np.float32(gamma))
* dynamic_range)
table = np.clip(table, min_value, max_value).astype(arr.dtype)
arr_aug = ia.apply_lut(arr, table)
return arr_aug
return ski_exposure.adjust_gamma(arr, gamma)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 16
Instances
Project Name: aleju/imgaug
Commit Name: aa8b2ddf144968084044a944a9efd80ece983b0a
Time: 2020-01-07
Author: kontakt@ajung.name
File Name: imgaug/augmenters/contrast.py
Class Name:
Method Name: adjust_contrast_gamma
Project Name: aleju/imgaug
Commit Name: aa8b2ddf144968084044a944a9efd80ece983b0a
Time: 2020-01-07
Author: kontakt@ajung.name
File Name: imgaug/augmenters/contrast.py
Class Name:
Method Name: adjust_contrast_gamma
Project Name: aleju/imgaug
Commit Name: aa8b2ddf144968084044a944a9efd80ece983b0a
Time: 2020-01-07
Author: kontakt@ajung.name
File Name: imgaug/augmenters/contrast.py
Class Name:
Method Name: adjust_contrast_linear
Project Name: aleju/imgaug
Commit Name: aa8b2ddf144968084044a944a9efd80ece983b0a
Time: 2020-01-07
Author: kontakt@ajung.name
File Name: imgaug/augmenters/contrast.py
Class Name:
Method Name: adjust_contrast_sigmoid
Project Name: aleju/imgaug
Commit Name: aa8b2ddf144968084044a944a9efd80ece983b0a
Time: 2020-01-07
Author: kontakt@ajung.name
File Name: imgaug/augmenters/contrast.py
Class Name:
Method Name: adjust_contrast_log