aa8b2ddf144968084044a944a9efd80ece983b0a,imgaug/augmenters/contrast.py,,adjust_contrast_log,#Any#Any#,263
Before Change
// of size 1
gain = np.float32(gain)
table = min_value + dynamic_range * gain * np.log2(1 + value_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_log(arr, gain=gain)
After Change
// of size 1
gain = np.float32(gain)
table = min_value + dynamic_range * gain * np.log2(1 + value_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_log(arr, gain=gain)
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_log
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_log
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_sigmoid