• Keine Ergebnisse gefunden

Image Compression Based on Spatial Redundancy Removal and Image Inpainting

N/A
N/A
Protected

Academic year: 2021

Aktie "Image Compression Based on Spatial Redundancy Removal and Image Inpainting"

Copied!
30
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Image Compression Based on Spatial Redundancy Removal and Image Inpainting

Presented by Alexander Cullmann

Paper by Vahid Bastani, Mohammad Sadegh

Helfroush, Keyvan Kasiri

(2)

Outline

1 Image Compression

2 Image Inpainting - A Brief Introduction

3 Image Inpainting as Image Compression Scheme

4 Experiments and Results

(3)

Image Compression

eliminate redundancy

even better compression: drop some unnecessary information JPEG use 8x8 blocks, cosine transformation and quantization

8x8 blocks are source of blocking artifacts (getting more and more visible in higher compression)

How to do better?

(4)

Where is the Redundancy?

“normal” pictures consist of separate regions

pixels in neighborhood are likely to be (almost) equal (high correlation) a lot of information is located at edges

boundary of a region specifies not only shape but change of pixel values

⇒ boundary pixel are enough information to recalculate an image

(5)

Example: Boundary is Enough

Left:Image with tree regions;Right: Extracted edges of the same image

(6)

More Redundancy Along Edges

no significant changes along edges

pixel values at endpoints of edge sufficient to recover values at entire edge

those endpoints are called ’source points’

⇒ Source Points + Shape of edges are enough information to recalculate an image

(7)

Example: Source Points and Shape are Enough

Left: Source points and boundaries;Right: Zoomed to source point

(8)

Image Inpainting

Goal: fill in missing / damaged regions in a visually plausible, non detectable way

in general: resulting inpainted image not necessarily similar to the original but similarity possible if “missing” parts are chosen wise

(9)

Inpainting a Region

ε: the boundary of the region

: the region to recover D: image domain

inpainting as boundary value problem:

u

=

0 in

u

=

u0|ε

(10)

From Source Pixel to Boundary

ε: the boundary (to recover)

: the region to (finally) recover D: image domain

µ1andµ2: source points

Γ

: boundary indicating the edge

Γ =

{(xt,yt

)|

xt

=

f

(

t

),

yt

=

g

(

t

)}

d2u

dl2

=

0

u|µ1

=

u0|µ1,u|µ2

=

u0|µ2

(11)

Both Steps in One Equation

let

λ

(

x,y

) =

1,

(

x,y

)

∈ε 0,

(

x,y

)

then

λd

2u

dl2

+ (

1−λ

)∆

u

=

0 u|µ1

=

u0|µ1,u|µ2

=

u0|µ2

(12)

Modification In The Numerical Approach

central difference of Laplace equation:

4uc−uN−uE−uS−uW

=

0

uc=18(cN·uN+cE·uE+cS·uS+cW·uW

+cNW·uNW+cNE·uNE+cSW·uSW+cSE·uSE)

with coefficients as follows:

caseλ=0 (inside the region):

cN=cE =cS=cW =2, cNW=cNE=cSW =cSE =0 caseλ=1 (on the curve):

ct1=ct+1=4, celse=0

NW N NE

W C E

SW S SE

(13)

Modification In The Numerical Approach

central difference of Laplace equation:

4uc−uN−uE−uS−uW

=

0

uc

=

18

(

cN·uN

+

cE·uE

+

cS·uS

+

cW·uW

+

cNW·uNW

+

cNE·uNE

+

cSW·uSW

+

cSE·uSE

)

with coefficients as follows:

caseλ=0 (inside the region):

cN=cE =cS=cW =2, cNW=cNE=cSW =cSE =0 caseλ=1 (on the curve):

ct1=ct+1=4, celse=0

NW N NE

W C E

SW S SE

(14)

Modification In The Numerical Approach

central difference of Laplace equation:

4uc−uN−uE−uS−uW

=

0

uc

=

18

(

cN·uN

+

cE·uE

+

cS·uS

+

cW·uW

+

cNW·uNW

+

cNE·uNE

+

cSW·uSW

+

cSE·uSE

)

with coefficients as follows:

caseλ

=

0 (inside the region):

cN

=

cE

=

cS

=

cW

=

2, cNW

=

cNE

=

cSW

=

cSE

=

0 caseλ

=

1 (on the curve):

