Bidimensional Golomb Codes and Lossless Image Compression Pablo - - PowerPoint PPT Presentation

bidimensional golomb codes and lossless image compression
SMART_READER_LITE
LIVE PREVIEW

Bidimensional Golomb Codes and Lossless Image Compression Pablo - - PowerPoint PPT Presentation

Bidimensional Golomb Codes and Lossless Image Compression Pablo Rotondo pabloedrot@gmail.com Universidad de la Rep ublica, Uruguay SP Coding School, 19-30 January, 2015 Golomb Codes Geometric Distribution A random variable X is said to be


slide-1
SLIDE 1

Bidimensional Golomb Codes and Lossless Image Compression

Pablo Rotondo

pabloedrot@gmail.com

Universidad de la Rep´ ublica, Uruguay

SP Coding School, 19-30 January, 2015

slide-2
SLIDE 2

Golomb Codes

Geometric Distribution

A random variable X is said to be geometrically distributed with parameter q ∈ (0, 1) if and only if Pr (X = n) = (1 − q) qn for all n ∈ Z≥0. We denote this distribution by ODGD(q).

Golomb Codes

Family of binary prefix-free codes Gk : Z≥0 → {0, 1}∗ with

◮ G1(n) = 0n1 is the unary code. ◮ Gk(n) = G1

n

k

  • · Tk (n mod k) for k > 1. Here Tk is

an optimal prefix free code for the source with symbols {i : 0 ≤ i < k} and weights w(i) = qi. The code Gk is optimal for ODGD(q) when k is the smallest positive integer such that qk + qk+1 ≤ 1.

slide-3
SLIDE 3

Golomb Codes in LOCO-I

LOCO-I (LOw COmplexity LOssless COmpression for Images) is a lossless compression algorithm for grayscale images. It involves the following elements and ideas.

◮ A scan of the pixels in raster-scan order. ◮ A predictor for the intensity of the current pixel based on

that of its already scanned neighbours.

◮ Causal contexts based on previously scanned

neighbouring pixels = ⇒ statistics for the prediction error.

◮ The assumption that the prediction error1 is well-modelled

by a two-sided geometric distribution (with offset).

◮ Code the prediction errors by means of the simpler family

(G2k)k≥0 of Rice codes ⇒ simpler selection and coding.

1Conditioned on the contexts, actually.

slide-4
SLIDE 4

Coding pairs of independent geometric variables

= ⇒ Coding in larger blocks leads to reduced redundancy. A pair (X, Y ) of independent random variables with distribution ODGD(q) is said to have distribution TDGD(q).

Optimal Bidimensional Codes

Let k ∈ Z>0 and q = 2−1/k. Then Ck : Z≥0 × Z≥0 → {0, 1}∗ defined by Ck(i, j) = G1 i k

  • · G1

j k

  • · Tk(i mod k, j mod k) ,

where Tk is an optimal prefix-free code for the source with respective symbols and weights Ak = {(i, j) : 0 ≤ i, j < k} , w(i, j) = qi+j , is an optimal prefix-free code for TDGD(q).

slide-5
SLIDE 5

Coding pairs in LOCO-I

Things done

◮ A selection rule for the

family C2k, and a derived coding and selection rule for a pair of independent variables with two-sided geometric distribution.

◮ Implemented LOCO-I to

code RGB images. ⇒ Code G as before, code prediction errors (ǫR−G, ǫB−G) jointly when appropriate.

Conclusions and questions

◮ A similar selection rule

holds for (C2k)k≥0.

◮ Similar results hold for

higher dimensions.

◮ Code-length advantage is

negligible ⇒ LOCO-I’s predictor is too good.

◮ Other families of

bidimensional codes?

◮ Better models for

(ǫR−G, ǫB−G)?

slide-6
SLIDE 6

References

  • M. J. Weinberger, G. Seroussi, and G. Sapiro,

The LOCO-I lossless image compression algorithm: Principles and standardization into JPEG-LS, IEEE Trans. Image Proc., vol. 9, pp. 1309-1324, 2000.

  • F. Bassino, J. Cl´

ement, G. Seroussi, and A. Viola, Optimal prefix codes for pairs of geometrically-distributed, IEEE Trans. Inform. Theory, 59 (4), April 2013.