beacon_aug/external/textflow/effects.py
def sample_normal(self, color_mean, color_std):
        """
        sample RGB color from a normal distribution
        :param color_mean: mean of the normal distribution
        :param color_std: stander deviation of the normal distribution
        :return: RGB color vector
        """
        color_sample = color_mean + color_std * np.random.randn()
        return np.clip(color_sample, 0, 255).astype(np.uint8)

        sample RGB color from a normal distribution
        :param color_mean: mean of the normal distribution
        :param color_std: stander deviation of the normal distribution
        :return: RGB color vector
        
sample RGB color from a normal distribution
sample RGB color from a normal distribution
def sample_normal(self, color_mean, color_std):
        color_sample = color_mean + color_std * np.random.randn()
        return np.clip(color_sample, 0, 255).astype(np.uint8)
def sample_normal ( self , color_mean , color_std ) : color_sample = color_mean + color_std * np . random . randn ( ) return np . clip ( color_sample , 0 , 255 ) . astype ( np . uint8 )
sample RGB color from a normal distribution
sample RGB color from a normal distribution
"""
        sample RGB color from a normal distribution
        :param color_mean: mean of the normal distribution
        :param color_std: stander deviation of the normal distribution
        :return: RGB color vector
        """
RGB color vector
RGB color vector
self
color_mean
mean of the normal distribution
mean of the normal distribution
color_std
stander deviation of the normal distribution
stander deviation of the normal distribution