Calculating Fractal Dimension from Vector Images Kelly Ran.

16
Calculating Fractal Dimension from Vector Images Kelly Ran

Transcript of Calculating Fractal Dimension from Vector Images Kelly Ran.

Page 1: Calculating Fractal Dimension from Vector Images Kelly Ran.

Calculating Fractal Dimension from Vector Images

Kelly Ran

Page 2: Calculating Fractal Dimension from Vector Images Kelly Ran.

What Is A Fractal?

Page 3: Calculating Fractal Dimension from Vector Images Kelly Ran.

Fractal Dimension

• Lines: D=1• Squares: D=2• Fractals: Non-integer D• Calculated using multiple methods• Box-counting dimension

Page 4: Calculating Fractal Dimension from Vector Images Kelly Ran.

Fractal Dimension Applications• Texture classification• Protein molecule analysis• Plant growth analysis• Model: plants, particle motion

Page 5: Calculating Fractal Dimension from Vector Images Kelly Ran.

Vector Graphics

• Raster graphics: pixel-by-pixel• Research applications calculate D from raster

graphics• Vector graphics: Objects like paths and shapes• Scalable Vector Graphics (SVG) based on XML• Paths

Page 6: Calculating Fractal Dimension from Vector Images Kelly Ran.

SVG

• <?xml version="1.0" standalone="no"?>• <desc>Example rect01 - rectangle with sharp

corners</desc>• <rect x="1" y="1" width="1198" height="398"• fill="none" stroke="blue" stroke-

width="2"/>• </svg>

Page 7: Calculating Fractal Dimension from Vector Images Kelly Ran.

Goals

• Is it possible to calculate fractal dimension from vector images?

• Goals:• Calculate D from SVG images• Show calculations on a display screen• Compare raster v. vector• Time? Accuracy?

Page 8: Calculating Fractal Dimension from Vector Images Kelly Ran.

Procedures

• Create SVG files• Inskcape Software

Sierpinski Triangle, 3 iterations

Sierpinski Triangle, 6 iterations

Page 9: Calculating Fractal Dimension from Vector Images Kelly Ran.

Procedures

• Processing language• Import SVG• Array of objects• D calculation: size N of grid, number s of grids• Hash table: N is key, s is value

Page 10: Calculating Fractal Dimension from Vector Images Kelly Ran.
Page 11: Calculating Fractal Dimension from Vector Images Kelly Ran.
Page 12: Calculating Fractal Dimension from Vector Images Kelly Ran.
Page 13: Calculating Fractal Dimension from Vector Images Kelly Ran.
Page 14: Calculating Fractal Dimension from Vector Images Kelly Ran.
Page 15: Calculating Fractal Dimension from Vector Images Kelly Ran.

Testing

• Line, square• Fractals with known fractal dimensions

Page 16: Calculating Fractal Dimension from Vector Images Kelly Ran.

To Be Done

• Improve upon program• Gather more data• Implement raster method• Linear regression function: linear algebra least

squares method