Computer Vision – Sampling Hanyang University Jong-Il Park.

Slides:



Advertisements
Similar presentations
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 4 Ravi Ramamoorthi
Advertisements

Image Processing IB Paper 8 – Part A
Lecture 11: Transformations CS4670/5760: Computer Vision Kavita Bala.
Sampling, Aliasing, & Mipmaps
Image Processing and Morphing Vision for Graphics CSE 590SS, Winter 2001 Richard Szeliski.
CSCE 641 Computer Graphics: Image Sampling and Reconstruction Jinxiang Chai.
Lecture 8: Geometric transformations CS4670: Computer Vision Noah Snavely.
Course 2007-Supplement Part 11 NTSC (1) NTSC: 2:1 interlaced, 525 lines per frame, 60 fields per second, and 4:3 aspect ratio horizontal sweep frequency,
Image Warping : Computational Photography Alexei Efros, CMU, Fall 2008 Some slides from Steve Seitz
Image Warping : Computational Photography Alexei Efros, CMU, Fall 2005 Some slides from Steve Seitz
CSCE 641 Computer Graphics: Image Sampling and Reconstruction Jinxiang Chai.
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 5: Image Processing 2: Warping Ravi Ramamoorthi
Lecture 6: Image transformations and alignment CS6670: Computer Vision Noah Snavely.
Lecture 9: Image alignment CS4670: Computer Vision Noah Snavely
Optical Flow Estimation
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
Image Sampling Moire patterns -
Image warping/morphing Digital Video Special Effects Fall /10/17 with slides by Y.Y. Chuang,Richard Szeliski, Steve Seitz and Alexei Efros.
Image Stitching Ali Farhadi CSEP 576 Several slides from Rick Szeliski, Steve Seitz, Derek Hoiem, and Ira Kemelmacher.
Spatio-Temporal Quincunx Sub-Sampling.. and how we get there David Lyon.
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 3 Ravi Ramamoorthi
Image Stitching Ali Farhadi CSE 455
G52IIP, School of Computer Science, University of Nottingham 1 Image Transforms Fourier Transform Basic idea.
Topic 7 - Fourier Transforms DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Image Processing 고려대학교 컴퓨터 그래픽스 연구실 cgvr.korea.ac.kr.
Image Warping (Szeliski 3.6.1) cs129: Computational Photography James Hays, Brown, Fall 2012 Slides from Alexei Efros and Steve Seitz
CSCE 441: Computer Graphics Image Warping/Morphing Jinxiang Chai.
IMAGE SAMPLING AND IMAGE QUANTIZATION 1. Introduction
Fundamentals of video.
Warping CSE 590 Computational Photography Tamara Berg.
Image warping/morphing Digital Visual Effects Yung-Yu Chuang with slides by Richard Szeliski, Steve Seitz, Tom Funkhouser and Alexei Efros.
Filtering Robert Lin April 29, Outline Why filter? Filtering for Graphics Sampling and Reconstruction Convolution The Fourier Transform Overview.
09/19/2002 (C) University of Wisconsin 2002, CS 559 Last Time Color Quantization Dithering.
Image Stitching Ali Farhadi CSE 576 Several slides from Rick Szeliski, Steve Seitz, Derek Hoiem, and Ira Kemelmacher.
Digital image processing Chapter 3. Image sampling and quantization IMAGE SAMPLING AND IMAGE QUANTIZATION 1. Introduction 2. Sampling in the two-dimensional.
Computer Vision – Enhancement(Part III) Hanyang University Jong-Il Park.
Image Processing Basics. What are images? An image is a 2-d rectilinear array of pixels.
GEOMETRIC OPERATIONS. Transformations and directions Affine (linear) transformations Translation, rotation and scaling Non linear (Warping transformations)
Digital Video Digital video is basically a sequence of digital images  Processing of digital video has much in common with digital image processing First.
2D Sampling Goal: Represent a 2D function by a finite set of points.
NTSC SYSTEM. INTRODUCTION It’s the national television system committee. Analog television – used in parts of North and South America,Myanmar,S.Korea,parts.
CS559: Computer Graphics Lecture 7: Image Warping and Panorama Li Zhang Spring 2008 Most slides borrowed from Yungyu ChuangYungyu Chuang.
CS559: Computer Graphics Lecture 7: Image Warping and Morphing Li Zhang Spring 2010 Most slides borrowed from Yungyu ChuangYungyu Chuang.
Lecture 15: Transforms and Alignment CS4670/5670: Computer Vision Kavita Bala.
Image Stitching Computer Vision CS 691E Some slides from Richard Szeliski.
Image Warping 2D Geometric Transformations
Computer Vision – 2D Signal & System Hanyang University Jong-Il Park.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Sampling and Reconstruction.
Image warping/morphing Digital Visual Effects, Spring 2006 Yung-Yu Chuang 2005/3/15 with slides by Richard Szeliski, Steve Seitz and Alexei Efros.
Advanced Computer Graphics
… Sampling … … Filtering … … Reconstruction …
Image warping/morphing
Motion and Optical Flow
(C) 2002 University of Wisconsin, CS 559
Lecture 7: Image alignment
Image warping/morphing
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.
Image Stitching Slides from Rick Szeliski, Steve Seitz, Derek Hoiem, Ira Kemelmacher, Ali Farhadi.
CSCE 441: Computer Graphics Image Warping
Interpolation and Pulse Compression
Chapter 6 Fundamentals of Digital Video
Recap from Friday Image Completion Synthesis Order Graph Cut Scene Completion.
CSCE 643 Computer Vision: Image Sampling and Filtering
CSCE 643 Computer Vision: Thinking in Frequency
Image Stitching Computer Vision CS 678
Resampling.
Image Stitching Linda Shapiro ECE/CSE 576.
Computer Graphics: Image Warping/Morphing
Image Stitching Linda Shapiro ECE P 596.
Presentation transcript:

