Fractal Image Compression Michael F. Barnsley



Similar documents
A deterministic fractal is an image which has low information content and no inherent scale.

DYNAMIC DOMAIN CLASSIFICATION FOR FRACTAL IMAGE COMPRESSION

Using fractal compression scheme to embed a digital signature into an image

Math 4310 Handout - Quotient Vector Spaces

Using Linear Fractal Interpolation Functions to Compress Video. The paper in this appendix was presented at the Fractals in Engineering '94

JPEG Image Compression by Using DCT

NOTES ON LINEAR TRANSFORMATIONS

Basic Concepts of Point Set Topology Notes for OU course Math 4853 Spring 2011

Very Preliminary Program

THE BANACH CONTRACTION PRINCIPLE. Contents

Continued Fractions and the Euclidean Algorithm

1 Determinants and the Solvability of Linear Systems

Fixed Point Theorems

Content. Chapter 4 Functions Basic concepts on real functions 62. Credits 11

Recursive Binary Sequences of Differences

Duality of linear conic problems

THE FUNDAMENTAL THEOREM OF ALGEBRA VIA PROPER MAPS

2.1 Complexity Classes

Homework # 3 Solutions

Math 181 Handout 16. Rich Schwartz. March 9, 2010

INDISTINGUISHABILITY OF ABSOLUTELY CONTINUOUS AND SINGULAR DISTRIBUTIONS

Performance Analysis of medical Image Using Fractal Image Compression

1 Introduction to Matrices

FACTORING QUADRATICS and 8.1.2

A characterization of trace zero symmetric nonnegative 5x5 matrices

Class Meeting # 1: Introduction to PDEs

Session 7 Bivariate Data and Analysis

The chromatic spectrum of mixed hypergraphs

1. Prove that the empty set is a subset of every set.

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m

Solving Quadratic Equations

Solving simultaneous equations using the inverse matrix

8 Fractals: Cantor set, Sierpinski Triangle, Koch Snowflake, fractal dimension.

Image Compression through DCT and Huffman Coding Technique

Information Theory and Coding Prof. S. N. Merchant Department of Electrical Engineering Indian Institute of Technology, Bombay

Math Content by Strand 1

Lossless Grey-scale Image Compression using Source Symbols Reduction and Huffman Coding

Mathematics Course 111: Algebra I Part IV: Vector Spaces

1 The Concept of a Mapping

3 Some Integer Functions

Practical Guide to the Simplex Method of Linear Programming

Metric Spaces Joseph Muscat 2003 (Last revised May 2009)

Approximating continuous functions by iterated function systems and optimization problems

MATH2210 Notebook 1 Fall Semester 2016/ MATH2210 Notebook Solving Systems of Linear Equations... 3

FRACTAL GEOMETRY. Introduction to Fractal Geometry

NUMBER SYSTEMS. William Stallings

JUST THE MATHS UNIT NUMBER 1.8. ALGEBRA 8 (Polynomials) A.J.Hobson

FACTORING POLYNOMIALS IN THE RING OF FORMAL POWER SERIES OVER Z

3. Mathematical Induction

Linear Programming. March 14, 2014

15.1. Integration as the limit of a sum. Introduction. Prerequisites. Learning Outcomes. Learning Style

MATH1231 Algebra, 2015 Chapter 7: Linear maps

Data Storage 3.1. Foundations of Computer Science Cengage Learning

arxiv: v1 [math.co] 7 Mar 2012

Sachin Dhawan Deptt. of ECE, UIET, Kurukshetra University, Kurukshetra, Haryana, India

BANACH AND HILBERT SPACE REVIEW

Lecture 1: Systems of Linear Equations

ANIMATED FRACTALS. nature very complex. In the classroom, it can be very instructive to watch the fractal image

Geometric Transformations

Object Recognition and Template Matching

Click on the links below to jump directly to the relevant section

