M. Wu: ENEE631 Digital Image Processing (Spring'09) Back Projection for Radon Construction and Multi-dimensional Sampling Spring ’09 Instructor: Min Wu.

Slides:



Advertisements
Similar presentations
November 12, 2013Computer Vision Lecture 12: Texture 1Signature Another popular method of representing shape is called the signature. In order to compute.
Advertisements

University of Ioannina - Department of Computer Science Wavelets and Multiresolution Processing (Background) Christophoros Nikou Digital.
Image Processing Lecture 4
CS 551 / CS 645 Antialiasing. What is a pixel? A pixel is not… –A box –A disk –A teeny tiny little light A pixel is a point –It has no dimension –It occupies.
DIGITAL IMAGE PROCESSING
School of Computing Science Simon Fraser University
Immagini e filtri lineari. Image Filtering Modifying the pixels in an image based on some function of a local neighborhood of the pixels
Digital Image Processing Chapter 4: Image Enhancement in the Frequency Domain.
Digital Image Processing, 2nd ed. www. imageprocessingbook.com © 2001 R. C. Gonzalez & R. E. Woods 1 Objective To provide background material in support.
EECS 20 Chapter 10 Part 11 Sampling and Reconstruction Last time we Viewed aperiodic functions in terms of frequency components via Fourier transform Gained.
1 Computer Science 631 Lecture 3: Morphing, Sampling Ramin Zabih Computer Science Department CORNELL UNIVERSITY.
Application of Digital Signal Processing in Computed tomography (CT)
SAMPLING & ALIASING. OVERVIEW Periodic sampling, the process of representing a continuous signal with a sequence of discrete data values, pervades the.
Chapter 4: Sampling of Continuous-Time Signals
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5409 T-R 10:30am – 11:50am.
Echivalarea sistemelor analogice cu sisteme digitale Prof.dr.ing. Ioan NAFORNITA.
… Representation of a CT Signal Using Impulse Functions
ENEE631 Digital Image Processing (Spring'04) Sampling Issues in Image and Video Spring ’04 Instructor: Min Wu ECE Department, Univ. of Maryland, College.
Topic 7 - Fourier Transforms DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
University of Ioannina - Department of Computer Science Filtering in the Frequency Domain (Fundamentals) Digital Image Processing Christophoros Nikou
ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission ( ) Wiener Filtering Derivation Comments Re-sampling and Re-sizing 1D  2D 10/5/06.
DTFT And Fourier Transform
Signals and Systems Prof. H. Sameti Chapter 7: The Concept and Representation of Periodic Sampling of a CT Signal Analysis of Sampling in the Frequency.
IMAGE SAMPLING AND IMAGE QUANTIZATION 1. Introduction
M. Wu: ENEE631 Digital Image Processing (Spring'09) Medical Imaging Topic: Radon Transform & Inverse Radon Transf. Spring ’09 Instructor: Min Wu Electrical.
Digital Image Processing Lecture 20: Representation & Description
Chapter 9.  Mathematical morphology: ◦ A useful tool for extracting image components in the representation of region shape.  Boundaries, skeletons,
Image Enhancement in the Frequency Domain Spring 2006, Jen-Chang Liu.
Filtered Backprojection. Radon Transformation Radon transform in 2-D. Named after the Austrian mathematician Johann Radon RT is the integral transform.
Under Supervision of Dr. Kamel A. Arram Eng. Lamiaa Said Wed
Medical Image Analysis Image Reconstruction Figures come from the textbook: Medical Image Analysis, by Atam P. Dhawan, IEEE Press, 2003.
M. Wu: ENEE631 Digital Image Processing (Spring'09) Lattice Sampling Spring ’09 Instructor: Min Wu Electrical and Computer Engineering Department, University.
EE663 Image Processing Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Image Processing Edge detection Filtering: Noise suppresion.
Notice  HW problems for Z-transform at available on the course website  due this Friday (9/26/2014) 
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.
ENEE631 Digital Image Processing (Spring'04) Image Restoration Spring ’04 Instructor: Min Wu ECE Department, Univ. of Maryland, College Park  
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm.
If F {f(x,y)} = F(u,v) or F( ,  ) then F( ,  ) = F { g  (R) } The Fourier Transform of a projection at angle  is a line in the Fourier transform.
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing Digital Image Processing Spatial Aliasing and Image Enhancement.
Digital Image Processing CSC331 Morphological image processing 1.
M. Wu: ENEE631 Digital Image Processing (Fall'01) Medical Imaging Topic: Radon Transform & Inverse Radon Transf. Min Wu Electrical & Computer Engineering.
ENEE631 Digital Image Processing (Spring'04) Signal Processing: From 1-D to 2-D (m-D) Spring ’04 Instructor: Min Wu ECE Department, Univ. of Maryland,
02/05/2002 (C) University of Wisconsin 2002, CS 559 Last Time Color Quantization Mach Banding –Humans exaggerate sharp boundaries, but not fuzzy ones.
ENEE631 Digital Image Processing (Spring'04) Basics on 2-D Random Signal Spring ’04 Instructor: Min Wu ECE Department, Univ. of Maryland, College Park.
2D Sampling Goal: Represent a 2D function by a finite set of points.
1 Methods in Image Analysis – Lecture 3 Fourier CMU Robotics Institute U. Pitt Bioengineering 2630 Spring Term, 2004 George Stetten, M.D., Ph.D.
Fourier Transform.
Lecture 3: The Sampling Process and Aliasing 1. Introduction A digital or sampled-data control system operates on discrete- time rather than continuous-time.
Digital Image Processing, 2nd ed. www. imageprocessingbook.com © 2001 R. C. Gonzalez & R. E. Woods 1 Review: Linear Systems Some Definitions With reference.
BYST Morp-1 DIP - WS2002: Morphology Digital Image Processing Morphological Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department.
Projects Project 1a due this Friday Project 1b will go out on Friday to be done in pairs start looking for a partner now.
Last Lecture photomatix.com. Today Image Processing: from basic concepts to latest techniques Filtering Edge detection Re-sampling and aliasing Image.
The Fourier Transform.
Chapter 2 Ideal Sampling and Nyquist Theorem
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Sampling and Reconstruction.
Digital Image Processing Chapter - 4
Jean Baptiste Joseph Fourier
Linear Filters and Edges Chapters 7 and 8
… Sampling … … Filtering … … Reconstruction …
Linear Filters and Edges Chapters 7 and 8
Echivalarea sistemelor analogice cu sisteme digitale
Sampling and the Discrete Fourier Transform
4. Image Enhancement in Frequency Domain
Chapter 2 Ideal Sampling and Nyquist Theorem
Rectangular Sampling.
Chapter 9 Advanced Topics in DSP
DIGITAL CONTROL SYSTEM WEEK 3 NUMERICAL APPROXIMATION
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Presentation transcript:

M. Wu: ENEE631 Digital Image Processing (Spring'09) Back Projection for Radon Construction and Multi-dimensional Sampling Spring ’09 Instructor: Min Wu Electrical and Computer Engineering Department, University of Maryland, College Park   bb.eng.umd.edu (select ENEE631 S’09)   ENEE631 Spring’09 Lecture 25 (5/4/2009)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [2] Overview and Logistics Last Time: –Useful image features and feature extraction techniques u Projection based: convert 2-D data to 1-D profile u Parameter space: low-complexity detection of line, circle & other structure u Gradient based: corner detection; stable key point extraction & representation –Radon transform and applications in medical image processing u Relations between 1-D projection and 2-D FT => Project Theorem Today: –Back projection for inverting Radon transform –Sampling theory: extending 1-D to 2-D Course Logistics –Team work guide and questionnaire –Project progress report: Due Today 5pm May 4 by –TA evaluation (hard copy) –Course evaluation: Due May 13.

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [3] Recap: ENEE631 Grading Update –Assignments25% –Mid-term Exam 20% –Project 1 (image compression) 20% –Project 2 (mini R&D project) 30% Oral presentation; Written report Overall performance and depth –Base points (more for active class participation) 5% –No final exam; Remaining tasks include project-2 and 5 th assignment (framework design as “project architect/lead”) M Tu W Th F Sa Su

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [4] Follow-up: Morphological Processing on (Binary) Patterns Mathematical Morphology –A useful tool for representing region shape and pre/post processing u E.g. filling broken edges/contours; thinning; enlarging opening –Largely based on set theory and set operations  Binary image: the set includes coordinates of black (or white) pixels ~ Z 2  Grayscale image: the set includes pixel coordinates and gray value ~ Z 3 Figure from Gonzalez’s book resource

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [5] Fill in Holes on Binary Lines or Patterns 2-D operator for nonlinear binary filtering: e.g., majority voting Generalize: Basic binary morphological operations –Object X, Structuring element B => B x (translated to x) –Dilation: X (+) B = { x: B x  X   } ~ expanding –Erosion: X (  ) B = {x: B x  X } ~ shrinking Extending basic operations of erosion and dilation –Thickening and Thinning –Opening and Closing –Pruning and Skeleton Morphological op. for grayscale –See Gonzalez’s & Bovik’s Handbook Figure from Jain’s book Chapter 9

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [6] Examples of Morphological Processing Figures from Gonzalez’s book resource

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [7] See more examples in Gonzalez’s book Chapter 9 Table from Jain’s book Chapter 9

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [8] Radon Transform A linear transform f(x,y)  g(s,  ) –Line integral or “ray-sum” –Along a line inclined at angle  from y-axis and s away from origin Fix  to get a 1-D signal p  (s)= g(s,  ) (From Jain’s Fig.10.2)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [9] Rotational Invariance Property of Fourier Transform Consider a 2-D continuous signal & its 2-D Fourier transform 2-D FT is rotationally invariant FT of a rotated version of function f(t1, t2) is just to apply same rotation to F(  1,  2)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [10] Connection Between Radon & Fourier Transform Observations –Look at 2-D FT coeff. along horizontal frequency axis u FT of 1-D signal u 1-D signal is vertical summation (projection) of original 2-D signal –Look at FT coeff. along  =  0 ray passing origin u FT of projection of the signal perpendicular to  =  0 Projection Theorem Proof using FT definition & coordinate transform (Figure from Bovik’s Handbook Fig )

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [11] Projection Theorem (a.k.a. Projection-Slice Theorem) Let F(  1,  2) be the FT of a cont’s function f(t1, t2) Let Radon transform of f be given as p  (s) with 1-D FT P  (  ) Projection Theorem: P  (  ) = F(  cos ,  sin  ) for all  i.e. FT of a slice is the corresponding slice of the 2-D FT –We can obtain the full 2-D FT in terms of 1-D freq. components of the Radon transform at all angles.

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [12] Inverting Radon by Projection Theorem (Step-1) Filling 2-D FT data matrix with 1-D FT of Radon along different angles (Step-2) 2-D IFT Need Polar-to-Cartesian grid conversion for discrete scenarios –May lead to artifacts esp. with less densely sampled slices (From Jain’s Fig.10.16)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [13] Back Projection: Example

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [14] Back-Projection Sum up Radon projection along all angles passing the same pixel location (x, y) Back-projection = Inverse Radon? –Most contribution is from pixel (x,y), but still has some small contribution from others B ( R f ) = conv( f, h ) –Blurring func. h = (x 2 + y 2 ) -1/2, FT(h) ~ 1 / |  | (radial freq.  2 =  x 2 +  y 2 reflect how far from DC) Need inverse filtering to recover original –For “sharpening”: multiply |  | in FT domain (From Jain’s Fig.10.6)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [15] Back-projection = Inverse Radon ? Not exactly ~ Back-projection gives a blurred recovery –Intuition: most contribution is from the pixel (x,y), but still has some small contribution from other pixels –B ( R f ) = conv( f, h1 ) –Bluring function h1 = (x 2 + y 2 ) -1/2, FT( h1 ) ~ 1 / |  | where radial frequency  2 =  x 2 +  y 2 (reflect how far from DC) Need to apply inverse filtering to fully recover the original –Inverse filtering for “sharpening”: multiplied by |  | in FT domain

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [16] Inverting Radon via Filtered Back Projection f(x,y) = B H g Change coordinate (Cartesian => polar) Projection Theorem ( F_polar => G) Back Projection(FT domain) filtering (From Jain’s Fig.10.8)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [17] Properties/Applications of Filtered Back Projection Convolution-Projection Theorem –Radon[ f1  f2] = Radon[ f1 ]  Radon[ f2 ] u Radon and filtering operations are interchangeable u Can prove using Projection Theorem –Also useful for implementing 2-D filtering using 1-D filtering Another view of filtered back projection –Change the order of filtering and back-projection u Back Projection => Filtering u Filtering => Back Projection => See more discussions and applications in Jain’s

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [18] Other Scenarios of Computerized Tomography Parallel beams vs. Fan beams –Faster collection of projections via fan beams u involve rotations only Recover from projections contaminated with noise –MMSE criterion to minimize reconstruction errors  See Gonzalez 3/e book and Bovik’s Handbook for details (From Bovik’s Handbook Fig )

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [19] Explore Imaging Model and Sparsity Recall the talk on Model-based Imaging by Dr. Bouman Exploit imaging model to improve SNR –Exploit sparsity in image data –E.g. use L 1 norm instead of L 2 as in compressed sensing => be aware sparsity with artificial model like head phantom may not completely reflect the real data

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [20] Sampling: From 1-D to 2-D and 3-D UMCP ENEE631 Slides (created by M.Wu © 2004)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [21] Review: 1-D Sampling Time domain –Multiply continuous-time signal with periodic impulse train Frequency domain –Duality: sampling in one domain  tiling in another domain u FT of an impulse train is an impulse train (proper scaling & stretching) Review Oppenheim “Signals & Systems” Chapt.7 (Sampling); Chapt.3,4,5 (FS,FT,DFT) x(t) p(t) =  k  ( t - kT) T x s (t) P(  ) =  k  (  - 2k  /T) *2  /T 2  /T X(  )  Xs()Xs() 2  /T UMCP ENEE631 Slides (created by M.Wu © 2001)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [22] Review: 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  Aliasing  s =2  /T BB X s (  ) with  s > 2  B  Perfect Reconstructable  s =2  /T BB -s-s UMCP ENEE631 Slides (created by M.Wu © 2001)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [23] Extend to 2-D Sampling with Rectangular Grid Bandlimited 2-D signal –Its FT is zero outside a bounded region ( |  x |>  x0, |  y |>  y0 ) in spatial frequency domain Real-word multi-dimensional signals often exhibit diamond or football shape of support u with spectrum normalization => approx. spherical shape of support [Jain’s Fig.4.6] UMCP ENEE631 Slides (created by M.Wu © 2001/2004)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [24] 2-D Sampling (cont’d) 2-D impulse function (a.k.a. 2-D comb) 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 UMCP ENEE631 Slides (created by M.Wu © 2001)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [25] Examples of Aliasing Zig-zag / staircase at straight edges and ringing artifacts Moiré effects E.g. scanned image of a uniform gray field exhibits stripes instead of flat –Input image contains periodicities that are close to half of sampling freq. u e.g. when display/printing dot size is small compared to sampling period u Anti-aliasing filter’s response at cut-off band is insufficient to suppress large spectrum values around half of sampling freq. –Also appear when sampling a periodic signal at lower rate UMCP ENEE631 Slides (created by M.Wu © 2007) From Woods’ book Fig.2.11

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [26] Examples of Aliasing Zig-zag / staircase at straight edges and ringing artifacts Moiré effects E.g. scanned image of a uniform gray field exhibits stripes instead of flat UMCP ENEE631 Slides (created by M.Wu © 2007) Figures from Gonzalez’s 3/e book online resource

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [27] Moiré Effects E.g. scanned uniform gray field exhibits stripes See also Input image contains periodicities that are close to half of sampling frequency –e.g. when display/printing dot size is small compared to sampling period –Anti-aliasing filter’s response at cut-off band is insufficient to suppress large spectrum values around half of sampling freq. Also appear when sampling a periodic signal at lower rate Can overcome moiré effects of sampled halftone image by notch filtering UMCP ENEE631 Slides (created by M.Wu © 2007) (Image examples from wikipedia; see also Gonzalez 3/e 4.5.4, )

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [28] u E.g. Recent IEEE Spectrum Magazine (S’09) has an interesting article, opening with downsampling sinusoid at proper rate to create a sinusoid of any period

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [29] 2-D Sampling: Beyond Rectangular Grid Sampling at nonrectangular grid –M ay give more efficient sampling density when spectrum region of support is not rectangular u Sampling density measured by #samples needed per unit area –E.g. interlaced grid for diamond- shaped region of support u equiv. to rotate 45-degree of rectangular grid u spectrum rotate by the same degree From Wang’s book preprint Fig.4.2 UMCP ENEE631 Slides (created by M.Wu © 2001/2004)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [30] General Sampling Lattice Lattice  in K-dimension space R K –A set of all possible vectors represented as integer weighted combinations of K linearly independent basis vectors 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 –Enclose all points that are closer to the origin than to other lattice points u cell boundaries are equidistant lines between surrounding lattice points From Wang’s book preprint Fig.3.1 UMCP ENEE631 Slides (created by M.Wu © 2001/2004)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [31] Sampling Density: d1 = 1 d2 = 2 /  3 From Wang’s book preprint Fig.3.1 Examples of Lattices UMCP ENEE631 Slides (created by M.Wu © 2004)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [32] Periodicity in Lattice Representations Lattice represents a multi-dimensional periodic function –Repeats a basic pattern of a unit cell with all integer steps of translations –Voronoi cell describes the fundamental period of this periodic function Finding Voronoi cell (1) Draw straight line between origin and each of the closest nonzero lattice points; (2) Draw a perpendicular line that is half way between the two points => The polygon formed by these equidistant lines surrounding the origin is the Voronoi cell. u For 3-D or multi-dim, replace equidistant line with equidistant (hyper-)planes Sampling density d(  ) = 1 / |det(V)| |det(V)| measures volume of a cell; d(  ) is # lattice points in unit volume. UMCP ENEE631 Slides (created by M.Wu © 2007)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [33] 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 frequency domain –Repetition grid in freq. domain can be described by reciprocal lattice –Intuition for “reciprocal” [e.g.] rectangular grid that sample faster horizontally than vertically =>the repetition in frequency domain is slower horizontally than vertically Aliasing and prefiltering to avoid aliasing –Aliasing happens when signal spectrum extends outside the Voronoi cell of reciprocal lattice UMCP ENEE631 Slides (created by M.Wu © 2001/2004)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [34] Generalized Sampling Theorem –Wang’s book Sec.3.2.2, Theorem 3.6 –(see also Sec on multi-dimensional FT and DFT) UMCP ENEE631 Slides (created by M.Wu © 2004)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [35] Sampling Efficiency Consider spherical signal spectrum support –Many real-world signals have symmetric freq. contents in many directions –The multi-dim spectrum can be approximated well by a sphere (with proper scaling of 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 lower sampling density What lattice gives the best sphere-covering capability? Sampling Efficiency  = volume(unit sphere) / d(  )  prefer close to 1 From Wang’s book preprint Fig.4.2 & 3.5 UMCP ENEE631 Slides (created by M.Wu © 2001/2004)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [36] Recall: 1-D Upsample and Downsample From Crochiere-Rabiner “Multirate DSP” book Fig UMCP ENEE631 Slides (created by M.Wu © 2001)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [37] General Procedures for Sampling Rate Conversion From Wang’s book preprint Fig.4.1 UMCP ENEE631 Slides (created by M.Wu © 2001)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [38] Sampling Lattice Conversion From Wang’s book preprint Fig.4.4 Intermediate Original Targeted UMCP ENEE631 Slides (created by M.Wu © 2001)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [39] Case Studies on Sampling and Resampling in Video Processing Reference Readings: Wang’s book Chapter 4 e.g. Interlaced 50 fields/sec  60 fields/sec UMCP ENEE631 Slides (created by M.Wu © 2004)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [40] Summary of Today’s Lecture Radon transform and Inverse Radon transform –by Filtered Back Projection Sampling issues for image: extending 1-D to 2-D –Sampling lattice and frequency-domain interpretation –Sampling rate conversion Next Lecture: –More on Sampling on non-rectangular grid via the Lattice Theory Readings –Radon transform: Gonzalez 3/e book 5.11 [More readings] Bovik’s Handbook Sec.10.2; Jain’s Sec , 10.9 –2-D Sampling: Gonzalez 3/e book 4.3, 4.5 –Lattice Sampling: Wang’s book Sec , 3.5; Chapter 4 UMCP ENEE631 Slides (created by M.Wu © 2004)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [41] 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 u do 25  30 rate conversion twice => not fully utilize info. in other fields –Deinterlace first then convert frame rate u do 50  60 frame rate conversion: 50  300  60 –Simplify 50  60 by converting 5 frames  6 frames u each of output 6 frames is from two nearest frames of the 5 originals u weights are inversely proportional to the distance between I/O –May do motion-interpolation for hybrid-coded video UMCP ENEE631 Slides (created by M.Wu © 2001/2004)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [42] From Wang’s book preprint Fig.4.3 UMCP ENEE631 Slides (created by M.Wu © 2001)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [43]

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [44] 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  line 300 field/sec  625 lines 50 field/sec 4-step sequential conversion –Deinterlace => line rate conversion => frame rate conversion => interlace UMCP ENEE631 Slides (created by M.Wu © 2001)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [45] 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  line 300 field/sec  625 lines 50 field/sec 4-step sequential conversion –Deinterlace => line rate conversion => frame rate conversion => interlace –Food for thought: compare the computation of ideal and sequential u Hint: filtering done for X Y field/sec => examine X & Y UMCP ENEE631 Slides (created by M.Wu © 2001)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [46] From Wang’s book preprint Fig.4.9 UMCP ENEE631 Slides (created by M.Wu © 2001)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [47] Simplified Video Format Conversion 50 field/sec  60 field/sec –After deinterlacing, s implify to 5 frames  6 frames –Conversion involves two adjacent frames only 625 lines  525 lines –Simplify to 25 lines  21 lines –Conversion involves two adjacent lines only UMCP ENEE631 Slides (created by M.Wu © 2001)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [48] UMCP ENEE631 Slides (created by M.Wu © 2001) From Wang’s book preprint

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [49] 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 Examples from UMCP ENEE631 Slides (created by M.Wu © 2001)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [50] 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 u 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 UMCP ENEE631 Slides (created by M.Wu © 2001) From Wang’s book preprint

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [51] 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 u interpolation filter: [ ½, 1, ½ ] T u DTFT =  x(n) e -j2  n  y fy = 1 + ( e -j2  y fy + e j2  y fy ) / 2 = 1 + cos 2  y f y Temporal interpolation –2-frame field merging => artifacts –3-frame field averaging D=(K+R)/2 u 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 UMCP ENEE631 Slides (created by M.Wu © 2001) From Wang’s book preprint

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [52] 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 UMCP ENEE631 Slides (created by M.Wu © 2001)

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [53] Example: De-interlacing From Woods’ book resource

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [54] Example: Temporal Upsampling (5 to 30 fps) From Woods’ book resource

M. Wu: ENEE631 Digital Image Processing (Spring'09) Lec25 – Back Projection and M-D Sampling [55] Summary of Today’s Lecture Sampling and resampling issues in 2-D and 3-D –Sampling lattice and frequency-domain interpretation –Sampling rate conversion –Applications in video format and frame rate conversions Readings –Woods’ book Chapter 2, (9.2), –Explore further: Wang’s book Sec , 3.5; Chapter 4 UMCP ENEE631 Slides (created by M.Wu © 2004)