Concept

Fractal flame

Fractal flames are a member of the iterated function system class of fractals created by Scott Draves in 1992. Draves' open-source code was later ported into Adobe After Effects graphics software and translated into the Apophysis fractal flame editor. Fractal flames differ from ordinary iterated function systems in three ways: Nonlinear functions are iterated in addition to 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. The algorithm consists of two steps: creating a histogram and then rendering 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 indicates the current color of the point. Set of flame functions: In each iteration, choose one of the functions above where the probability that Fj is chosen is pj. Then one computes the next iteration of P by applying Fj on (P.x,P.y). Each individual function has the following form: where the parameter wk is called the weight of the variation Vk. Draves suggests that all :s are non-negative and sum to one, but implementations such as Apophysis do not impose that restriction. The functions Vk are a set of predefined functions. A few examples are V0(x,y) = (x,y) (Linear) V1(x,y) = (sin x,sin y) (Sinusoidal) V2(x,y) = (x,y)/(x2+y2) (Spherical) The color P.c of the point is blended with the color associated with the latest applied function Fj: P.c := (P.c + (Fj)color) / 2 After each iteration, one updates the histogram at the point corresponding to (P.x,P.y). This is done as follows: histogram[x][y][FREQUENCY] := histogram[x][y][FREQUENCY]+1 histogram[x][y][COLOR] := (histogram[x][y][COLOR] + P.c)/2 The colors in the image will therefore reflect what functions were used to get to that part of the image.

À propos de ce résultat
Cette page est générée automatiquement et peut contenir des informations qui ne sont pas correctes, complètes, à jour ou pertinentes par rapport à votre recherche. Il en va de même pour toutes les autres pages de ce site. Veillez à vérifier les informations auprès des sources officielles de l'EPFL.

Graph Chatbot

Chattez avec Graph Search

Posez n’importe quelle question sur les cours, conférences, exercices, recherches, actualités, etc. de l’EPFL ou essayez les exemples de questions ci-dessous.

AVERTISSEMENT : Le chatbot Graph n'est pas programmé pour fournir des réponses explicites ou catégoriques à vos questions. Il transforme plutôt vos questions en demandes API qui sont distribuées aux différents services informatiques officiellement administrés par l'EPFL. Son but est uniquement de collecter et de recommander des références pertinentes à des contenus que vous pouvez explorer pour vous aider à répondre à vos questions.