Data Storage. Chapter 3. Objectives. 3-1 Data Types. Data Inside the Computer. After studying this chapter, students should be able to:

1 if 1 x 0 1 if 0 x 1

THE DIMENSION OF A VECTOR SPACE

Properties of BMO functions whose reciprocals are also BMO

SOLUTIONS TO EXERCISES FOR. MATHEMATICS 205A Part 3. Spaces with special properties

3.3 Real Zeros of Polynomials

CS 3719 (Theory of Computation and Algorithms) Lecture 4

Comparison of different image compression formats. ECE 533 Project Report Paula Aguilera

8.1. Cramer s Rule for Solving Simultaneous Linear Equations. Introduction. Prerequisites. Learning Outcomes. Learning Style

Pigeonhole Principle Solutions

FINITE DIMENSIONAL ORDERED VECTOR SPACES WITH RIESZ INTERPOLATION AND EFFROS-SHEN S UNIMODULARITY CONJECTURE AARON TIKUISIS

The Henstock-Kurzweil-Stieltjes type integral for real functions on a fractal subset of the real line

3.2. Solving quadratic equations. Introduction. Prerequisites. Learning Outcomes. Learning Style

Tutorial for the TI-89 Titanium Calculator

1 Solving LPs: The Simplex Algorithm of George Dantzig

EQUATIONS and INEQUALITIES

MATH Fundamental Mathematics IV

Periodontology. Digital Art Guidelines JOURNAL OF. Monochrome Combination Halftones (grayscale or color images with text and/or line art)

The sample space for a pair of die rolls is the set. The sample space for a random number between 0 and 1 is the interval [0, 1].

LAB 11: MATRICES, SYSTEMS OF EQUATIONS and POLYNOMIAL MODELING

Microeconomic Theory: Basic Math Concepts

WHEN DOES A RANDOMLY WEIGHTED SELF NORMALIZED SUM CONVERGE IN DISTRIBUTION?

1 Review of Least Squares Solutions to Overdetermined Systems

Equations, Lenses and Fractions

Matrices 2. Solving Square Systems of Linear Equations; Inverse Matrices

4.5 Linear Dependence and Linear Independence

Lecture 16 : Relations and Functions DRAFT

ANALYSIS OF THE EFFECTIVENESS IN IMAGE COMPRESSION FOR CLOUD STORAGE FOR VARIOUS IMAGE FORMATS

Name: Section Registered In:

Algebra 2 Chapter 1 Vocabulary. identity - A statement that equates two equivalent expressions.

Squaring, Cubing, and Cube Rooting

Inner Product Spaces

3.1. Solving linear equations. Introduction. Prerequisites. Learning Outcomes. Learning Style

Math 120 Final Exam Practice Problems, Form: A

Operation Count; Numerical Linear Algebra

Sect Solving Equations Using the Zero Product Rule

5 Systems of Equations

The Fourth International DERIVE-TI92/89 Conference Liverpool, U.K., July Derive 5: The Easiest... Just Got Better!

1. Define: (a) Variable, (b) Constant, (c) Type, (d) Enumerated Type, (e) Identifier.

Transcription:

