blender module

blender module#

class selective_blur.blending.blender.Blender(original_image: ndarray, mask: ndarray, image_blurred: ndarray)[source]#

Bases: object

class to blend the blurred image with the masked subject from the original image

blend()[source]#

Blends original image with mask by choosing the weight beta (from 0 to 1, step of 0.1) of mask with a Jupyter widget slider (weight of original image alpha = 1 - beta)