Build a Gaussian mask

Hi everybody,

Does any body have idea for following problem:

b) build an opaque mask
c) control the transparency (alpha channel) of the mask in an arbitrary point of the mask according to a 2D Gaussian profile. That is, the alpha channel of the mask should smoothly go from min = 0 = fully transparent (in the center of the Gaussian) to max = 1 = fully opaque (outside the Gaussian).
d) allow the application of multiple Gaussian bubbles of various size in arbitrary points of the mask (i.e., control Number, Sigma, and Centers of the Gaussians)
e) once the punctured mask is built, apply it to the previously loaded image

I have no idea how to build the Gaussian mask. Is there any idea?


Some answers for you over here