Error Diffusion (ED) Li Yang Campus Norrkping (ITN), University of Linkping

Preview:

DESCRIPTION

A flow chart of ED

Citation preview

Error Diffusion (ED)

Li Yang Campus Norrköping (ITN),

University of Linköping

Fundamental concepts Threshold error feedback Input -> threshold -> error -> input -

>... It is adaptive algorithm; It takes neiborghood information into

account to determine the output value. Different from dither matrix.

A flow chart of ED

A historical review Sigma-delta modulation :Analog-

to-digital conversion of 1-D audio signal (Inose and Yasuda, 1963);

Error diffusion: 2-D for halftoning (Floyd and Steinberg, 1975);

Massive of following studies: theoretical studies and practical applications about ED.

Two ways for error diffusion (descriptions)

Standard ED: error is diffused from p(i,j) to its neighbours directly after its halftoning -> modified input …;

Systematic error compensation: Halftone for the original input, collect the error from its neighbours and modify the output of the pixel according to ED filter.

They are mathematically equivalent.

Two ways for error diffusion (error manipulation)

Two ways for error diffusion (process

diagram)

Mathematical description of error diffusion (spatial

domain)

]),('[ tnmpSTEPpo

),(),('),( nmpnmpnme o

lk

kl,

1

),(),(

),(),(),(',

nmenmp

lnkmenmpnmp

i

lkkli

Mathematical description of error diffusion (frequency domain)

),(),(

),()],([),(),(,

nmefnmp

lnkmelnkmnmpnmp

i

lkklio

1)](exp[),(

),(),(),(),(

,

lkjF

EFPP

lkkl

io

Characteristics of the error filter,

is a high pass filter: it lets only high spatial frequency components of the texture noise in the error spectrum pass into the output spectrum,

),( F

),( F

),( E

),( oP

Some examples of error filtersFloyd-Steinberg Filter

X 7/16 3/16 5/16 1/16

Stucki error filter

X 8/42 4/422/42 4/42 8/42 4/42 2/421/42 2/42 4/42 2/42 1/42

Applications and problems Worm artifacts

Topics of research Optimum error filter design; Stochastic error filter perturbation; Modification of raster direction and

space filling-path; Threshold modulation; Image adaptive error diffusion; Model based error diffusion;

Optimum error filter design Goal: to minimize the difference

between the input- and output-images in a human vision perspective;

Mathematics: ))]},(),([),(),(({

))]},(),([),(({2

2

nmnmnmenmvE

nmpnmpnmvEe iov

Stochastic error filter perturbation

Add random noise to the weights of the error filter(Schreiber 1981, Woo 1984);

Some examples

Modification of raster direction

Various space filling-path

Threshold modulation

Adopt to non-constant threshold values;

Add a set of random values to the threshold: t=0.50.5+t(m,n);

Varying the threshold spatially;

Image adaptive error diffusion Based on the observation: the

error spectrum distribution depends on the local tone values of the input image (Zeggel and Bryngdahl, 1994)

See examples

),( E

Image is scaled between 0 and 1

Image is scaled between 0 and 0.1

Image is scaled between 0.2 and 0.3

Image adaptive error diffusion (cont.)

Recommended