Sampling Issues in Image and Video

Similar documents
Module 3: Video Sampling Lecture 16: Sampling of video in two dimensions: Progressive vs Interlaced scans. The Lecture Contains:

Hello, welcome to the course on Digital Image Processing.

Signals and Systems. Spring Room 324, Geology Palace, ,

ECE438 - Laboratory 4: Sampling and Reconstruction of Continuous-Time Signals

Basics on Video Communications and Other Video Coding Approaches/Standards

Sampling. Sampling. CS 450: Introduction to Digital Signal and Image Processing. Bryan Morse BYU Computer Science

Film Sequence Detection and Removal in DTV Format and Standards Conversion

Digital Signal. Continuous. Continuous. amplitude. amplitude. Discrete-time Signal. Analog Signal. Discrete. Continuous. time. time.

WE treat the problem of reconstructing a random signal

Problem Set #1 Problem Set Due: Friday, April 12

FFT Laboratory Experiments for the HP Series Oscilloscopes and HP 54657A/54658A Measurement Storage Modules

ZONE PLATE SIGNALS 525 Lines Standard M/NTSC

Module 4: Video Sampling Rate Conversion Lecture 25: Scan rate doubling, Standards conversion. The Lecture Contains: Algorithm 1: Algorithm 2:

Module 3: Video Sampling Lecture 17: Sampling of raster scan pattern: BT.601 format, Color video signal sampling formats

DVG-5000 Motion Pattern Option

Multirate Signal Processing: Graphical Representation & Comparison of Decimation & Interpolation Identities using MATLAB

Experiment 2: Sampling and Quantization

Fundamentals of DSP Chap. 1: Introduction

MPEG has been established as an international standard

Module 8 : Numerical Relaying I : Fundamentals

Midterm Review. Yao Wang Polytechnic University, Brooklyn, NY11201

DIGITAL COMMUNICATION

Lecture 2 Video Formation and Representation

CM3106 Solutions. Do not turn this page over until instructed to do so by the Senior Invigilator.

Video coding standards

Digitizing and Sampling

חלק מהשקפים מעובדים משקפים של פרדו דוראנד, טומס פנקהאוסר ודניאל כהן-אור קורס גרפיקה ממוחשבת 2009/2010 סמסטר א' Image Processing

Processing. Electrical Engineering, Department. IIT Kanpur. NPTEL Online - IIT Kanpur

Deinterlacing An Overview

An Overview of Video Coding Algorithms

(a) (b) Figure 1.1: Screen photographs illustrating the specic form of noise sometimes encountered on television. The left hand image (a) shows the no

An Introduction to the Sampling Theorem

Multirate Digital Signal Processing

FRAME RATE CONVERSION OF INTERLACED VIDEO

International Journal of Engineering Research-Online A Peer Reviewed International Journal

ON THE INTERPOLATION OF ULTRASONIC GUIDED WAVE SIGNALS

Analog TV Systems: Monochrome TV. Yao Wang Polytechnic University, Brooklyn, NY11201

Course Web site:

10:15-11 am Digital signal processing

Crash Course in Digital Signal Processing

Rounding Considerations SDTV-HDTV YCbCr Transforms 4:4:4 to 4:2:2 YCbCr Conversion

Adaptive Resampling - Transforming From the Time to the Angle Domain

Intro to DSP: Sampling. with GNU Radio Jeff Long

Digital Image and Fourier Transform

Module 1: Digital Video Signal Processing Lecture 5: Color coordinates and chromonance subsampling. The Lecture Contains:

Vector-Valued Image Interpolation by an Anisotropic Diffusion-Projection PDE

Express Letters. A Novel Four-Step Search Algorithm for Fast Block Motion Estimation

Suverna Sengar 1, Partha Pratim Bhattacharya 2

Video Processing Applications Image and Video Processing Dr. Anil Kokaram

ELEC 310 Digital Signal Processing

Filterbank Reconstruction of Bandlimited Signals from Nonuniform and Generalized Samples

Multimedia Systems Video I (Basics of Analog and Digital Video) Mahdi Amiri April 2011 Sharif University of Technology

CS2401-COMPUTER GRAPHICS QUESTION BANK

Research and Development Report

Problem Weight Total 100