ct1

=

ct+1

=

4, celse

=

0

NW N NE

W C E

SW S SE

(15)

Image Encoder - Block Diagram

(16)

Noise Canceler

Perona Malik filter: δu

δt

=

div

(

g

(k∇

uk)∇u

)

vanishes near eges

increases to 1 away from egdes

⇒ smoothes without blurring edges

⇒ removes noise

⇒ increases efficiency

(17)

Edge Extractor and Encoder

specifies boundary of different regions should detect real transitions

⇒ Sobel

encoding with lossless encoder as binary image

(18)

Source Point Extractor and Encoder

for each edge: SP are the points by which the edges may be recovered SP includes at least two pixels on both sides of edge

indicate variation in the direction perpendicular to edge stored row wise in an array

(19)

Image Decoder - Block Diagram

(20)

Example: Encoding and Decoding

(a)Original Image (8 bpp) (b)Edges

(c)Source Points

(d)Recovered Image (0.6 bpp)

(21)

Experiments: The Setting

noise removal: Jacobi iterative method, 30 iterations edge detection: Sobel, threshold set manually binary edge image encoded with JBIG algorithm Source Points encoded by entropy coding gray level images

Pentium Celeron 1.8 GHz, 512 MB RAM, Matlab R2007b encoder: 4 s

decoder: 40 s

(22)

Different Image Quality Indices

PSNR peak signal-to-noise ratio

ratio of the squared image intensity dynamic range to the mean squared difference of the original and distored image widely used

does not reflect human perception the higher the better

SSIM structural similarity

ratio of four times covariance times mean to the sum of squared variances times sum of squared means based on the human perception

the nearer to 1, the better

(23)

Comparison with JPEG

PSNR (dB) SSIM

Proposed JPEG Proposed JPEG Splash 0.8 bpp 32.83 41.87 0.9748 0.9859

0.4 bpp 30.07 36.00 0.9631 0.9579 0.2 bpp 28.48 30.16 0.9509 0.8780 Peppers 0.8 bpp 28.30 35.40 0.9266 0.9544 0.4 bpp 23.90 31.00 0.8513 0.8890 0.2 bpp 20.61 36.31 0.7832 0.7593

(24)

Example: Splash

Left:Original image, 8 bpp;Right:top row: proposed algorithm, bottom row:

JPEG

(25)

Example: Splash

(26)

Example: Peppers

Left:Original image, 8 bpp;Right:top row: proposed algorithm, bottom row:

JPEG

(27)

Example: Peppers

(28)

Conclusion

new method for image compression

high correlated regions skipped during encoding recovered using image inpainting

good for high compression (1:40 !)

details are lost, but image looks much better than JPEG

(29)
(30)

differential element along with the curve

Let n be a tangent vector to the curve:

n

=

dxt

dt ,dyt dt

,s dxt

dt 2

, dyt

dt 2

then the first derivative along the curveΓ

du dl

=

δu δx

dxt

dt

+

δu δy

dyt

dt

,s dxt

dt 2

, dyt

dt 2

Referenzen

ÄHNLICHE DOKUMENTE

The problem of image registration subsumes a number of problems and techniques in multiframe image analysis, including the computation of optic flow (general pixel-based motion),

Figure 2: Overview of our compression pipeline; the original model is given either as a point-based model or as a mesh; the encoder constructs a parameterization of the input model

A pair of corresponding lines in the source and destination images defines a coordinate mapping from the destination image pixel coordinate X to the source image

:KHQ (QOLO JLYHV WKH ȵRRG KHUR D QHZ QDPH WKH name’s proposition becomes a true predication of the QDPHGLHȊ+HRU,IRXQGOLIHȋ*HRUJH 7KLV PHDQV WKDW ĬWDQDSLģWL HYHQWXDOO\ EHFDPH

wählten Bild und dem Lebenswerk des Besitzers suchen läßt Meistens sind solche Bezüge zwischen Namen und Bild nicht sofort ersichtlich, sondern als geistreiches

Algorithm Examples Evaluation Outlook.. Choosing pixels as Dirichlet boundary 2. Embedding them in the cover 5. Restoring the image with diffusion. Explanations

• Verify matching patches according to geometry (later lecture)... Examples:

The fact that the minimum quality score can predict human performance, but the average quality score cannot confirmed our assumption that the quality of a IBR sequence is based on