Fractal Image Compression Michael F. Barnsley The top-selling multimedia encyclopedia Encarta, published by Microsoft Corporation, includes on one CD-ROM seven thousand color photographs which may be viewed interactively on a computer screen. The images are diverse; they are of buildings, musical instruments, people s faces, baseball bats, ferns, etc. What most users do not know is that all of these photographs are based on fractals and that they represent a (seemingly magical) practical success of mathematics. Research on fractal image compression evolved from the mathematical ferment on chaos and fractals in the years 1978 1985 and in particular on the resurgence of interest in Julia sets and dynamical systems. Here I describe briefly some of the underlying ideas. Following Hutchinson [7], see also [5], consider first a finite set of contraction mappings w i, each with contractivity factor s <1, taking a compact metric space X into itself, i =1,2,...N. Such a setup is called an iterated function system (IFS), [1]. Use this IFS to construct a mapping W from the space H of nonempty compact subsets of X into itself by defining, in the self-explanatory notation, Michael F. Barnsley is chief science and technology officer, Iterated Systems, Inc., Norcross, GA, and adjunct professor of mathematics, University of New South Wales, Australia. His e-mail address is Mbarnsley@ aol.com. W (B) = w i (B) for all B H. Then W is a contraction mapping, with contractivity factor s <1, with respect to the Hausdorff metric h on H, defined as where with h(a, B) = Max{d(A, B),d(B,A)} for all A, B H, d(a, B) = Max{d(x, B) : x A} for all A, B H, d(x, B) =Min{d(x, y) : y B} for all x X,B H. Moreover, H endowed with h is complete. In this setting W admits a unique fixed point; that is, there is exactly one nonempty compact subset A of X such that A = W (A). A is called the attractor of the IFS. Now, following [3], suppose that X is a suitably large subset of R 2 and that each of the transformations w i is an affine map expressed by six parameters, w(x, y) =(ax + by + e, cx + dy + f). Then the corresponding attractor is uniquely specified by the sets of numbers a, b, c, d, e, f, which describe the maps. Given JUNE 1996 NOTICES OF THE AMS 657

So how is a photograph, such as that shown in Figure 2, computed? First the theory of IFS is extended to local functions w i such that wi 1 : D i R i where the domains D i and ranges R i are subsets of X, for i =1,2,...,N. Associated with an IFS of such functions we define W loc (B) = w i (R i B) for all B H. Figure 1. One of the seven thousand fractal transform photographs from Microsoft Encarta. Microsoft Corporation. a black and white image, which we model as a (compact nonempty) subset T of R 2, we can choose the coefficients in an IFS of affine maps so that its attractor is an approximation to T. To achieve this, we seek coefficients for the mappings w i so that h(t, w i (T )) is suitably small. For the contractivity of W implies the estimate [2] (1) h(t,a) (1 s) 1 h(t, w i (T )), which tells us that if T is close to W (T ), then the attractor cannot be far away either. For example, the well-known Barnsley fern represents the attractor of an IFS of four affine maps which were chosen so that a fern image T was mapped approximately to itself under the corresponding W; see [2] for more details. In this manner a fern subset of R 2 may be encoded using 24 bytes of data, namely, four maps each requiring six parameters, each represented by an integer in the interval [0, 255]. Under appropriate side conditions, such operators continue to be contractive and to admit estimates of the character of Equation (1). Such is the case in the following setup. A grayscale photograph image may be modelled as the graph G R 3 of a function f : S R that represents the intensity or brightness of the image on its support S R 2. Then one seeks a local IFS of contractive affine maps on R 3 such that W loc (G) approximates G and such that the projections P i of the domains D i form a partition of S. In a typical implementation S is a rectangle and the P i s are square tiles. For each i, to find a suitable contractive mapping w i, one searches in a digital computer implementation for the best match among some set of affine transformations between w i (R i G) and the portion of G that lies above P i, measured, say, by the minimum root-mean-square error. The coefficients and other descriptors of the selected local IFS are called a fractal transform of G; its attractor provides a succinct approximation G for G. Figures 2, 3, and 4 provide a simple illustration of fractal compression. Figure 2 shows the original digital image of Balloon, which is of dimensions 512 pixels by 512 pixels, with 256 gray levels at each pixel. Figure 3 shows the same image after fractal compression, carried out as follows: each tile P i (i =0,1,...,16383) consists of a square of dimensions 4 pixels by 4 pixels, with the lower left corner of P i located at pixel (j,k) where j = imod512 and k is the integer part of i/512. The contractive transformations w i are chosen to be affine, of the form w i (x, y, z) =(A i (x, y), 0.75z + c i ), where A i maps some square, in the support of the image, of dimensions 8 pixels by 8 pixels onto P i. Each A i is a similitude of contractivity factor 0.5. The origin of coordinates is at the lower left-hand corner of the image, and the z direction corresponds to intensity. The allowed squares are all of those with lower left corner at (2 p, 2 q) with p, q {0,1,...,251} and sides parallel to the axes, each of the eight possible isometries being admitted. The intensity coefficients c i are restricted to lie in the set { 256, 255,...,255}. The set of allowed affine transformations associated with each tile P i can be represented using 26 bits of data. The 658 NOTICES OF THE AMS VOLUME 43, NUMBER 6

