Continuation: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>Monkbot
en>SporkBot
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[Image:Electricsheep-14156.jpg|thumb|300px|A fractal flame created by the [[Electric Sheep]].]]
I'm Richelle and I live in Munstermaifeld. <br>I'm interested in Biochemistry, Gongoozling and French art. I like travelling and watching Arrested Development.<br><br>Here is my web page :: [https://www.youtube.com/watch?v=JcP2k3KKkuU fifa 14 coin generator ios]
[[Image:Swirly belt444.jpg|thumb|300px|Fractal flame created in [[Apophysis (software)|Apophysis]].]]
'''Fractal flames''' are a member of the [[iterated function system]] class<ref>Mitchell Whitelaw (2004).  ''Metacreation: Art and Artificial Life''.  MIT Press. pp 155.</ref> of [[fractal]]s created by [[Scott Draves]] in 1992.<ref name="apophysis">{{cite web|url=http://apophysis.wikispaces.com/|title=Information about Apophysis software|accessdate=2008-03-11}}</ref> Draves' open-source code was later ported into [[Adobe After Effects]] graphics software<ref>Chris Gehman and Steve Reinke (2005).  ''The Sharpest Point: Animation at the End of Cinema''.  YYZ Books. pp 269.</ref> and translated into the [[Apophysis (software)|Apophysis]] fractal flame editor.<ref name="apophysis" />
 
Fractal flames differ from ordinary iterated function systems in three ways:
* [[Nonlinear]] functions are [[Iteration|iterated]] instead of [[Affine transformation|affine transforms]].
* Log-density display instead of linear or binary (a form of [[tone mapping]])
* Color by structure (i.e. by the recursive path taken) instead of monochrome or by density.
 
The tone mapping and coloring are designed to display as much of the detail of the fractal as possible, which generally results in a more aesthetically pleasing image.
 
== Algorithm ==
 
The algorithm consists of two steps: creating a histogram and then rendering the histogram.
 
===Creating the histogram===
First one iterates a set of functions, starting from a randomly chosen point ''P = (P.x,P.y,P.c)'', where the third coordinate indicated the current color of the point.
 
:Set of flame functions: <math>\begin{cases}
F_1(x,y), \quad p_1 \\
F_2(x,y), \quad p_2 \\
\dots \\
F_n(x,y), \quad p_n
\end{cases}</math>
 
In each iteration, choose one of the functions above where the probability that ''F<sub>j</sub>'' is chosen is ''p<sub>j</sub>''. Then one computes the next iteration of ''P'' by applying ''F<sub>j</sub>'' on ''(P.x,P.y)''.
 
Each individual function has the following form:
 
:<math>F_j(x,y) = \sum_{V_k \in Variations} w_k \cdot V_k(a_j x + b_j y +c_j,d_j x + e_j y +f_j)</math>
 
where the parameter ''w<sub>k</sub>'' is called the weight of the '''''variation''''' ''V<sub>k</sub>''. Draves suggests
<ref name="dravespdf">{{PDFlink|[http://flam3.com/flame.pdf The Fractal Flame Algorithm]|22.5&nbsp;MB|accessdate=2009-08-11}}</ref> that all <math>w_k</math>:s are non-negative and sum to one, but implementations such as Apophysis do not impose that restriction.
 
The functions ''V<sub>k</sub>'' are a set of predefined functions.
A few examples<ref name="dravespdf" /> are
 
* V<sub>0</sub>(''x'',''y'') = (''x'',''y'') (Linear)
* V<sub>1</sub>(''x'',''y'') = (sin ''x'',sin ''y'') (Sinusoidal)
* V<sub>2</sub>(''x'',''y'') = (''x'',''y'')/(''x''<sup>2</sup>+''y''<sup>2</sup>) (Spherical)
 
The color ''P.c'' of the point is blended with the color associated with the latest applied function ''F<sub>j</sub>'':
 
: P.c := (P.c + (F_j)<sub>color</sub>)  / 2
 
After each iteration, one updates the histogram at the point corresponding to ''(P.x,P.y)''. This is done as follows:
 
<source lang="cpp">
histogram[x][y][FREQUENCY] := histogram[x][y][FREQUENCY]+1
histogram[x][y][COLOR] := (histogram[x][y][COLOR] + P.c )/2
</source>
 
The colors in the image will therefore reflect what functions were used to get to that part of the image.
 
===Rendering an image===
 
To increase the quality of the image, one can use [[supersampling]] to decrease the noise. This involves creating a histogram larger than the image so each pixel has multiple data points to pull from.
 
For example, creating a histogram with 300&times;300 cells in order to draw an 100&times;100 px image. Each pixel would use a 3&times;3 group of histogram buckets to calculate its value.
 
For each pixel ''(x,y)'' in the final image, do the following computations:
 
<source lang="cpp">
frequency_avg[x][y]  := average_of_histogram_cells_frequency(x,y);
color_avg[x][y] := average_of_histogram_cells_color(x,y);
 
alpha[x][y] := log(frequency_avg[x][y]) / log(frequency_max); 
//frequency_max is the maximal number of iterations that hit a cell in the histogram.
 
final_pixel_color[x][y] := color_avg[x][y] * alpha[x][y]^(1/gamma); //gamma is a value greater than 1.
</source>
 
The algorithm above uses [[gamma correction]] to make the colors appear brighter. This is implemented in for example the Apophysis software.
 
To increase the quality even more, one can use gamma correction on each individual color channel, but this is a very heavy computation, since the ''log'' function is slow.
 
A simplified algorithm would be to let the brightness be linearly dependent on the frequency:
 
<source lang="cpp">
final_pixel_color[x][y] := color_avg[x][y] * frequency_avg[x][y]/frequency_max;
</source>
but this would make some parts of the fractal lose detail, which is undesirable.<ref name="dravespdf" />
 
==Density Estimation==
 
[[Image:De-figure.jpg|thumb|300px|A demonstration of Density Estimation. In the above half, you can see the noise and individual samples. On the below half, rendered with Density Estimation, the noise is smoothed out without destroying the sharp edges.]]
 
The flame algorithm is like a [[Monte Carlo simulation]], with the flame quality directly proportional to the number of iterations of the simulation. The noise that results from this stochastic sampling can be reduced by [[Gaussian blur|blur]]ring the image, to get a smoother result in less time. One does not however want to lose resolution in the parts of the image that receive many samples and so have little noise.
 
This problem can be solved with adaptive [[density estimation]] to increase image quality while keeping render times to a minimum.  FLAM3 uses a simplification of the methods presented in *Adaptive Filtering for Progressive Monte Carlo Image Rendering*, a paper presented at [[Winter School of Computer Graphics|WSCG]] 2000 by Frank Suykens and Yves D. Willems. The idea is to vary with width of the filter [[inversely proportional]] to the number of samples available.
 
As a result, areas with few samples and lots of noise get blurred and smoothed, but areas with lots of samples and low noise are left unaffected.  See http://code.google.com/p/flam3/wiki/DensityEstimation.
 
Not all Flame implementations use density estimation.
 
== See also ==
* [[Apophysis (software)|Apophysis]], an open source fractal flame editor for Microsoft Windows.
* [[Electric Sheep]], a screen saver created by the inventor of fractal flames which renders and displays them with [[Distributed computing]].
* [[GIMP]], a [[free software]], multi OS [[image manipulation]] program that can generate fractal flames.
 
== References ==
<references />
 
{{commons category|Fractal flames}}
 
{{DEFAULTSORT:Fractal Flame}}
[[Category:Fractals]]

Latest revision as of 02:24, 22 December 2014

I'm Richelle and I live in Munstermaifeld.
I'm interested in Biochemistry, Gongoozling and French art. I like travelling and watching Arrested Development.

Here is my web page :: fifa 14 coin generator ios