focus length while all other camera options remain static. Image 1 focus at the closest object, Image 4 at the infinite. By applying focus stacking, we can get a crisp image focused at all lengths
hide wrong white “pixels” Apply thresholding to reveal bright areas in picture Erode and dilate to discover the full bright area To detect multiple regions as one: use connected component labeling Find contours of bright spots and paint them Expand light sphere with a slider * *Tried to use spherical harmonics for this but it was not possible due to lack of depth image with 3d points representation. Change color temperature of light sphere Save output Make a mask of bright spot contour + gradient All steps are automatic