YOUR ACCOUNT

Login or Register to post new topics or replies
xirja
Idididoll Forcabbage

Posts: 1698
Filters: 8
Predominant Colors by Elentor
http://www.filterforge.com/filters/14372.html

_____________________________________________________

http://web.archive.org/web/2021062908...rjadesign/
_____________________________________________________
  Details E-Mail
xirja
Idididoll Forcabbage

Posts: 1698
Filters: 8
Great concept here. It would be perfect if you could rewrite the script to output across the row and then scale down instead of up. The scale component is a major slowdown. Otherwise an excellent filter.
_____________________________________________________

http://web.archive.org/web/2021062908...rjadesign/
_____________________________________________________
  Details E-Mail
Fernanda Pires
Fpires
Posts: 35
Filters: 17
Hey, thanks.

There's not much I can do about it at the moment that I know, but I'm open to suggestions from seasoned snippet writers. I added the scale component with the intent to allow you to visualize it quickly if you just want the color output in a few pixels - the script would be a lot faster if it only ran once instead of once per pixel but that would require either:

1) Access to bitmaps from the Prepare() function
2) Buffer a pixel in memory so that it's not re-rendered when it's accessed.

The way it works right now is that even if you're scaling the exact same pixel across multiple other pixels, the original Map function is called every time that happens. Otherwise we could output just four pixels and then scale their final bitmap values for what would be a gigantic increase in performance.
  Details E-Mail
xirja
Idididoll Forcabbage

Posts: 1698
Filters: 8
Had hacked apart Bitmap buffer for my own 1 channel x(top row only) streamlined purposes. I can't seem to get it back to a functional 4 channel script, and add a second buffer, but hopefully this will help?

Predominant Colors 3.ffxml
_____________________________________________________

http://web.archive.org/web/2021062908...rjadesign/
_____________________________________________________
  Details E-Mail
Fernanda Pires
Fpires
Posts: 35
Filters: 17
Oh I didn't know about that snippet. That's a clever idea. And it's indeed much faster and opens up room for a lot of improvements in the algorithm.

I'll play around with it and release an update. Thanks!
  Details E-Mail
xirja
Idididoll Forcabbage

Posts: 1698
Filters: 8
Cheers, thank you!
_____________________________________________________

http://web.archive.org/web/2021062908...rjadesign/
_____________________________________________________
  Details E-Mail
xirja
Idididoll Forcabbage

Posts: 1698
Filters: 8
smile:fairy: You done did it! Awesome update!
_____________________________________________________

http://web.archive.org/web/2021062908...rjadesign/
_____________________________________________________
  Details E-Mail
Indigo Ray
Adam

Posts: 1442
Filters: 82
Neat, now I can automatically fill an image with similar colors. smile8)
Sort of automatically... the controls can be finicky.

  Details E-Mail
xirja
Idididoll Forcabbage

Posts: 1698
Filters: 8
Yeah, this Image may be helpful to debug the color code. Probably the rectangular
nature that makes it so hard. Random offsets will likely fix this one.

_____________________________________________________

http://web.archive.org/web/2021062908...rjadesign/
_____________________________________________________
  Details E-Mail
Fernanda Pires
Fpires
Posts: 35
Filters: 17
I'm gonna remove the grid component in a future update. Its original purpose was to speed up the filter by turning every image into a 8x8 grid. I didn't want to remove it now because the filter already existed and someone might already have their settings configured.

For now it's kinda simple to remove it, just link the image directly into the nodes that use the grid. This should improve the precision of the filter a lot.
  Details E-Mail

Join Our Community!

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

33,711 Registered Users
+18 new in 30 days!

153,531 Posts
+36 new in 30 days!

15,347 Topics
+72 new in year!

Create an Account

Online Users Last minute:

10 unregistered users.