Computer Vision – Sampling Hanyang University Jong-Il Park

Department of Computer Science and Engineering, Hanyang University Introduction Topics  Television Standards (NTSC, SECAM, PAL)  Multi-dimensional Sampling Theory  Practical Limitations in Sampling and Reconstruction  Image Re-Sampling

Department of Computer Science and Engineering, Hanyang University

Department of Computer Science and Engineering, Hanyang University Television Standards Frame  525 lines/frame (or 625 lines/frame)  frame rate : 30 frames/s (or 25 frames/s) Field  even field, odd field  lines/field (or lines/field)

Department of Computer Science and Engineering, Hanyang University NTSC NTSC  525 scan lines/frame, 30 frames/s  line frequency : 15,750 Hz ( = 30 x 525 Hz )  2:1 line interlacing  color video composite signal - (Y,I,Q)  Bandwidth : Y - 4.2MHz, I - 1.3MHz, Q - 0.5MHz  color sub-carrier : MHz ( = 30 x 525 x 455/2 Hz)  phase change of 180  : between lines, between frames  Korea, North America, Japan etc.  Never Twice Same Color!

Department of Computer Science and Engineering, Hanyang University Other Standards SECAM(Sequential Couleur a Memoire)  Idea  avoid the quadrature demodulation and corresponding chrominance shift due to phase detection errors in NTSC  France, Eastern Europe.  625 lines/frame, 25 frames/s with 2:1 line interlace.  color video composite signal - (Y,U,V)  color sub-carrier : 4.25 MHz (for U) and 4.41 MHz (for V)  Something Essentially Contradictory to American Method!

Department of Computer Science and Engineering, Hanyang University Other Standards (cont.) PAL (Phase Alternating Line)  Idea  changes by 180 degree between successive line in the same field  cross talk can be suppressed Germany, UK, South America 625 lines at 25frames/s with 2:1 line interlace. color video composite signal - (Y,U,V)  (Bandwidth) Y - 4.2MHz, U - 1.3MHz, V - 1.3MHz  Peace At Last!

Department of Computer Science and Engineering, Hanyang University Sampling Theory For One-Dimensional Signal

Department of Computer Science and Engineering, Hanyang University f s =1/  t Nyquist Sampling Rate fs > 2B f S s (f)  -2f s -fs-fs fsfs 2fs2fs 0 f -B-BB S g (f) f S gs (f)  -2f s -fs-fs fsfs 2fs2fs 3fs3fs 4fs4fs reconstruction filter B-B-B Sampling Theory (cont.) For One-Dimensional Signal (cont.)

Department of Computer Science and Engineering, Hanyang University Fourier Transform of a bandlimited function Its region of support Sampling Theory(cont.) For Two-Dimensional Signal  Band-limited Image

Department of Computer Science and Engineering, Hanyang University Sampling Theory (cont.) For Two-Dimensional Signal (cont.)  Structure  Orthogonal Structure (Rectangular Tesselation)  Field Quincunx Structure (Triangular Tesselation)

Department of Computer Science and Engineering, Hanyang University Sampling Theory(cont.) For Two-Dimensional Signal(cont.)  Structure(cont.)

Department of Computer Science and Engineering, Hanyang University

Department of Computer Science and Engineering, Hanyang University 2D sampling For Two-Dimensional Signal (cont.)  Orthogonal Structure (Rectangular Tesselation)  Sampling Function

Department of Computer Science and Engineering, Hanyang University 2D sampling - Spectrum For Two-Dimensional Signal (cont.)  Orthogonal Structure (cont.)  Spectrum of sampled signals x y yy xx u v vv uu u v vv uu (a) sampling function (b) spectrum of sampling function and signal (c) spectrum of sampled signal xx yy

