Buddhabrot

From HandWiki
Short description: Probability distribution over the trajectories of points that escape the Mandelbrot fractal
A Buddhabrot iterated to 20,000 times.

The Buddhabrot is the probability distribution over the trajectories of points that escape the Mandelbrot fractal. Its name reflects its pareidolic resemblance to classical depictions of Gautama Buddha, seated in a meditation pose with a forehead mark (tikka), a traditional oval crown (ushnisha), and ringlet of hair.

Discovery

The Buddhabrot rendering technique was discovered by Melinda Green,[1] who later described it in a 1993 Usenet post to sci.fractals.[2]

Previous researchers had come very close to finding the precise Buddhabrot technique. In 1988, Linas Vepstas relayed similar images[3] to Cliff Pickover for inclusion in Pickover's then-forthcoming book Computers, Pattern, Chaos, and Beauty. This led directly to the discovery of Pickover stalks. Noel Griffin also implemented this idea in the 1993 "Mandelcloud" option in the Fractint renderer. However, these researchers did not filter out non-escaping trajectories required to produce the ghostly forms reminiscent of Hindu art. The inverse, "Anti-Buddhabrot" filter produces images similar to no filtering.

Green first named this pattern Ganesh, since an Indian co-worker "instantly recognized it as the god 'Ganesha' which is the one with the head of an elephant."[2] The name Buddhabrot was coined later by Lori Gardi.[4]

Rendering method

False color Buddhabrot Zoom in which the red, green and blue channels had max iteration values of 5000, 500, and 50 respectively.
20,000 x 25,000 pixel rendering of a Buddhabrot
A 20,000 x 25,000 pixel rendering of a Buddhabrot

Mathematically, the Mandelbrot set consists of the set of points [math]\displaystyle{ c }[/math] in the complex plane for which the iteratively defined sequence

[math]\displaystyle{ z_{n+1} = z_{n}^2 + c }[/math]

does not tend to infinity as [math]\displaystyle{ n }[/math] goes to infinity for [math]\displaystyle{ z_0 = 0 }[/math].

False color Buddhabrot in which the red, green and blue channels had max iteration values of 5000, 500, and 50 respectively.

The Buddhabrot image can be constructed by first creating a 2-dimensional array of boxes, each corresponding to a final pixel in the image. Each box [math]\displaystyle{ (i,j) }[/math] for [math]\displaystyle{ i =1,\ldots,m }[/math] and [math]\displaystyle{ j = 1,\ldots,n }[/math] has size in complex coordinates of [math]\displaystyle{ \Delta x }[/math] and [math]\displaystyle{ \Delta y }[/math], where [math]\displaystyle{ \Delta x = w/m }[/math] and [math]\displaystyle{ \Delta y = h/n }[/math] for an image of width [math]\displaystyle{ w }[/math] and height [math]\displaystyle{ h }[/math]. For each box, a corresponding counter is initialized to zero. Next, a random sampling of [math]\displaystyle{ c }[/math] points are iterated through the Mandelbrot function. For points which do escape within a chosen maximum number of iterations, and therefore are not in the Mandelbrot set, the counter for each box entered during the escape to infinity is incremented by 1. In other words, for each sequence corresponding to [math]\displaystyle{ c }[/math] that escapes, for each point [math]\displaystyle{ z_n }[/math] during the escape, the box that [math]\displaystyle{ (\text{Re}(z_n), \text{Im}(z_n)) }[/math] lies within is incremented by 1. Points which do not escape within the maximum number of iterations (and considered to be in the Mandelbrot set) are discarded. After a large number of [math]\displaystyle{ c }[/math] values have been iterated, grayscale shades are then chosen based on the distribution of values recorded in the array. The result is a density plot highlighting regions where [math]\displaystyle{ z_n }[/math] values spend the most time on their way to infinity.

Anti-Buddhabrot
A Buddhabrot as the max iterations increases

Nuances

Rendering Buddhabrot images is typically more computationally intensive than standard Mandelbrot rendering techniques. This is partly due to requiring more random points to be iterated than pixels in the image in order to build up a sharp image. Rendering highly zoomed areas requires even more computation than for standard Mandelbrot images in which a given pixel can be computed directly regardless of zoom level. Conversely, a pixel in a zoomed region of a Buddhabrot image can be affected by initial points from regions far outside the one being rendered. Without resorting to more complex probabilistic techniques,[5] rendering zoomed portions of Buddhabrot consists of merely cropping a large full sized rendering.

The maximum number of iterations chosen affects the image – higher values give sparser more detailed appearance, as a few of the points pass through a large number of pixels before they escape, resulting in their paths being more prominent. If a lower maximum was used, these points would not escape in time and would be regarded as not escaping at all. The number of samples chosen also affects the image as not only do higher sample counts reduce the noise of the image, they can reduce the visibility of slowly moving points and small attractors, which can show up as visible streaks in a rendering of lower sample count. Some of these streaks are visible in the 1,000,000 iteration image below.

