IMAGE SAMPLING AND IMAGE QUANTIZATION 1. Introduction

Slides:



Advertisements
Similar presentations
ECE 4371, Fall, 2014 Introduction to Telecommunication Engineering/Telecommunication Laboratory Zhu Han Department of Electrical and Computer Engineering.
Advertisements

Digital Coding of Analog Signal Prepared By: Amit Degada Teaching Assistant Electronics Engineering Department, Sardar Vallabhbhai National Institute of.
Sampling process Sampling is the process of converting continuous time, continuous amplitude analog signal into discrete time continuous amplitude signal.
CEN352, Dr. Ghulam Muhammad King Saud University
School of Computing Science Simon Fraser University
Computer Graphics Recitation 6. 2 Motivation – Image compression What linear combination of 8x8 basis signals produces an 8x8 block in the image?
lecture 5, Sampling and the Nyquist Condition Sampling Outline  FT of comb function  Sampling Nyquist Condition  sinc interpolation Truncation.
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
1 Images and Transformations Images by Pawan SinhaPawan Sinha.
Analogue and digital techniques in closed loop regulation applications Digital systems Sampling of analogue signals Sample-and-hold Parseval’s theorem.
Fourier Transform 2D Discrete Fourier Transform - 2D
Leo Lam © Signals and Systems EE235. Transformers Leo Lam ©
Sampling and Antialiasing CMSC 491/635. Abstract Vector Spaces Addition –C = A + B = B + A –(A + B) + C = A + (B + C) –given A, B, A + X = B for only.
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 3 Ravi Ramamoorthi
… Representation of a CT Signal Using Impulse Functions
Formatting and Baseband Modulation
Image Processing 고려대학교 컴퓨터 그래픽스 연구실 cgvr.korea.ac.kr.
Dr Martin Hendry, Dept of Physics and Astronomy University of Glasgow, UK Astronomical Data Analysis I 11 lectures, beginning autumn 2008.
EE421, Fall 1998 Michigan Technological University Timothy J. Schulz 08-Sept, 98EE421, Lecture 11 Digital Signal Processing (DSP) Systems l Digital processing.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
DTFT And Fourier Transform
Leo Lam © Signals and Systems EE235 Lecture 28.
Lecture 1 Signals in the Time and Frequency Domains
IMAGE SAMPLING AND IMAGE QUANTIZATION 1. Introduction
Digital Signal Processing
Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain.
ECE 4710: Lecture #6 1 Bandlimited Signals  Bandlimited waveforms have non-zero spectral components only within a finite frequency range  Waveform is.
Lecture 7: Sampling Review of 2D Fourier Theory We view f(x,y) as a linear combination of complex exponentials that represent plane waves. F(u,v) describes.
Digital Image Processing DIGITIZATION. Summery of previous lecture Digital image processing techniques Application areas of the digital image processing.
Digital image processing Chapter 3. Image sampling and quantization IMAGE SAMPLING AND IMAGE QUANTIZATION 1. Introduction 2. Sampling in the two-dimensional.
Image Processing Basics. What are images? An image is a 2-d rectilinear array of pixels.
Chapter 2 Signals and Spectra (All sections, except Section 8, are covered.)
CMSC 635 Sampling and Antialiasing. Aliasing in images.
Leo Lam © Signals and Systems EE235 Leo Lam.
2D Sampling Goal: Represent a 2D function by a finite set of points.
Leo Lam © Signals and Systems EE235. Leo Lam © Fourier Transform Q: What did the Fourier transform of the arbitrary signal say to.
Digital Image Processing
IMAGE SAMPLING AND IMAGE QUANTIZATION 1. Introduction
Lecture 3: The Sampling Process and Aliasing 1. Introduction A digital or sampled-data control system operates on discrete- time rather than continuous-time.
The Fourier Transform.
Fourier Transform (Chapter 4) CS474/674 – Prof. Bebis.
Sampling (Section 4.3) CS474/674 – Prof. Bebis.
Advanced Computer Graphics
Chapter 4 Dynamical Behavior of Processes Homework 6 Construct an s-Function model of the interacting tank-in-series system and compare its simulation.
Chapter 4 Dynamical Behavior of Processes Homework 6 Construct an s-Function model of the interacting tank-in-series system and compare its simulation.
… Sampling … … Filtering … … Reconstruction …
MECH 373 Instrumentation and Measurements
Chapter 3 Sampling.
Image Enhancement in the
(C) 2002 University of Wisconsin, CS 559
General Functions A non-periodic function can be represented as a sum of sin’s and cos’s of (possibly) all frequencies: F() is the spectrum of the function.
Fundamentals Data.
لجنة الهندسة الكهربائية
Image Acquisition.
Lecture 9: Sampling & PAM 1st semester By: Elham Sunbu.
لجنة الهندسة الكهربائية
Lecture 10 Digital to Analog (D-to-A) Conversion
Lecture 4 Sampling & Aliasing
Digital Image Processing
Chapter 2 Ideal Sampling and Nyquist Theorem
Sampling and Quantization
Rectangular Sampling.
Signals and Systems Revision Lecture 2
CEN352, Dr. Ghulam Muhammad King Saud University
Chapter 3 Sampling.
Lecture 7: Signal Processing
Lecture 4 Image Enhancement in Frequency Domain
Sampling and Aliasing.
DIGITAL CONTROL SYSTEM WEEK 3 NUMERICAL APPROXIMATION
Review and Importance CS 111.
Presentation transcript:

IMAGE SAMPLING AND IMAGE QUANTIZATION 1. Introduction Digital image processing Chapter 3. Image sampling and quantization IMAGE SAMPLING AND IMAGE QUANTIZATION 1. Introduction 2. Sampling in the two-dimensional space Basics on image sampling The concept of spatial frequencies Images of limited bandwidth Two-dimensional sampling Image reconstruction from its samples The Nyquist rate. The alias effect and spectral replicas superposition The sampling theorem in the two-dimensional case Non-rectangular sampling grids and interlaced sampling The optimal sampling Practical limitations in sampling and reconstruction 3. Image quantization 4. The optimal quantizer The uniform quantizer 5. Visual quantization Contrast quantization Pseudo-random noise quantization Halftone image generation Color image quantization

Fig 1 Image sampling and quantization / Analog image display Digital image processing Chapter 3. Image sampling and quantization 1.           Introduction                                   Fig 1 Image sampling and quantization / Analog image display  

2. Sampling in the two-dimensional space Basics on image sampling Digital image processing Chapter 3. Image sampling and quantization 2.           Sampling in the two-dimensional space Basics on image sampling               x y f(x,y)                    

1-D signal (time varying) 2-D signal (grey scale image) Digital image processing Chapter 3. Image sampling and quantization The concept of spatial frequencies - Grey scale images can be seen as a 2-D generalization of time-varying signals (both in the analog and in the digital case); the following equivalence applies: 1-D signal (time varying) 2-D signal (grey scale image) Time coordinate t Space coordinates x,y Instantaneous value: f(t) Brightness level, point-wise: f(x,y) A 1-D signal that doesn’t vary in time (is constant) = has 0 A.C. component, and only a D.C. component A perfectly uniform image (it has the same brightness in all spatial locations); the D.C. component = the brightness in any point The frequency content of a 1-D signal is proportional to the speed of variation of its instantaneous value in time: νmax ~ max(df/dt) The frequency content of an image (2-D signal) is proportional to the speed of variation of its instantaneous value in space: νmax,x ~ max(df/dx); νmax,y ~ max(df/dy) => νmax,x , νmax,y = “spatial frequencies” Discrete 1-D signal: described by its samples => a vector: u=[u(0) u(1) … u(N-1)], N samples; the position of the sample = the discrete time moment Discrete image (2-D signal): described by its samples, but in 2-D => a matrix: U[M×N], U={u(m,n)}, m=0,1,…,M-1; n=0,1,…,N-1. The spectrum of the time varying signal = the real part of the Fourier transform of the signal, F(ω); ω=2πν. The spectrum of the image = real part of the Fourier transform of the image = 2-D generalization of 1-D Fourier transform, F(ωx,ωy) ωx=2πνx; ωy=2πνy

