Compression Ratio, Fractal Encoding - Assignment 3 - Image Processing | ECE 547, Assignments of Electrical and Electronics Engineering

Material Type: Assignment; Professor: Huang; Class: Topics in Image Processing; Subject: Electrical and Computer Engr; University: University of Illinois - Urbana-Champaign; Term: Fall 2008;

Typology: Assignments

Pre 2010

Uploaded on 03/16/2009

koofers-user-f76-2
koofers-user-f76-2 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ECE547 Image Processing Sept 25, 2008
Exercise 3
Lecturer: Prof. Thomas Huang Due: Oct 9, 2008
Problem 1 Compression Ratio (2 points)
Compute the compression ratio that you achieved in MP3. Assume that it takes the original image
was 128 ×128 with 8 bits per pixel. Suppose that it takes 7 bits to encode each row and column
value, 3 bits to encode a, and 8 bits to encode b. What is the compression ratio for blocksize=4
and blocksize=8?
Regardless of the block size, we are encoding each block with 7 + 7 + 3 + 8 = 25 bits. For
blocksize=4, each block of the original image takes 4×4×8 = 128 bits to represent. This means
that our method gives us 128 : 25 = 5.12 : 1 compression. Similarly, for blocksize=8, each block
of the original image takes 8 ×8×8 = 512 bits to represent. This means that our method gives us
512 : 25 = 20.48 : 1 compression
Problem 2 Fractal Encoding
Cross (3 points)
Below is an image of a simple 2-D fractal. Find the corresponding IFS and its fractal (Hausdorff)
dimension.
−0.5 −0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.4
−0.5
−0.4
−0.3
−0.2
−0.1
0
0.1
0.2
0.3
0.4
w1:0.333 0
0 0.333x
y+0
0
w2:0.333 0
0 0.333x
y+0.333
0
w3:0.333 0
0 0.333x
y+0.333
0
w4:0.333 0
0 0.333x
y+0
0.333
w5:0.333 0
0 0.333x
y+0
0.333
1
3s
+1
3s
+1
3s
+1
3s
+1
3s
= 1
=1
3s
=1
5
=slog 1
3= log 1
5
=s=log 5
log 3
E3-1
pf2

Partial preview of the text

Download Compression Ratio, Fractal Encoding - Assignment 3 - Image Processing | ECE 547 and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

ECE547 Image Processing Sept 25, 2008

Exercise 3

Lecturer: Prof. Thomas Huang Due: Oct 9, 2008

Problem 1 Compression Ratio (2 points)

Compute the compression ratio that you achieved in MP3. Assume that it takes the original image was 128 × 128 with 8 bits per pixel. Suppose that it takes 7 bits to encode each row and column value, 3 bits to encode a, and 8 bits to encode b. What is the compression ratio for blocksize= and blocksize=8? Regardless of the block size, we are encoding each block with 7 + 7 + 3 + 8 = 25 bits. For blocksize=4, each block of the original image takes 4 × 4 × 8 = 128 bits to represent. This means that our method gives us 128 : 25 = 5.12 : 1 compression. Similarly, for blocksize=8, each block of the original image takes 8 × 8 × 8 = 512 bits to represent. This means that our method gives us 512 : 25 = 20.48 : 1 compression

Problem 2 Fractal Encoding

Cross (3 points)

Below is an image of a simple 2-D fractal. Find the corresponding IFS and its fractal (Hausdorff) dimension.

−0.5−0.5 −0.4 −0.3 −0.2 −0.1 0 0.1 0.2 0.3 0.

−0.

−0.

−0.

−0.

0

w 1 :

[

  1. 333 0 0 0. 333

] [ x y

]

[ 0 0

]

w 2 :

[

  1. 333 0 0 0. 333

] [ x y

]

[

  1. 333 0

]

w 3 :

[

  1. 333 0 0 0. 333

] [ x y

]

[ − 0. 333 0

]

w 4 :

[

  1. 333 0 0 0. 333

] [ x y

]

[ 0

  1. 333

]

w 5 :

[

  1. 333 0 0 0. 333

] [ x y

]

[ 0 − 0. 333

]

( 1 3

)s

( 1 3

)s

( 1 3

)s

( 1 3

)s

( 1 3

)s = 1

=⇒

( 1 3

)s

1 5 =⇒ s log 1 3 = log 1 5 =⇒ s = log 5 log 3

E3-

Two Ways (3 points)

Find two different IFSs that have the following diagram as an attractor. (For example, there is one which has two transforms and at least two which have three.) Show that both formulations give the same fractal dimension.

0 0.1 0.2 0.3 0.4 0.5 0.

−0.

0

w 1 :

[

] [

x y

]

[

]

w 2 :

[

] [

x y

]

[

]

)s

)s = 1

=⇒ s ≈ 1. 507

0 0.1 0.2 0.3 0.4 0.5 0.

−0.

0

0.4^ w^1 :

[

] [

x y

]

[

]

w 2 :

[

] [

x y

]

[

]

w 3 :

[

] [

x y

]

[

]

)s

)s

)s = 1

=⇒ s ≈ 1. 507

Tree (2 points)

This is a variation of the “standard” fractal tree. Find its IFS. Why can we not estimate its fractal dimension with the technique we covered in class?

−0.3^0 −0.2 −0.1 0 0.1 0.

w 1 :

[

] [

x y

]

[

]

w 2 :

[

] [

x y

]

[

]

w 3 :

[

] [

x y

]

[

]

w 4 :

[

] [

x y

]

[

]

We can’t use the shortcut method because w 1 is not self- similar.

E3-