PBL4
Loading...
Searching...
No Matches
alpha_blending.MaskCreator Class Reference

Public Member Functions

 __init__ (self, image, transparency_factor)
 
 smoothstep (self, edge0, edge1, x)
 
 create_mask (self, image_side, mask_width, image_width)
 
 gammaCorrection (self, gamma)
 
 alpha_blending (self, image_side)
 

Public Attributes

 result_image = None
 
 transparency_factor = transparency_factor
 
int __alpha_gradient = 0:
 
int result_image = 1:
 

Member Function Documentation

◆ alpha_blending()

alpha_blending.MaskCreator.alpha_blending ( self,
image_side )
Applies alpha blending on the gamma-corrected image.

Combines the gamma-corrected part of the image with a black background using the alpha gradient mask.

The documentation for this class was generated from the following file: