Skip to main content
smarts19193560
Inspiring
January 29, 2018
Question

Can I apply blur to x only or y only by fastBlur()?

  • January 29, 2018
  • 1 reply
  • 932 views

Hi, All.

I use AEGP_FastBlur function for blur effects.

Now I'd like to apply blur to x only or y only.

Is it possible with AEGP_FastBlur? or Is there any another way?

Regards,

Anthonie.

This topic has been closed for replies.

1 reply

Community Expert
January 29, 2018

i don't think you can specify an axis for fast blur.

you can use convolve() with a 1D kernel, but it's really slow compared to

fast blur.

you can also copy the image onto another buffer shrinking it on the blur

axis by the pixel size (i.e 2 pixel blur on Y = 0.5 scale on Y), and then

copy back scaling up by the opposite factor. you'll get a blur of sorts...

or you can write your own blur function.

On Mon, Jan 29, 2018 at 12:20 PM, smarts19193560 <forums_noreply@adobe.com>

smarts19193560
Inspiring
January 29, 2018

Thank you. Shachar.

I will try it.

Regards,

Anthonie.

Inspiring
January 29, 2018

I wrote my own function especially because of this reason.

I adapted this (algorithm 4) from Javascript. It's very fast indeed.

Fastest Gaussian Blur (in linear time)