Green later realized that this provided a natural way to create color Buddhabrot images by taking three such grayscale images, differing only by the maximum number of iterations used, and combining them into a single color image using the same method used by astronomers to create false color images of nebula and other celestial objects. For example, one could assign a 2,000 max iteration image to the red channel, a 200 max iteration image to the green channel, and a 20 max iteration image to the blue channel of an image in an RGB color space. Some have labelled Buddhabrot images using this technique Nebulabrots.

Maximum iterations: 20
Maximum iterations: 100
Maximum iterations: 1,000
Maximum iterations: 20,000
Maximum iterations: 1,000,000

Relation to the logistic map

The Buddhabrot and its logistic map.
Animation depicting the Buddhabrot and its logistic map.

The relationship between the Mandelbrot set as defined by the iteration [math]\displaystyle{ z^2+c }[/math], and the logistic map [math]\displaystyle{ \lambda x(1-x) }[/math] is well known. The two are related by the quadratic transformation:

[math]\displaystyle{ \begin{align} c_r&=\frac{\lambda(2-\lambda)}{4}\\ c_i&=0\\ z_r&=-\frac{\lambda(2x-1)}{2}\\ z_i&=0 \end{align} }[/math]

The traditional way of illustrating this relationship is aligning the logistic map and the Mandelbrot set through the relation between [math]\displaystyle{ c_r }[/math] and [math]\displaystyle{ \lambda }[/math], using a common x-axis and a different y-axis, showing a one-dimensional relationship.

Melinda Green discovered that the Anti-Buddhabrot paradigm fully integrates the logistic map. Both are based on tracing paths from non-escaping points, iterated from a (random) starting point, and the iteration functions are related by the transformation given above. It is then easy to see that the Anti-Buddhabrot for [math]\displaystyle{ z^2+c }[/math], plotting paths with [math]\displaystyle{ c=(\text{random},0) }[/math] and [math]\displaystyle{ z_0=(0,0) }[/math], simply generates the logistic map in the plane [math]\displaystyle{ \{c_r,z_r\} }[/math], when using the given transformation. For rendering purposes we use [math]\displaystyle{ z_0=(\text{random},0) }[/math]. In the logistic map, all [math]\displaystyle{ z_{r0} }[/math] ultimately generate the same path.

Because both the Mandelbrot set and the logistic map are an integral part of the Anti-Buddhabrot we can now show a 3D relationship between both, using the 3D axes [math]\displaystyle{ \{c_r,c_i,z_r\} }[/math]. The animation shows the classic Anti-Buddhabrot with [math]\displaystyle{ c=(\text{random},\text{random}) }[/math] and [math]\displaystyle{ z_0=(0,0) }[/math], this is the 2D Mandelbrot set in the plane [math]\displaystyle{ \{c_r,c_i\} }[/math], and also the Anti-Buddhabrot with [math]\displaystyle{ c=(\text{random},0) }[/math] and [math]\displaystyle{ z_0=(0,0) }[/math], this is the 2D logistic map in the plane [math]\displaystyle{ \{c_r,z_r\} }[/math]. We rotate the plane [math]\displaystyle{ \{c_i,z_r\} }[/math] around the [math]\displaystyle{ c_r }[/math]-axis, first showing [math]\displaystyle{ \{c_r,c_i\} }[/math], then rotating 90° to show [math]\displaystyle{ \{c_r,z_r\} }[/math], then rotating an extra 90° to show [math]\displaystyle{ \{c_r,-c_i\} }[/math]. We could rotate an extra 180° but this gives the same images, mirrored around the [math]\displaystyle{ c_r }[/math]-axis.

The logistic map Anti-Buddhabrot is in fact a subset of the classic Anti-Buddhabrot, situated in the plane [math]\displaystyle{ \{c_r,z_r\} }[/math] (or [math]\displaystyle{ c_i=0 }[/math]) of 3D [math]\displaystyle{ \{c_r,c_i,z_r\} }[/math], perpendicular to the plane [math]\displaystyle{ \{c_r,c_i\} }[/math]. We emphasize this by showing briefly, at 90° rotation, only the projected plane [math]\displaystyle{ c_i=0 }[/math], not 'disturbed' by the projections of the planes with non-zero [math]\displaystyle{ c_i }[/math].

References

  1. Melinda Green. "The Buddhabrot Technique", superliminal.com.
  2. 2.0 2.1 Daniel Green. "The deity hiding in the m-set", Groups.Google.com.
  3. "Interior Sketchbook Diary", Linas.org.
  4. Western News: The University of Western Ontario’s newspaper. Chaos (theory) rules for software developer.
  5. "The Buddhabrot". http://www.steckles.com/buddha/. 

External links