e61cab87273085258cd1c806208b983fda5607b6,imgaug/augmenters/convolutional.py,,Emboss,#Any#Any#Any#Any#Any#,249
Before Change
if ia.is_single_number(alpha):
alpha_param = Deterministic(alpha)
elif ia.is_iterable(alpha):
ia.do_assert(len(alpha) == 2, "Expected tuple/list with 2 entries, got %d entries." % (len(alpha),))
alpha_param = Uniform(alpha[0], alpha[1])
elif isinstance(alpha, StochasticParameter):
alpha_param = alpha
else:
raise Exception("Expected float, int, tuple/list with 2 entries or StochasticParameter. Got %s." % (type(alpha),))
if ia.is_single_number(strength):
strength_param = Deterministic(strength)
elif ia.is_iterable(strength):
ia.do_assert(len(strength) == 2, "Expected tuple/list with 2 entries, got %d entries." % (len(strength),))
strength_param = Uniform(strength[0], strength[1])
elif isinstance(strength, StochasticParameter):
strength_param = strength
else:
raise Exception("Expected float, int, tuple/list with 2 entries or StochasticParameter. Got %s." % (type(strength),))
def create_matrices(image, nb_channels, random_state_func):
alpha_sample = alpha_param.draw_sample(random_state=random_state_func)
ia.do_assert(0 <= alpha_sample <= 1.0)
strength_sample = strength_param.draw_sample(random_state=random_state_func)
After Change
over the old image.
alpha_param = iap.handle_continuous_param(alpha, "alpha", value_range=(0, 1.0), tuple_to_uniform=True, list_to_choice=True)
strength_param = iap.handle_continuous_param(strength, "strength", value_range=(0, None), tuple_to_uniform=True, list_to_choice=True)
def create_matrices(image, nb_channels, random_state_func):
alpha_sample = alpha_param.draw_sample(random_state=random_state_func)
ia.do_assert(0 <= alpha_sample <= 1.0)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 43
Instances
Project Name: aleju/imgaug
Commit Name: e61cab87273085258cd1c806208b983fda5607b6
Time: 2018-09-01
Author: kontakt@ajung.name
File Name: imgaug/augmenters/convolutional.py
Class Name:
Method Name: Emboss
Project Name: aleju/imgaug
Commit Name: 9ec3e028461213386116fa2289c21c1cba6db49a
Time: 2018-08-30
Author: kontakt@ajung.name
File Name: imgaug/augmenters/arithmetic.py
Class Name:
Method Name: AdditiveGaussianNoise
Project Name: aleju/imgaug
Commit Name: e61cab87273085258cd1c806208b983fda5607b6
Time: 2018-09-01
Author: kontakt@ajung.name
File Name: imgaug/augmenters/convolutional.py
Class Name:
Method Name: Emboss
Project Name: aleju/imgaug
Commit Name: 8b6dc3a38e9b7c53fb6c3f93dbd726b21c7785ef
Time: 2018-09-01
Author: kontakt@ajung.name
File Name: imgaug/augmenters/convolutional.py
Class Name:
Method Name: DirectedEdgeDetect