+ All Categories
Home > Documents > 06 Image

06 Image

Date post: 05-Apr-2018
Category:
Upload: anil-pandey
View: 217 times
Download: 0 times
Share this document with a friend
39
GraphicsLab@KoreaUniversity cgvr.korea.ac.kr Image Processing 고려대학교 컴퓨터 그래픽스 연구실 
Transcript
Page 1: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 1/39

[email protected]

Image Processing 

고려대학교 컴퓨터 그래픽스 연구실 

Page 2: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 2/39

CGVR

[email protected]

Overview 

Image Representation What is an image?

Halftoning and Dithering Trade spatial resolution for intensity resolution

Reduce visual artifacts due to quantization

Sampling and Reconstruction

Key steps in image processing

Avoid visual artifacts due to aliasing

Page 3: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 3/39

CGVR

[email protected]

What is an Image? 

An image is a 2D rectilinear array of pixels

Continuous image Digital image

Page 4: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 4/39

CGVR

[email protected]

What is an Image? 

An image is a 2D rectilinear array of pixels

Continuous image Digital image

Page 5: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 5/39

CGVR

[email protected]

What is an Image? 

An image is a 2D rectilinear array of pixels

Continuous image Digital image

 A pixel is a sample, not a little square!!

Page 6: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 6/39

CGVR

[email protected]

Image Acquisition 

Pixels are samples from continuous function Photoreceptors in eye

CCD cells in digital camera

Rays in virtual camera

Page 7: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 7/39

CGVR

[email protected]

Image Display 

Re-create continuous function from samples Example: cathode ray tube

Image is reconstructedby displaying pixels withfinite area (Gaussian)

Page 8: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 8/39

CGVR

[email protected]

Image Resolution 

Intensity resolution Each pixel has only “Depth” bits for colors/intensities 

Spatial resolution

Image has only “Width” x “Height” pixels  Temporal resolution

Monitor refreshes images at only “Rate” Hz 

Page 9: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 9/39

CGVR

[email protected]

Sources of Error 

Intensity quantization Not enough intensity resolution

Spatial aliasing

Not enough spatial resolution Temporal aliasing

Not enough temporal resolution

 y x

 y xP y x I  E ,

22,,

Page 10: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 10/39

CGVR

[email protected]

Overview 

Image Representation What is an image?

Halftoning and Dithering Trade spatial resolution for intensity resolution

Reduce visual artifacts due to quantization

Sampling and Reconstruction Key steps in image processing

Avoid visual artifacts due to aliasing

Page 11: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 11/39

Page 12: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 12/39

CGVR

[email protected]

Uniform Quantization 

5.0,trunc, y x I  y xP

I(x, y)

P(x, y)

2 bits per pixel

Page 13: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 13/39

CGVR

[email protected]

Uniform Quantization 

Image with decreasing bits per pixel:

8 bits 4 bits 2 bits 1 bit

Notice contouring

Page 14: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 14/39

CGVR

[email protected]

Reducing Effects of Quantization 

Halftoning Classical halftoning

Dithering Random dither

Ordered dither

Error diffusion dither

Page 15: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 15/39

CGVR

[email protected]

Classical Halftoning 

Use dots of varying size to representationintensities

Area of dots proportional to intensity in image

I(x, y) P(x, y)

Page 16: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 16/39

CGVR

[email protected]

Classical Halftoning 

Newspaper image

From New York Times 9/21/99

Page 17: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 17/39

CGVR

[email protected]

Halftone Patterns 

Use cluster of pixels to represent intensity Trade spatial resolution for intensity resolution

Page 18: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 18/39

CGVR

[email protected]

Halftone Patterns 

How many intensities in a n x n cluster?

Page 19: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 19/39

CGVR

[email protected]

Dithering 

Distribute errors among pixels Exploit spatial integration in our eye

Display greater range of perceptible intensities

Original

(8 bits)

UniformQuantization

(1 bit)

Floyd-SteinbergDither

(1 bit)

Page 20: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 20/39

CGVR

[email protected]

Random Dither 

Randomize quantization errors Errors appear as noise

