Logo by bib - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Visit us on facebook
 
*
Welcome, Guest. Please login or register. April 25, 2024, 09:08:15 PM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: Parametric color mapping techniques  (Read 5494 times)
0 Members and 2 Guests are viewing this topic.
bkercso
Fractal Lover
**
Posts: 220



« on: July 17, 2015, 01:49:51 AM »

Hi,

I developed a new color mapping function that is better (ie. results nicer images) than logarithmic one for bifurcation fractals and maybe for other type of fractals. I call it "hyperbolic" coloring. This has a parameter which I call "reveal".

The function is (where x is the count density of pixel, min and max are min. and max. of xs):
Code:
MAXX:=max;
min:=abs(1/(min/MAXX+reveal)-1/reveal);
max:=abs(1/(max/MAXX+reveal)-1/reveal);
x:=abs(1/(x/MAXX+reveal)-1/reveal);

color[0..255]=(x-min)/(max-min)*255;

And my logarithmic coloring function for x>=0 values is:
Code:
min:=ln(min+1.1);
max:=ln(max+1.1);
x:=ln(x+1.1);

color[0..255]=(x-min)/(max-min)*255;

Here is a comparison graph of this hyperbolic and logarithmic coloring. What you can see is hyperbolic method reveals better the differences in lower range of xs. If reveal is lower lower range of xs will be revealed. reveal=0.001..0.1 is recommended, but it depends on max.



Hope you will enjoy it; and please write here other useful formulas which you find (or put this post to the proper topic...)! wink


Regards,
Bert
« Last Edit: July 17, 2015, 02:44:53 AM by bkercso » Logged
bkercso
Fractal Lover
**
Posts: 220



« Reply #1 on: July 17, 2015, 02:03:39 AM »

Feel the difference!!

Logged
bkercso
Fractal Lover
**
Posts: 220



« Reply #2 on: July 17, 2015, 02:20:35 AM »

Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Non-parametric color mapping techniques Programming « 1 2 » HPDZ 20 20509 Last post May 16, 2017, 12:55:21 AM
by FractalStefan
Some Buddhabrot questions / techniques Programming asimes 12 12130 Last post March 13, 2012, 05:00:36 PM
by ker2x
Mixing DE techniques Programming tryptophan 3 5299 Last post May 28, 2013, 03:04:47 AM
by tryptophan
Mandelbulb 3D - color-mapping question ("Fabergè Experiment") Help & Support m2001 1 608 Last post May 24, 2015, 01:25:01 PM
by m2001
Better color/texture mapping options. feature request Weber 2 4996 Last post April 04, 2016, 04:35:04 PM
by MarkJayBee

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.263 seconds with 27 queries. (Pretty URLs adds 0.009s, 2q)