Figure 2. Original 512 x 512 grayscale image, with 256 gray levels for each pixel, before fractal compression. Louisa Barnsley. part of the original associated with a single tile requires 128 bits of data; thus the fractal transform file is approximately one fifth the size of the original; the decompressed image computed from the fractal file is shown in Figure 3. In Figure 4 we show the result of restricting the choices for p and q so that the allowed squares associated with tile P i typically lie very close to P i ; for example, in the black regions A i (P i ) is simply a square of twice the size of P i, centered on the center of P i : an average of 3 bits is used to represent p and q together, the previously cited 26 bits is reduced to 15 bits on average, and the fractal transform file is approximately one eighth the size of the original. Correlations among the coefficients may be exploited by a standard loss- JUNE 1996 NOTICES OF THE AMS 659

Figure 3. This shows the result of applying fractal compression and decompression to the image displayed in Figure 2. less compression technique such as Huffman encoding to reduce file sizes further. Figure 5 shows the result of a fractal zoom, whereby the attractor is computed at higher resolution than in the original: the fractal transform file associated with Figure 3 is decompressed so that each 4 4 block in the original image corresponds to an 8 8 block here. Illustrative source code for computing such fractal transforms is provided in [4] and [6]. Software and hardware engineers at Iterated Systems and researchers in many academic institutions [6] continue to develop more sophisticated methods and successive generations of products for computing attractors ever closer to true resolution-independent pictures. 660 NOTICES OF THE AMS VOLUME 43, NUMBER 6

Figure 4. This shows the result of applying fractal compression and decompression to the image displayed in Figure 2, at a higher compression ratio than in Figure 3. See text. Acknowledgments This work developed from basic research carried out in the School of Mathematics at Georgia Institute of Technology during the period 1979 1988; our group included Steven Demko, Jeffrey Geronimo, John Elton, Andrew Harrington, Mark Berger, and Alan Sloan. Graduate students who later joined the fray included Douglas Hardin, Els Withers, John Herndon, Peter Massopust, Arnaud Jacquin, and Laurie Reuter. Figures 3, 4, and 5 were computed by Ning Lu. References [1] M. F. Barnsley and S. G. Demko, Iterated function systems and the global construction of fractals, Proc. Roy. Soc. London A399 (1985), 2433 275. JUNE 1996 NOTICES OF THE AMS 661

Figure 5. Fractal zoom on Figure 3 obtained by computing the attractor of the fractal transform at twice the resolution of the original. [2] M. F. Barnsley, V. Ervin, D. Hardin, and J. Lancaster, Solution of an inverse problem for fractals and other sets, Proc. Nat. Acad. Sci. 83 (1985), 1975 1977. [3] M. F. Barnsley, Fractals everywhere, Academic Press, Boston, 1988. [4] M. F. Barnsley and L. P. Hurd, Fractal image compression, A. K. Peters, Boston, 1992. [5] P. M. Diaconis and M. Shashahani, Products of random matrices and computer image generation, Contemp. Math. 50 (1986), 173 182. [6] Y. Fisher, Fractal image compression, Springer- Verlag, New York, 1995. [7] J. Hutchinson, Fractals and self-similarity, Indiana Univ. J. Math. 30 (1981), 713 747. 662 NOTICES OF THE AMS VOLUME 43, NUMBER6