# Simple way to replicate bloom (glow) effect in image using Matlab?

I have some simulated images of light bulbs in Matlab. What I want to do is replicate the bloom (glow) effect on these images. The degree of the effect (i.e. how much the light bulbs bloom) should be controllable.

Is there any implemented function in Matlab Image Processing Toolbox help me to achieve this. Or is there any simple algorithm for this. I don't want a sophisticated algorithm since I don't require the bloom effect to be precisely replicated.

I would appreciate any suggestion.

Thank you.

Work in a linear gamma (intensity-linear) color space. Create a Gaussian blurred version of the image. I don't have MATLAB to try it, but it can be done using imgaussfilt. Then add some of the blurred image to the original image, or mix the two images to taste.