Login - Create Account
Bookmark and Share

Plastered by jitspoe

Login or Register to post new topics or replies
jitspoe
Posts: 187
Filters: 27
Plastered by jitspoe
http://www.filterforge.com/filters/9408.html

Image
  Details E-Mail
jitspoe
Posts: 187
Filters: 27
Doing a blur on a bunch of noise is slow. Any ideas on a faster way to get the average color?
  Details E-Mail
jffe
Posts: 2761
Filters: 88
Quote
jitspoe wrote:
Any ideas on a faster way to get the average color?


----There's a module under *External* called -Average Color-, perhaps that could be used ? (I don't have FF2, so I can't look inside this filter to see if I understand what you are asking for/about, I'm just going by the exact words/wording you've used.)

jffe
Filter Forger
  Details E-Mail
Sphinx.
Filter Optimizer

Posts: 1344
Filters: 38
Nice plaster filter!

Yes there is a way to get approximate average quite fast (and the precision is adjustable).

I attached a modified version with the approx. method.

Basically I reduce sample rate before blurring (makes the blur step faster) and then only look up the center sample from the blur (since its an average color, we can use a sample from any location).

Note that the Checker component must be set to solid fill. Increase Repeat H and V to increase precision and lower speed. Decrease to get better performance/lower precision.
The reason why I used inclined setting is to reduce checker alignment with the box blur.

If you want to compare speed with the original approach, make sure you reconnect the blur inputs on every test (otherwise you'll be tricked by FFs caching)

Plastered - Sphinx.ffxml
Njyldgarkn sample cache!
  Details E-Mail
W.B.
W.B.
Posts: 11
Too slow rendering,or perhaps my poor cpu smile:(
  Details E-Mail

Join Our Community!

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

15,377 Registered Users
+6 new last day!

112,622 Posts
+90 new in 7 days!

10,102 Topics
+16 new in 7 days!

Online Users Last 15 minutes:

8 unregistered users.

Recent Wiki Edits:

Follow filterforge on Twitter