High Precision and High Speed TV Picture Quality Enhancement Method based on Compactly Supported Sampling Function

Recap: Representation. Subtle Skeletal Differences. How do skeletons differ? Target Poses. Reference Poses

1 Overview. 1.1 Digital Images GEORGIA INSTITUTE OF TECHNOLOGY. ECE 2026 Summer 2018 Lab #5: Sampling: A/D and D/A & Aliasing

Research & Development. White Paper WHP 230

A Parametric Autoregressive Model for the Extraction of Electric Network Frequency Fluctuations in Audio Forensic Authentication

Research Article. ISSN (Print) *Corresponding author Shireen Fathima

Module 8 VIDEO CODING STANDARDS. Version 2 ECE IIT, Kharagpur

Interpolated DDS Technique in SDG2000X October 24, 2017 Preface

High Quality Digital Video Processing: Technology and Methods

Dr. David A. Clifton Group Leader Computational Health Informatics (CHI) Lab Lecturer in Engineering Science, Balliol College

Introduction to Digital Signal Processing (Discrete-time Signal Processing) Prof. Ja-Ling Wu Dept. CSIE & GINM National Taiwan University

Motion Video Compression

Fourier Transforms 1D

Design and VLSI Implementation of Oversampling Sigma Delta Digital to Analog Convertor Used For Hearing Aid Application

Supplementary Course Notes: Continuous vs. Discrete (Analog vs. Digital) Representation of Information

White Paper : Achieving synthetic slow-motion in UHDTV. InSync Technology Ltd, UK

Avivo and the Video Pipeline. Delivering Video and Display Perfection

Towards More Efficient DSP Implementations: An Analysis into the Sources of Error in DSP Design

ITU-T Video Coding Standards

Universal Format Converter Implementation

Region Adaptive Unsharp Masking based DCT Interpolation for Efficient Video Intra Frame Up-sampling

2.4.1 Graphics. Graphics Principles: Example Screen Format IMAGE REPRESNTATION

CMPT 365 Multimedia Systems. Mid-Term Review

INTERNATIONAL JOURNAL OF ELECTRONICS AND COMMUNICATION ENGINEERING & TECHNOLOGY (IJECET)

Overview: Video Coding Standards

LeCroy Digital Oscilloscopes

Comp 410/510. Computer Graphics Spring Introduction to Graphics Systems

High Performance Real-Time Software Asynchronous Sample Rate Converter Kernel

Technical Bulletin 625 Line PAL Spec v Digital Page 1 of 5

Lab 5 Linear Predictive Coding

United States Patent: 4,789,893. ( 1 of 1 ) United States Patent 4,789,893 Weston December 6, Interpolating lines of video signals

Frame Interpolation and Motion Blur for Film Production and Presentation GTC Conference, San Jose

Television History. Date / Place E. Nemer - 1

DELTA MODULATION AND DPCM CODING OF COLOR SIGNALS

1 Overview. 1.1 Digital Images GEORGIA INSTITUTE OF TECHNOLOGY. ECE 2026 Summer 2016 Lab #6: Sampling: A/D and D/A & Aliasing

Deep Neural Networks Scanning for patterns (aka convolutional networks) Bhiksha Raj

Calibrate, Characterize and Emulate Systems Using RFXpress in AWG Series

Sensors, Measurement systems Signal processing and Inverse problems Exercises

Block Diagram. pixin. pixin_field. pixin_vsync. pixin_hsync. pixin_val. pixin_rdy. pixels_per_line. lines_per_field. pixels_per_line [11:0]

5.1 Types of Video Signals. Chapter 5 Fundamental Concepts in Video. Component video

DDC and DUC Filters in SDR platforms

A Parametric Autoregressive Model for the Extraction of Electric Network Frequency Fluctuations in Audio Forensic Authentication

Experiment # 5. Pulse Code Modulation

InSync White Paper : Achieving optimal conversions in UHDTV workflows April 2015

Design and Analysis of New Methods on Passive Image Forensics. Advisor: Fernando Pérez-González. Signal Theory and Communications Department

Transcription:

Sampling Issues in Image and Video Spring 06 Instructor: K. J. Ray Liu ECE Department, Univ. of Maryland, College Park Overview and Logistics Last Time: Motion analysis Geometric relations and manipulations Today: 2-D sampling at Rectangular grid Lattice theory for multidimensional sampling at non-rectangular grid Sampling and resampling for video ENEE631 Digital Image Processing (Spring'06) ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [2] Sampling: From 1-D 1 D to 2-D 2 D and 3-D3 Review: 1-D 1 D Sampling Time domain Multiply continuous-time signal with periodic impulse train Frequency domain X(ω) x(t) T p(t) = Σ k δ ( t - kt) Review Oppenheim Sig. & Sys Chapt.7 (Sampling) Chapt.3,4,5 (FS,FT,DFT) Duality: sampling in one domain tiling in another domain FT of an impulse train is an impulse train (proper scaling & stretching) 2π/T x s (t) X s (ω) ω P(ω) = Σ k δ ( ω -2kπ/T) *2π/T 2π/T ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [3] ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [4] 1

Review: 1-D 1 D Sampling Theorem 1-D Sampling Theorem A 1-D signal x(t) bandlimited within [-ω B,ω B ] can be uniquely determined by its samples x(nt) if ω s > 2ω B (sample fast enough). Using the samples x(nt), we can reconstruct x(t) by filtering the impulse version of x(nt) by an ideal low pass filter Sampling below Nyquist rate (2ω B ) cause Aliasing X s (ω) with ω s > 2ω B Perfect Reconstructable X s (ω) with ω s < 2ω B Aliasing Extend to 2-D 2 D Sampling with Rectangular Grid Bandlimited 2-D signal Its FT is zero outside a bounded region ( ζ x > ζ x0, ζ y > ζ y0 ) in spatial freq. domain Real-word multi-dimensional signals often exhibit diamond or football shape of support With spectrum normalization, we will get spherical shape of support -ωs ω B ω s =2π/T ω B ω s =2π/T Jain s Fig.4.6 ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [5] ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [6] 2-D D Sampling (cont d) 2-D Comb function comb(x,y; Δx, Δy) = Σ m,n δ ( x - mδx, y - nδy ) ~ separable function FT: COMB(ζ x, ζ y ) = comb(ζ x, ζ y ; 1/Δx, 1/Δy) / ΔxΔy Sampling vs. Replication (tiling) Nyquist rates (2ζ x0 and 2ζ y0 ) Aliasing Jain s Fig.4.7 2-D D Sampling: Beyond Rectangular Grid Sampling at nonrectangular grid May give more efficient sampling density when spectrum region of support is not rectangular Sampling density measured by #samples needed per unit area E.g. interlaced grid for diamondshaped region of support equiv. to rotate 45-deg. of rectangular grid spectrum rotate by the same degree From Wang s book preprint Fig.4.2 ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [7] ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [8] 2

General Sampling Lattice Lattice Λ in K-dimension space R K From Wang s book preprint Fig.3.1 A set of all possible vectors represented as integer weighted combinations of K linearly independent basis vectors K K Λ = x R x = n jv j, nk Z j= 1 Generating matrix V (sampling matrix) V = [v 1, v 2,, v k ] => lattice points x = V n e.g., identity matrix V ~ square lattice Voronoi cell of a lattice A unit cell of a lattice, whose translations cover the whole space Consists of vectors that are closer to the origin than to other lattice points cell boundaries are equidistant lines between surrounding lattice points Sampling density d(λ) = 1 / det(v) det(v) measures volume of a cell; d(λ) is # lattice points in unit volume ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [9] Example of Lattices 1 V1 = 0 V2 = 0 1 3 / 2 1/ 2 0 1 Sampling Density: d1 = 1 d2 = 2 / 3 (rectangular) (hexagonal) From Wang s book preprint Fig.3.1 ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [10] Frequency Domain View & Reciprocal Lattice Reciprocal lattice Λ # for a lattice Λ (with generating matrix V) Generating matrix of Λ # is U = (V T ) -1 Basis vectors for Λ and Λ # are orthonormal to each other: V T U= I Denser lattice Λ has sparser reciprocal lattice Λ # : det(u) = 1 / det(v) Frequency domain view of sampling over lattice Sampling in spatial domain Repetition in freq. Domain Repetition grid in freq. domain can be described by reciprocal lattice Aliasing and prefiltering to avoid aliasing Aliasing happens when Voronoi cell of reciprocal lattice overlapped Sampling Efficiency From Wang s book preprint Fig.4.2 & 3.5 Consider spherical signal spectrum support Most real-world signals have symmetric freq. contents in many directions The multi-dim spectrum can be approximated well by a sphere (with proper scaling spectrum support) Voronoi cell of reciprocal lattice need to cover the sphere to avoid aliasing Tighter fit of the Voronoi cell to the sphere requires less sampling density What lattice gives the best sphere-covering capability? Sampling Efficiency ρ = volume(unit sphere) / d(λ) prefer close to 1 ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [11] ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [12] 3

Sampling Lattice Conversion Original From Wang s book preprint Fig.4.4 Recall: 1-D 1 Upsample and Downsample Intermediate Targeted From Crochiere-Rabiner Multirate DSP book Fig.2.15-16 ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [13] ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [14] General Procedures for Sampling Rate Conversion From Wang s book preprint Fig.4.1 ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [15] Example: Frame Rate Conversion Video sampling: formulate as a 3-D sampling problem Note: different signal characteristics and visual sensitivities along spatial and temporal dimensions (see Wang s Sec.3.3 on video sampling) General Approach to frame rate conversion Upsample => LPF => Downsample Interlaced 50 fields/sec 60 fields/sec Analyze in terms of 2-D sampling lattice (y, t) Convert odd field rate and even field rate separately do 25 30 rate conversion twice not fully utilize info. in the other fields Deinterlace first then convert frame rate do 50 60 frame rate conversion: 50 300 60 Simplify 50 60 by converting 5 frames 6 frames each of output 6 frames is from two nearest frames of the 5 originals weights are inversely proportional to the distance between I/O May do motion-interpolation for hybrid-coded video ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [16] 4

Case Studies on Sampling and Resampling in Video Processing Reading Assignment: Wang s s book Chapter 4 From Wang s book preprint Fig.4.3 ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [17] ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [18] Video Format Conversion for NTSC PAL Require both temporal and spatial rate conversion NTSC 525 lines per picture, 60 fields per second PAL 625 lines per picture, 50 fields per second Ideal approach (direct conversion) 525 lines 60 field/sec 13125 line 300 field/sec 625 lines 50 field/sec 4-step sequential conversion Deinterlace => line rate conversion => frame rate conversion => interlace From Wang s book preprint Fig.4.9 ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [19] ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [20] 5

Simplified Video Format Conversion 50 field/sec 60 field/sec Simplified after deinterlacing to 5 frames 6 frames Conversion involves two adjacent frames only 625 lines 525 lines Simplified to 25 lines 21 lines Conversion involves two adjacent lines only ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [21] ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [22] Interlaced Video and Deinterlacing Interlaced video Odd field at 0 Even field at Δt Odd field at 2Δt Even field at 3Δt Deinterlacing Merge to get a complete frame with odd and even field De-interlacing: Practical Approaches Spatial interpolation Vertical interpolation within the same field (1-D upsample by 2) Line averaging ~ average the line above and below D=(C+E)/2 Temporal interpolation 2-frame field merging => artifacts 3-frame field averaging D=(K+R)/2 fill in the missing odd field by averaging odd fields before and after Spatial-temporal interpolation Line-and-field averaging D=(C+E+K+R)/4 Examples from http://www.geocities.com/lukesvideo/interlacing.html ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [23] ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [24] 6

Motion-Compensated De-interlacing Stationary video scenes Temporary deinterlacing approach yield good result Scenes with rapid temporal changes Artifacts incurred from temporal interpolation Spatial interpolation alone is better than involving temporal interpolation Switching between spatial & temporal interpolation modes Based on motion detection result Hard switching or weighted average Motion-compensated interpolation Summary of Today s s Lecture Sampling and resampling issues in 2-D and 3-D Sampling lattice and frequency-domain interpretation Sampling rate conversion Next Lecture: Introduction to digital watermarking for image and video Readings Wang s book: Sec. 3.1-3.3, 3.5; Chapter 4 Computer Graphics Chapter 5 (Hearn-Baker, Prentice- Hall, 2 nd Ed) ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [25] ENEE631 Digital Image Processing (Spring'06) Lec24 2-D and 3-D Sampling [26] 7