5.0,noise,trunc, y x y x I  y xP

Page 21: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 21/39

CGVR

[email protected]

Random Dither 

Original

(8 bits)

UniformQuantization

(1 bit)

RandomDither(1 bit)

Page 22: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 22/39

CGVR

[email protected]

Ordered Dither 

Pseudo-random quantization errors Matrix stores pattern of thresholds

20

132 D

 j = x mod n

i = y mod n

e = I(x, y)  – trunc(I(x, y))

if( e > D(i, j) )

P(x, y) = ceil(I(x, y))else

P(x, y) = floor(I(x, y))

Page 23: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 23/39

CGVR

[email protected]

Ordered Dither 

Original

(8 bits)

UniformQuantization

(1 bit)

OrderedDither(1 bit)

Page 24: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 24/39

CGVR

[email protected]

Error Diffusion Dither 

Spread quantization error over neighbor pixels Error dispersed to pixels right and below

α 

α + β + γ + δ = 1.0

δ γ  β  

Page 25: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 25/39

CGVR

[email protected]

Error Diffusion Dither 

Original

(8 bits)

OrderedDither(1 bit)

RandomDither(1 bit)

Floyd-SteinbergDither(1 bit)

Page 26: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 26/39

CGVR

[email protected]

Overview 

Image Representation What is an image?

Halftoning and Dithering Trade spatial resolution for intensity resolution

Reduce visual artifacts due to quantization

Sampling and Reconstruction Key steps in image processing

Avoid visual artifacts due to aliasing

Page 27: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 27/39

CGVR

[email protected]

Sampling and Reconstruction 

Sampling

Reconstruction

Page 28: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 28/39

CGVR

[email protected]

Sampling and Reconstruction 

Page 29: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 29/39

CGVR

[email protected]

Aliasing 

In general: Artifacts due to under-sampling or poor

reconstruction

Specifically, in graphics:

Spatial aliasing

Temporal aliasing

Under-sampling

Page 30: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 30/39

CGVR

[email protected]

Spatial Aliasing 

Artifacts due to limited spatial resolution

Page 31: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 31/39

CGVR

[email protected]

Spatial Aliasing 

Artifacts due to limited spatial resolution

 “Jaggies”  

Page 32: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 32/39

CGVR

[email protected]

Temporal Aliasing 

Artifacts due to Limited Temporal Resolution Strobing

Flickering 

Page 33: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 33/39

CGVR

[email protected]

Temporal Aliasing 

Artifacts due to Limited Temporal Resolution Strobing

Flickering 

Page 34: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 34/39

CGVR

[email protected]

Temporal Aliasing 

Artifacts due to Limited Temporal Resolution Strobing

Flickering 

Page 35: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 35/39

CGVR

[email protected]

Temporal Aliasing 

Artifacts due to Limited Temporal Resolution Strobing

Flickering 

Page 36: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 36/39

CGVR

[email protected]

Antialiasing 

Sample at higher rate Not always possible

Doesn’t always solve problem 

Pre-filter to form bandlimited signal

Form bandlimited function (low-pass filter)

Trades aliasing for blurring

Must considersampling theory!

Page 37: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 37/39

CGVR

[email protected]

Sampling Theory 

How many samples are required to represent agiven signal without loss of information?

What signals can be reconstructed without lossfor a given sampling rate?

Page 38: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 38/39

CGVR

[email protected]

Sampling Theorem 

A signal can be reconstructed from its samples,if the original signal has no frequencies above ½the sampling frequency – Shannon

The minimum sampling rate for bandlimitedfunction is called “Nyquist rate” 

 A signal is bandlimited if its highestfrequency is bounded.

The frequency is called the bandwidth.

Page 39: 06 Image

7/31/2019 06 Image

http://slidepdf.com/reader/full/06-image 39/39

CGVR

Image Processing 

Quantization Uniform quantization

Random dither

Ordered dither

Floyd-Steinberg dither

Pixel operations Add random noise

Add luminance

Add contrast

Add saturation

Filtering Blur

Detect edge

Warping Scale

Rotate

Warps

Combining Morphs

Composite


Recommended