Fraktali. Kaj je fraktal Fraktal je geometrični konstrukt, za katerega velja pri različnih nivojih podrobnosti samopodobnost.

Slides:



Advertisements
Similar presentations
Fractals with a Special Look at Sierpinskis Triangle By Carolyn Costello.
Advertisements

1 Line replacement approach Koch Star (Snowflake) Area replacement approach Sierpenski Triangle Iterated Function System approach Heighway Dragon CSE
40S Applied Math Mr. Knight – Killarney School Slide 1 Unit: Sequences Lesson: SEQ-L3 Drawing Fractal Patterns Drawing Fractal Patterns Learning Outcome.
ATEC Procedural Animation Introduction to Procedural Methods in 3D Computer Animation Dr. Midori Kitagawa.
7.3 Rotations Advanced Geometry.
So far we’ve done… Dynamics and chaos Thermodynamics, statistical mechanics, entropy, information Computation, Turing machines, halting problem Evolution,
L systems (Aristid Lindenmayer)
Chapter 9: Recursive Methods and Fractals E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley Mohan Sridharan Based on Slides.
L-systems Presented by Luv Kohli COMP258 October 30, 2002 Images copyright © 1992 D. Fowler, P. Prusinkiewicz, and J. Battjes.
Fractals Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts Director, Arts Technology Center University of New.
Homework discussion Read pages 388 – 391 Page 400: 49 – 52, 72.
Course Website: Computer Graphics 11: 3D Object Representations – Octrees & Fractals.
The Wonderful World of Fractals
Fractals Infinite detail at every point Self similarity between parts and overall features of the object Zoom into Euclidian shape –Zoomed shape see more.
Fractals Complex Adaptive Systems Professor Melanie Moses March
Holt Geometry 12-Ext Using Patterns to Generate Fractals 12-Ext Using Patterns to Generate Fractals Holt Geometry Lesson Presentation Lesson Presentation.
CS4395: Computer Graphics 1 Fractals Mohan Sridharan Based on slides created by Edward Angel.
Multifractals in Real World
Approaches To Infinity. Fractals Self Similarity – They appear the same at every scale, no matter how much enlarged.
"Clouds are not spheres, mountains are not cones, coastlines are not circles, and bark is not smooth, nor does lightning travel in a straight line."(Mandelbrot,
Amgad Hussein, Maria Tokarska, Edward Grinko, Dimitar Atassanov, Megan Varghese, Emilio Asperti.
Fractals and Terrain Synthesis
Computing & Information Sciences Kansas State University Lecture 37 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 37 of 42 Monday, 28 April.
Structured Chaos: Using Mata and Stata to Draw Fractals
1 Excursions in Modern Mathematics Sixth Edition Peter Tannenbaum.
An Introduction to Fractals By: Brian Feuer What is a Fractal? A word coined by Benoit Mandelbrot in 1975 to describe shapes that are “self-similar”
Fractals Nicole MacFarlane December 1 st, What are Fractals? Fractals are never- ending patterns. Many objects in nature have what is called a ‘self-
The Chaos Game.
Introduction Introduction: Mandelbrot Set. Fractal Geometry ~*Beautiful Mathematics*~ FRACTAL GEOMETRY Ms. Luxton.
Fractals Siobhán Rafferty.
L-Systems and Procedural Plants CSE 3541 Matt Boggus.
Infinities 6 Iteration Number, Algebra and Geometry.
College of Computer and Information Science, Northeastern UniversityOctober 13, CS U540 Computer Graphics Prof. Harriet Fell Spring 2007 Lecture.
Ch 9 Infinity page 1CSC 367 Fractals (9.2) Self similar curves appear identical at every level of detail often created by recursively drawing lines.
Examining the World of Fractals. Myles Akeem Singleton Central Illinois Chapter National BDPA Technology Conference 2006 Los-Angeles, CA.
Fractals Douglas reeves.
Fractals smooth surfaces and regular shapes - Euclidean-geometry methods -object shapes were described with equations natural objects - have irregular.
Fractals. Most people don’t think of mathematics as beautiful but when you show them pictures of fractals…
Fractals What do we mean by dimension? Consider what happens when you divide a line segment in two on a figure. How many smaller versions do you get? Consider.
Mathematics Numbers: Percentages Science and Mathematics Education Research Group Supported by UBC Teaching and Learning Enhancement Fund Department.
Some Fractals and Fractal Dimensions. The Cantor set: we take a line segment, and remove the middle third. For each remaining piece, we again remove the.
Fractal Dimension Topological dimension A topological dimension of an entity is one that remains invariant under continuous, one-to-one transformations.
Governor’s School for the Sciences Mathematics Day 10.
David Chan TCM and what can you do with it in class?
Fractal Project Mariellen Hemmerling. Fractals “A fractal is "a rough or fragmented geometric shape that can be split into parts, each of which is (at.
ATEC Procedural Animation Introduction to Procedural Methods in 3D Computer Animation Dr. Midori Kitagawa.
CSE 423 Computer Graphics | MUSHFIQUR ROUF CSE423:
Fractals! Fractals are these crazy objects which stretch our understanding of shape and space, moving into the weird world of infinity. We will look at.
In the name of God Computer Graphics. Shortcomings So Far The representations we have looked at so far have various failings: –Meshes are large, difficult.
Fractals! Bullock Math Academy March 22, 2014 Brian Shelburne
Fractals Ed Angel Professor Emeritus of Computer Science
Fractals. What do we mean by dimension? Consider what happens when you divide a line segment in two on a figure. How many smaller versions do you get?
Fractals Cassi Blum.
CS559: Computer Graphics Lecture 36: Subdivision Surfaces, Fractals, and Animation Li Zhang Spring 2008 Many slides from James Kuffner’s graphics class.
Fractals.
Fractals Lesson 6-6.
A Primer on Chaos and Fractals Bruce Kessler Western Kentucky University as a prelude to Arcadia at Lipscomb University.
Grafika Komputer dan Visualisasi Disusun oleh : Silvester Dian Handy Permana, S.T., M.T.I. Fakultas Telematika, Universitas Trilogi Pertemuan 12 : Realisme.
1 What did we learn before?. 2 line and segment generation.
Fractals and L-Systems
Data Structures.
Iterative Mathematics
Fractals Project Natalie Rowe.
Chapter 5 Curves and Fractals.
FRACTALS.
S.K.H. Bishop Mok Sau Tseng Secondary School
The Wonderful World of Fractals
Bellringer Work on the Warm Up Sheet NEED: Graphing Sheet Protractor.
Fractals What do we mean by dimension? Consider what happens when you divide a line segment in two on a figure. How many smaller versions do you get?
Fractals: A Visual Display of Mathematics
Presentation transcript:

Fraktali

Kaj je fraktal Fraktal je geometrični konstrukt, za katerega velja pri različnih nivojih podrobnosti samopodobnost.

V ilustracijo poglejmo spodnja dva grafa. Že po 40 iteracijah se zelo razlikujeta, čeprav je bil njun začetni potek navidezno enak.

Bifurkacija in periodičnost Demo

Teorija kaosa Teorija kaosa temelji na tem, da lahko majhne spremembe povzroče velika nihanja. Res je sicer, da ne moremo napovedovati natančnega stanja nekega sistema, lahko pa modeliramo splošno obnašanje takega sistema. Demo Lorenz, efekt metulja, Lorenzov atraktor Kaos in fraktali - nihalo Lorenz je študiral sisteme enačb.Tako je za področje fluidne dinamike uporabil naslednji poenostavljeni sistem enačb: dx/dt = delta * (y - x) dy/dt = r * x - y - x * z dz/dt = x * y - b * z Pri tem je Lorenz oporabil naslednje parametre: delta = 10 r = 28 b = 8/3

Lastnosti fraktalov Ena od lastnosti je samopodobnost oziroma ponavljanje vzorcev pri vseh povečavah. Druga tipična lastnost je neskončna kompleksnost podrobnosti. Formalna definicija fraktala uvaja še pojem fraktalske dimenzije. Demo Fraktalska dimenzija (Anglija) Fraktalska dimenzija (Kochova snežinka) Demo

Samopodobnost fraktalov Parts are scaled down versions of the entire object –use same scaling on subparts –use different scaling factors for subparts Statistically self-similar –Apply random variation to subparts Trees, shrubs, other vegetation Video Samopodobnost (Lorenz) Video Samopodobnost (Mandelbrot) Video Samopodobnost (Mandelbrot)

Fraktalska dimenzija D=fractal dimension –Amount of variation in the structure –Measure of roughness or fragmentation of the object Small d-less jagged Large d-more jagged s=scaling factor n number of subparts in subdivision d=log(n)/log(1/s)

Fraktalska dimenzija Točka: D = 0, N=1, s=1/2 Črta: D = 1, N=2, s=1/2 Kvadrat: D = 2, N=4, s=1/2 Kocka: D = 3, N=8, s=1/2 N = (1/s) D log N = D log (1/s) D = log(N)/log(1/s)

Dimenzija fraktala: primeri N=2 s=1/3 D = log 2/log 3 D =.6... N=4 s=1/3 D = log 4/log 3 D =

Kaj je torej dimenzija fraktala Dimension is a ratio of the (new size)/(old size) –Divide line into n identical segments n=s –Divide lines on square into small squares by dividing each line into n identical segments n=s 2 small squares –Divide cube Get n=s 3 small cubes Koch’s snowflake –After division have 4 segments n=4 (new segments) s=3 (old segments) Fractal Dimension –D=log4/log3 = –For your reference: Book method n=4 –Number of new segments s=1/3 –segments reduced by 1/3 d=log4/log(1/(1/3))

Dimenzija fraktala Sierpinski Divide each side by 2 –Makes 4 triangles –We keep 3 –Therefore n=3 Get 3 new triangles from 1 old triangle –s=2 (2 new segments from one old segment) Fractal dimension –D=ln(3)/ln(2) = 1.585

Dimenzija fraktala kocka (cube) Apply fractal algorithm –Divide each side by 3 –Now push out the middle face of each cube –Now push out the center of the cube What is the fractal dimension? –Well we have 20 cubes, where we used to have 1 n=20 –We have divided each side by 3 s=3 –Fractal dimension ln(20)/ln(3) = 2.727

Newtonov fraktal DemoVideo

Mandelbrotov fraktal Mandelbrot set is the graph of all the complex numbers c, that do not go to infinity when iterated in z= z 2 + c, with a starting value of z =0 + 0i.

Juliajeve množice Video What is the difference between Julia sets and Mandelbrot set? Julia sets are strictly connected with Mandelbrot set. The iterative function used to produce both Mandelbrot and Julia sets is: z(n) = z(n - 1) ^ 2 - c where values of z and c are complex numbers of the form a + ib and i is the square root of -1. What is different is the way this formula is used. Each point of the complex plane is associated with a Julia set, so you can think to the Mandelbrot set as an "index" for Julia sets: each point of the Mandelbrot set is associated with a particular Julia set. Julia set is the graph of all the complex numbers z, that do not go to infinity when iterated in f(z) -- > z 2 + c, where c is constant.

Razmerje med Mandelbrotom in Juliajem Demo

IFS – iterirani funkcijski sistemi IFS stands for Iterated Function System. Fractals of this type are created by applying one of a number of functions, chosen randomly from the rules set up for the IFS, repeatedly to an intitial point, and graphing each new point. With IFS fractals, it can be seen that the starting point does not effect the shape of the fractal too much. This means that a particular fractal can be defined by the rules used to find the next point, and the probabilities that an individual function will be chosen. This is the model used by my IFS fractal generator. Demo Gingerbreadman Demo Hopalong orbit Demo Ply orbit Demo Popcorn Demo Dragon

Iterativni proces

Trikotnik Sierpinskega

Kako tvorimo trikotnik Sierpinskega Step One: Draw an equilateral triangle with sides of 2 triangle lengths each. Connect the midpoints of each side. How many equilateral triangles do you now have? Shade out the triangle in the center. Think of this as cutting a hole in the triangle.

Step Two: Draw another equilateral triangle with sides of 4 triangle lengths each. Connect the midpoints of the sides and shade the triangle in the center as before. Notice the three small triangles that also need to be shaded out in each of the three triangles on each corner - three more holes. Kako tvorimo trikotnik Sierpinskega

OR: 1. Draw a large equilateral triangle. 2.Draw the midpoint of each side. 3.Connect Midpoints. 4.Shade the middle triangle. 5.Repeat the process with the un-shaded triangles…. 6.How far can you get… Kako tvorimo trikotnik Sierpinskega

L – sistem fraktali (language based fractals) Demo Drevesa

L – sistem fraktali The fractals are constructed from line segments using a set of rules. The rules include commands such as draw forward, move forward, turn by a specified angle, etc. The commands start with an initial drawing string, called the axiom. The axiom can reference additional command strings, which themselves can be recursive. The axiom is then executed recursively. With each iteration, every line segment is replaced with all the commands in the axiom.

L system fraktali Lets define some commands, create an axiom, and we what types of structures are produced. Angle n default rotation by 360/n degrees + rotate counterclockwise - rotate clockwise F Draw forward G Move forward Cnn Select color nn nn Decrement color by nn Angle 6 Axiom F--F--F F=F>1+F--F+F The following set of rules will produce a colored Koch snowflake

L system fraktali The following rules produce a dragon curve. Angle 8 Axiom FX F=>1 Y=+FX--FY+ X=-FX++FY-

L system fraktali Demo Drevesa 2

Kvaternionski fraktali Video Mandelbrotova množica in vrsta drugih fraktalov temelji na uporabi kompleksnih števil, ki imajo dve komponenti in jih lahko prikažemo v dveh dimenzijah. Kvaternioni so spremenljivke, ki imajo 4 komponente. Prikažemo jih lahko v 4 dimenzijah. Seveda ne moremo prikazati 4 dimenzionalnega fraktala, lahko pa prikažemo njegovo 3 dimenzionalno "rezino"

Kvaternionski fraktali Goblin Park The fractal sculpture was created from two Fractal Zplot quaternions, stone texture from a Dofo-Zon Elite fractal, and the trees behind the river from l-system fractals by L-System and Fractal Zplot. The rest of the scene and rendering by Vue d'Esprit.

Kvaternionski fraktali Dancers A fractal sculpture using two versions of a complex quaternion fractal by QuarSZ; scenery and rendering by Vue d'Esprit.

Uporaba fraktalov Teksture Pokrajine Posebni efekti Fraktalska glasba

Marmor Ken Perlin, 1985

Fraktalske gore Displacement map of meshed plane Can also be formed using midpoint displacement Ken Musgrave Gunther Berkus via Mojoworld

Oblaki - voda Gunther Berkus via Mojoworld

Ogenj Ken Musgrave

Planeti Ken Musgrave

Mesečev vzhod Ken Musgrave

Fraktalska glasba Fraktalsko glasbo lahko dobimo tako, da s šumom, ki ga predstavlja, primerno popravimo višino tona nekega glasbila, lahko pa z nekim drugim šumom tudi vplivamo na dolžino posameznih not. Audio

Primer Mandelbrotove uglasbitve Najprej izračunamo del Mandelbrotove množice. Matematične podatke interpretiramo kot podatke midi. Večje, kot je število iteracij, višji je na primer ton. Audio

Fraktalska kompresija

Fractal compression is a very complex (lossy) compression technique. It is based on the transformation of a bitmap image to a vector-like mathematical representation using iterated function systems (e.g.fractals). Fractal compression is asymmetrical as the compression step is very much slower than decompression (decompression is, in fact, just a rendering algorithm) but there is a lot of work going on to overcome this problem. The advantages of fractal compression are the good compression ratio that can be achieved with little degradation of the image quality and the ability (just like with vector formats) to scale the image without losing information and adding noise. The drawback is that not everyone agrees on the advantages.