YOUR ACCOUNT

Login or Register to post new topics or replies
Tepearley

Posts: 92
Filters: 9
So I'm playing around with a filter I'm making and I want to add some blur to it but the actual component is waaayyy too slow. Are there any ways of getting the effect without slowing things down so much?
  Details E-Mail
SpaceRay
SpaceRay

Posts: 12302
Filters: 35
YES! this would be a very good thing to find, as there are many things that could be faster, but the blur slows it down much, also would be good for making shadows.

1 - Maybe someone could be possible perhaps to make a script with an blur alternative that maybe could be faster

2 - Or another idea I have just had, is to use the new loops to generate the blur effect with other components, but of course that do not know if this could be faster or slower than the real blur component.

I found something in the forum, but do not know how to do it or if it could work

Quote
Sphinx in 2007 with FF 1.0 on this thread shown here

The DOs and DON'Ts of Filter Construction

Having second thoughts on that entry - its about using offsets to construct a low radius blur as an alternative to using the blur/highpass/sharpen component for low radius filtering (as shown, once we have blur, we also have High Pass and Sharpen).


As said above, maybe this offset construction suggestion could be done using a loop to increase gradually the offset to make the blur effect.

Quote
Sphinx on 2011 wrote in this thread

Selection Width, Height and Center Coordinates

alternatively to your blur attempt, try using maximum or median instead of a blur...
  Details E-Mail
Yuya
2D/3D Generalist

Posts: 4025
Filters: 76
Quote
As said above, maybe this offset construction suggestion could be done using a loop to increase gradually the offset to make the blur effect.


Basically this. But it's as slow anyway.
  Details E-Mail
Tepearley

Posts: 92
Filters: 9
Thanks guys! I figured it would be a tough one. I'm still pretty new to this so I have no idea how to use the loop component yet and I've read on here that it's pretty slow too. It probably would take someone who can write code for a script component to be able to have a faster alternative.
  Details E-Mail
Tepearley

Posts: 92
Filters: 9
Well, the median component doesn't replace the actual blur one but it dose simulate the shallow depth of field look in photos which is what I was going for anyway. Here's a test render from the filter.

  Details E-Mail
Tepearley

Posts: 92
Filters: 9
It's supposed to simulate clear liquid macro photos.
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Here's a simple approach that improves rendering speed especially for large-radius blurs. Turn the radius up and down with and without the "fast" button clicked.

Fast Blur.ffxml
  Details E-Mail
Tepearley

Posts: 92
Filters: 9
Wow! That's blazing fast smile:) Thanks threedee!
  Details E-Mail
SpaceRay
SpaceRay

Posts: 12302
Filters: 35
WOW!!ThreeDee this has been a clever and interesting way of making it faster, just reduce the original and then enlarge it back again to original size!!!

Congratulations on thinking of this and thanks for sharing it in the forum and help us with your knowledge and great ideas!

Although there is something wrong in your filter, the result from enlarging it is NOT exactly the same although quiet close, so I have tried to reduce the size of the radius in the scaled version to make it more similar to the original blur, but yet I have not found the exact number that will match the original blur

Instead of 10 in the remapping, I have tried 2, 5, 8 and 11 and 15 but gives slighty different results, will see which should be the better radius value that will fit to this so you get the closest result to the original blur in the same way that I got it right in the High Pass below

HOW MUCH FASTER IS IT?

Although there is something strange, when testing the filter with 600x600 images it is very clear that the fast version is really much faster and works smoothly, but I have tried to use a 7000x7000 image and the difference is not very high

Original Blur with radius 3 = 2 minutes

Fast Blur with radius 3 = 1 minute 44 seconds

I wonder if it could be that the difference in time is because both do not have exactly the same radius and the result is slighty different? Would need to make more speed test to know it

FASTER HIGH PASS

The best thing from this idea, is that this idea of scaling CAN be applied to OTHERS SLOW components, for example I have tried to use the HIGH PASS that is also slow and it works also well, and even better as I got the best radius value so both results are nearly the same, the difference here is really very, very little and almost identical

To get this I have reduced the remapping value from Maximum 10 to Maximun 2

In a 7000x7000 pixels:

The original High Pass takes 2 minutes 14 second

The new Fast High Pass takes 1 minute 45 seconds

Here is the Fast High Pass filter

Fast High Pass.ffxml
  Details E-Mail
Tepearley

Posts: 92
Filters: 9
From a test I just did using fast blur only I used a 4896 X 3672 at 300 dpi and it took 26.9 seconds for a final render using the Photoshop plugin.

When I added it to the filter I'm working on, it's way faster then the regular blur component but yeah filters with more to them and on higher resolutions are still slow for the final render although fast for the preview render (I forgot what the first render is called haha). It's a surface filter so I'm guessing that would effect it too. It's just in the nature of FF and maybe the team will find a way for the speed issue to be addressed.

Anyway Fast Blur really does look a lot better then the median method and it is faster then the blur component

  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Quote
SpaceRay wrote: the result from enlarging it is NOT exactly the same although quiet close, so I have tried to reduce the size of the radius in the scaled version to make it more similar to the original blur, but yet I have not found the exact number that will match the original blur


That's correct. It is basically just a dirty trick which utilizes the fact that blur is a bitmap-based effect. The only setting which will give you the same exact result is zero scaling. This trick works better with larger blurs; the larger the image and the blur radius, the greater the scale factor up and down can be.

It could possibly be made more "intelligent" by adding a script that calculated the optimum scaling factor from a combination of the image size and blur radius. But I haven't tried it.
  Details E-Mail

Join Our Community!

Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!

33,712 Registered Users
+19 new in 30 days!

153,537 Posts
+6 new in 7 days!

15,348 Topics
+72 new in year!

Create an Account

Online Users Last minute:

44 unregistered users.