Page 1 of 1

Semi-precise Gaussian?

Posted: May 11th, 2021, 3:53 pm
by Robert Schleif
Sometimes I want to blur a background without bleeding and with a blur radius quite a lot larger than 64 pixels (Being faster than Precise Gaussian wouldn't hurt either.). Might a transformation be developed that uses the box filter blurring method as in Gaussian Blur with a mask that functions like the Blur Mask in the Precise Gaussian?

Re: Semi-precise Gaussian?

Posted: May 11th, 2021, 5:52 pm
by jsachs
Unfortunately you cannot use the box filter with a mask. Once you start using a mask, it is actually faster to do use a real gaussian than to make two passes with a box filter. I could increase the maximum radius, but the running time is proportional to the square of the radius.

Re: Semi-precise Gaussian?

Posted: May 12th, 2021, 7:32 pm
by Robert Schleif
If the mask had hard edges, I've wondered about reducing the area of the image and mask a factor of 25 ( x 1/5 in each direction), performing a precise Gaussian on the resized image with the resized mask, then resizing the blurred image back to the original size, and finally using Composite with the original mask to generate the original image that is precise Gaussian blurred as specified by the mask. If this produces decently blurring results, perhaps this procedure could be an option within Precise Gaussian.