The spectrum of a limited bandwidth image and its spectral support Digital image processing Chapter 3. Image sampling and quantization Images of limited bandwidth Limited bandwidth image = 2-D signal with finite spectral support: F(νx, νy) = the Fourier transform of the image: The spectrum of a limited bandwidth image and its spectral support

Two-dimensional sampling (1) Digital image processing Chapter 3. Image sampling and quantization Two-dimensional sampling (1) The common sampling grid = the uniformly spaced, rectangular grid: Image sampling = read from the original, spatially continuous, brightness function f(x,y), only in the black dots positions ( only where the grid allows):  

Two-dimensional sampling (2) Digital image processing Chapter 3. Image sampling and quantization Two-dimensional sampling (2) Question: How to choose the values Δx, Δy to achieve: the representation of the digital image by the min. number of samples, at (ideally) no loss of information? (I. e.: for a perfectly uniform image, only 1 sample is enough to completely represent the image => sampling can be done with very large steps; on the opposite – if the brightness varies very sharply => very many samples needed) The sampling intervals Δx, Δy needed to have no loss of information depend on the spatial frequency content of the image. Sampling conditions for no information loss – derived by examining the spectrum of the image  by performing the Fourier analysis: The sampling grid function g(Δx, Δy) is periodical with period (Δx, Δy) => can be expressed by its Fourier series expansion:  

Two-dimensional sampling (3) Digital image processing Chapter 3. Image sampling and quantization Two-dimensional sampling (3) Since: Therefore the Fourier transform of fS is:  The spectrum of the sampled image = the collection of an infinite number of scaled spectral replicas of the spectrum of the original image, centered at multiples of spatial frequencies 1/Δx, 1/ Δy.  

Original image spectrum – 3D Original image spectrum – 2D Digital image processing Chapter 3. Image sampling and quantization Original image Original image spectrum – 3D Original image spectrum – 2D 2-D rectangular sampling grid Sampled image spectrum – 3D Sampled image spectrum – 2D

Image reconstruction from its samples Digital image processing Chapter 3. Image sampling and quantization Image reconstruction from its samples , or  

The Nyquist rate. The aliasing. The fold-over frequencies Digital image processing Chapter 3. Image sampling and quantization The Nyquist rate. The aliasing. The fold-over frequencies   The sampling theorem in the two-dimensional case then

Fig.6 Interlaced sampling Digital image processing Chapter 3. Image sampling and quantization Non-rectangular sampling grids. Interlaced sampling grids Fig.6 Interlaced sampling  

Digital image processing Chapter 3. Image sampling and quantization Optimal sampling ;  Image interpolation filters  

Digital image processing Chapter 3. Image sampling and quantization Practical limitations in image sampling and reconstruction   Fig. 7 The block diagram of a real sampler & reconstruction (display) system     Fig. 8 The real effect of the interpolation

Digital image processing Chapter 3. Image sampling and quantization 3. Image quantization   Fig. 9 The quantizer’s transfer function 3.1. Overview

Digital image processing Chapter 3. Image sampling and quantization 3.2. The optimal (MSE) quantizer (the Lloyd-Max quantizer)

Digital image processing Chapter 3. Image sampling and quantization (Gaussian) , or (Laplacian)   ( variance , - mean)

Digital image processing Chapter 3. Image sampling and quantization 3.3. The uniform quantizer

3.4. Visual quantization methods Digital image processing Chapter 3. Image sampling and quantization 3.4. Visual quantization methods a. Contrast quantization   Fig.11 Contrast quantization or b. Pseudorandom noise quantization   Fig. 12 Quantization with pseudorandom noise

Digital image processing Chapter 3. Image sampling and quantization

Halftone images generation Digital image processing Chapter 3. Image sampling and quantization Halftone images generation Fig.14 Digital generation of halftone images   Demo: http://markschulze.net/halftone/index.html Fig.15 Halftone matrices

Digital image processing Chapter 3. Image sampling and quantization Fig.3.16

Digital image processing Chapter 3. Image sampling and quantization Color images quantization Fig.17 Color images quantization