Department of Computer Science and Engineering, Hanyang University For Two-Dimensional Signal(cont.)  Orthogonal Structure(cont.)  Reconstruction of the original image from its samples  Nyquist Sampling Rate(or Frequency) and Nyquist Interval 2D sampling - Reconstruction

Department of Computer Science and Engineering, Hanyang University Reconstruction Filter

Department of Computer Science and Engineering, Hanyang University Aliasing effect For Two-Dimensional Signal(cont.)  Orthogonal Structure(cont.)  Aliasing Effect

Department of Computer Science and Engineering, Hanyang University Zone Plate image (  = 1) Aliasing (  = 2) Eg. Aliasing For Two-Dimensional Signal (cont.)  Orthogonal Structure (cont.)  Aliasing Effect (cont.)

Department of Computer Science and Engineering, Hanyang University Eg. Aliasing Little aliasing due to an effective antialiasing filter Noticeable aliasing Examples

Department of Computer Science and Engineering, Hanyang University Practical limitations in sampling Practical Limitations  Real-world images are not band-limited.  aliasing errors  can be reduced by LPF before sampling  LPF attenuate higher spatial frequencies  Resolution loss  blurring  No ideal LPF at reconstruction stage.

Department of Computer Science and Engineering, Hanyang University Sampling aperture Finite aperture (finite duration pulse)

Department of Computer Science and Engineering, Hanyang University Sampling aperture - Spectrum Practical Limitations (cont.)  Sampling Aperture/ LPF operation

Department of Computer Science and Engineering, Hanyang University Reconstruction Reconstruction of a signal from its sample using interpolation

Department of Computer Science and Engineering, Hanyang University Linear interpolation linear interpolation

Department of Computer Science and Engineering, Hanyang University

Department of Computer Science and Engineering, Hanyang University Sampling Theory(cont.)

Department of Computer Science and Engineering, Hanyang University Geometrical Image Resampling Bilinear interpolation

Department of Computer Science and Engineering, Hanyang University Geometrical Image Resampling(Cont.) Bicubic interpolation

Department of Computer Science and Engineering, Hanyang University Convolution methods : integer zoom(ex. 2 : 1)  Zero Interleaving  Convolution  Peg : Pyramid : Bell :  Cubic B-spline : Resampling by Convolution

Department of Computer Science and Engineering, Hanyang University Original Zero interleaving Eg: Resampling by Convolution

Department of Computer Science and Engineering, Hanyang University Bell Cubic B-spline Eg: Resampling by Convolution(Cont.) peg Pyramid

Department of Computer Science and Engineering, Hanyang University Image Warping image filtering: change range of image g(x) = h(f(x)) image warping: change domain of image g(x) = f(h(x)) f x h f x f x h f x

Department of Computer Science and Engineering, Hanyang University Image Warping image filtering: change range of image g(x) = h(f(x)) image warping: change domain of image g(x) = f(h(x)) hh f f g g

Department of Computer Science and Engineering, Hanyang University Parametric (global) warping Examples of parametric warps: translation rotation aspect affine perspective cylindrical

Department of Computer Science and Engineering, Hanyang University 2D Coordinate Transformations translation:x’ = x + t x = (x,y) rotation:x’ = R x + t similarity:x’ = s R x + t affine:x’ = A x + t perspective:x’  H x x = (x,y,1) (x is a homogeneous coordinate)  These all form a nested group

Department of Computer Science and Engineering, Hanyang University Image Warping Given a coordinate transform x’ = h(x) and a source image f(x), how do we compute a transformed image g(x’) = f(h(x))? f(x)f(x)g(x’) xx’ h(x)h(x)

Department of Computer Science and Engineering, Hanyang University Forward Warping Send each pixel f(x) to its corresponding location x’ = h(x) in g(x’) f(x)f(x)g(x’) xx’ h(x)h(x) What if pixel lands “between” two pixels?

Department of Computer Science and Engineering, Hanyang University Forward Warping Send each pixel f(x) to its corresponding location x’ = h(x) in g(x’) f(x)f(x)g(x’) xx’ h(x)h(x) What if pixel lands “between” two pixels? Answer: add “contribution” to several pixels, normalize later (splatting)

Department of Computer Science and Engineering, Hanyang University Inverse Warping Get each pixel g(x’) from its corresponding location x = h -1 (x’) in f(x) f(x)f(x)g(x’) xx’ h -1 (x’) What if pixel comes from “between” two pixels?

Department of Computer Science and Engineering, Hanyang University Inverse Warping Get each pixel g(x’) from its corresponding location x = h -1 (x’) in f(x) What if pixel comes from “between” two pixels? Answer: resample color value from interpolated (prefiltered) source image f(x)f(x)g(x’) xx’

Department of Computer Science and Engineering, Hanyang University Interpolation Possible interpolation filters:  nearest neighbor  bilinear  bicubic (interpolating)  sinc / FIR Needed to prevent “jaggies” and “texture crawl”