Image interpolation. A reinterpretation of low-pass filtering. Image Interpolation

Similar documents
Topics in Analytic Geometry

Introduction Transformation formulae Polar graphs Standard curves Polar equations Test GRAPHS INU0114/514 (MATHS 1)

EXPONENTIAL & POWER GRAPHS

Lecture 5: Spatial Analysis Algorithms

Before We Begin. Introduction to Spatial Domain Filtering. Introduction to Digital Image Processing. Overview (1): Administrative Details (1):

Section 10.4 Hyperbolas

Lecture 4 Single View Metrology

50 AMC LECTURES Lecture 2 Analytic Geometry Distance and Lines. can be calculated by the following formula:

Digital Design. Chapter 1: Introduction. Digital Design. Copyright 2006 Frank Vahid

Stained Glass Design. Teaching Goals:

Geometric transformations

Matrices and Systems of Equations

Integration. October 25, 2016

LU Decomposition. Mechanical Engineering Majors. Authors: Autar Kaw

Integration. September 28, 2017

Very sad code. Abstraction, List, & Cons. CS61A Lecture 7. Happier Code. Goals. Constructors. Constructors 6/29/2011. Selectors.

Topic 3: 2D Transformations 9/10/2016. Today s Topics. Transformations. Lets start out simple. Points as Homogeneous 2D Point Coords

L. Yaroslavsky. Fundamentals of Digital Image Processing. Course

MATH 25 CLASS 5 NOTES, SEP

Digital Design. Chapter 6: Optimizations and Tradeoffs

Introduction to Integration

MATH 2530: WORKSHEET 7. x 2 y dz dy dx =

Summer Review Packet For Algebra 2 CP/Honors

1.1 Lines AP Calculus

Graphing Conic Sections

8.2 Areas in the Plane

The notation y = f(x) gives a way to denote specific values of a function. The value of f at a can be written as f( a ), read f of a.

A TRIANGULAR FINITE ELEMENT FOR PLANE ELASTICITY WITH IN- PLANE ROTATION Dr. Attia Mousa 1 and Eng. Salah M. Tayeh 2

Rigid Body Transformations

Lecture Overview. Knowledge-based systems in Bioinformatics, 1MB602. Procedural abstraction. The sum procedure. Integration as a procedure

MTH 146 Conics Supplement

Section 3.1: Sequences and Series

MA1008. Calculus and Linear Algebra for Engineers. Course Notes for Section B. Stephen Wills. Department of Mathematics. University College Cork

10.5 Graphing Quadratic Functions

such that the S i cover S, or equivalently S

CHAPTER III IMAGE DEWARPING (CALIBRATION) PROCEDURE

Tree Structured Symmetrical Systems of Linear Equations and their Graphical Solution

Chapter 1: Introduction

a < a+ x < a+2 x < < a+n x = b, n A i n f(x i ) x. i=1 i=1

x )Scales are the reciprocal of each other. e

Spectral Analysis of MCDF Operations in Image Processing

2D Projective transformation

USING HOUGH TRANSFORM IN LINE EXTRACTION

1. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES)

Section 9.2 Hyperbolas

Chapter Spline Method of Interpolation More Examples Electrical Engineering

The Reciprocal Function Family. Objectives To graph reciprocal functions To graph translations of reciprocal functions

Lesson 11 MA Nick Egbert

Orientation & Quaternions. CSE169: Computer Animation Instructor: Steve Rotenberg UCSD, Winter 2017

Dynamic Programming. Andreas Klappenecker. [partially based on slides by Prof. Welch] Monday, September 24, 2012

Algebra II Notes Unit Ten: Conic Sections

Improper Integrals. October 4, 2017

Unit #9 : Definite Integral Properties, Fundamental Theorem of Calculus

Spatial Transformations. Prof. George Wolberg Dept. of Computer Science City College of New York

Essential Question What are some of the characteristics of the graph of a rational function?

Math 142, Exam 1 Information.

Physics 152. Diffraction. Difrraction Gratings. Announcements. Friday, February 2, 2007

TOWARDS GRADIENT BASED AERODYNAMIC OPTIMIZATION OF WIND TURBINE BLADES USING OVERSET GRIDS

4-1 NAME DATE PERIOD. Study Guide. Parallel Lines and Planes P Q, O Q. Sample answers: A J, A F, and D E

Math 464 Fall 2012 Notes on Marginal and Conditional Densities October 18, 2012

Calculus Differentiation

Angle Properties in Polygons. Part 1 Interior Angles

called the vertex. The line through the focus perpendicular to the directrix is called the axis of the parabola.

CS380: Computer Graphics Modeling Transformations. Sung-Eui Yoon ( 윤성의 ) Course URL:

Compression Outline :Algorithms in the Real World. Lempel-Ziv Algorithms. LZ77: Sliding Window Lempel-Ziv

Tool Vendor Perspectives SysML Thus Far

International Journal of Scientific & Engineering Research, Volume 4, Issue 12, December ISSN

Date: 9.1. Conics: Parabolas

Solution of Linear Algebraic Equations using the Gauss-Jordan Method

AML710 CAD LECTURE 16 SURFACES. 1. Analytical Surfaces 2. Synthetic Surfaces

Geometry Subsystem Design

)

Math 17 - Review. Review for Chapter 12

ZZ - Advanced Math Review 2017

3 4. Answers may vary. Sample: Reteaching Vertical s are.

SUPPLEMENTARY INFORMATION

Accuracy in Warping ECT LV Surfaces to CT Angiography Coronary Vessels

SIMPLIFYING ALGEBRA PASSPORT.

Approximate computations

Chapter 2 Sensitivity Analysis: Differential Calculus of Models

AVolumePreservingMapfromCubetoOctahedron

CS-184: Computer Graphics. Today. Clipping. Hidden Surface Removal. Tuesday, October 7, Clipping to view volume Clipping arbitrary polygons

3.5.1 Single slit diffraction

CS-184: Computer Graphics. Today. Lecture #10: Clipping and Hidden Surfaces ClippingAndHidden.key - October 27, 2014.

Introduction to Computer Engineering EECS 203 dickrp/eecs203/ CMOS transmission gate (TG) TG example

EasyMP Network Projection Operation Guide

CS-C3100 Computer Graphics, Fall 2016 Ray Casting II Intersection Extravaganza

GENERATING ORTHOIMAGES FOR CLOSE-RANGE OBJECTS BY AUTOMATICALLY DETECTING BREAKLINES

Pythagoras theorem and trigonometry (2)

Today s Lecture. Basics of Logic Design: Boolean Algebra, Logic Gates. Recursive Example. Review: The C / C++ code. Recursive Example (Continued)

Viewing and Projection

Illumination and Shading

Systems I. Logic Design I. Topics Digital logic Logic gates Simple combinational logic circuits

Ray surface intersections

Graph Theory and DNA Nanostructures. Laura Beaudin, Jo Ellis-Monaghan*, Natasha Jonoska, David Miller, and Greta Pangborn

Study Guide for Exam 3

3.5.1 Single slit diffraction

B. Definition: The volume of a solid of known integrable cross-section area A(x) from x = a

5 Regular 4-Sided Composition

An Analysis of Color Demosaicing in Plenoptic Cameras

Transcription:

Imge interpoltion A reinterprettion of low-pss filtering Imge Interpoltion Introduction Wht is imge interpoltion? (D-A conversion) Wh do we need it? Interpoltion Techniques 1D zero-order, first-order, third-order 2D = two sequentil 1D (divide-nd-conquer) Directionl(Adptive) interpoltion* Interpoltion Applictions Digitl zooming (resolution enhncement) Imge inpinting (error concelment) Geometric trnsformtions (where our imgintion cn fl)

Introduction Wht is imge interpoltion? An imge f(,) tells us the intensit vlues t the integrl lttice loctions, i.e., when nd re both integers Imge interpoltion refers to the guess of intensit vlues t missing loctions, i.e., nd cn be rbitrr Note tht it is just guess (Note tht ll sensors hve finite smpling distnce) A Sentimentl Comment Hven t we just lerned from discrete smpling (A-D conversion)? Yes, imge interpoltion is bout D-A conversion Recll the gp between biologicl vision nd rtificil vision sstems Digitl: cmer + computer Anlog: retin + brin

Engineering Motivtions Wh do we need imge interpoltion? We wnt BIG imges When we see video clip on PC, we like to see it in the full screen mode We wnt GOOD imges If some block of n imge gets dmged during the trnsmission, we wnt to repir it We wnt COOL imges Mnipulte imges digitll cn render fnc rtistic effects s we often see in movies Scenrio I: Resolution Enhncement Low-Res. High-Res.

Scenrio II: Imge Inpinting Non-dmged Dmged Scenrio III: Imge Wrping

Imge Interpoltion Introduction Wht is imge interpoltion? Wh do we need it? Interpoltion Techniques 1D liner interpoltion (elementr lgebr) 2D = 2 sequentil 1D (divide-nd-conquer) Directionl (dptive) interpoltion Interpoltion Applictions Digitl zooming (resolution enhncement) Imge inpinting (error concelment) Geometric trnsformtions Upsmpling* This*imge*is*too*smll*for*this*screen:* How*cn*we*mke*it*10*:mes*s*big?* Simplest*pproch:* **repet*ech*row* **nd*column*10*:mes* ( Nerest*neighbor* ***interpol:on )* *

Imge*interpol:on* d = 1 in this emple 1* 2* 3* 4* 5* Recll*how**digitl*imge*is*formed* * It*is**discrete*pointEsmpling*of**con:nuous*func:on* If*we*could*somehow*reconstruct*the*originl*func:on,*n*new* imge*could*be*generted,*t*n*resolu:on*nd*scle** Adpted*from:*S.*Seitz* Imge*interpol:on* d = 1 in this emple 1* 2* 3* 4* 5* Recll*how**digitl*imge*is*formed* * It*is**discrete*pointEsmpling*of**con:nuous*func:on* If*we*could*somehow*reconstruct*the*originl*func:on,*n*new* imge*could*be*generted,*t*n*resolu:on*nd*scle** Adpted*from:*S.*Seitz*

Imge*interpol:on* 1* d = 1 in this emple 1* 2* 3* 4* 5* 2.5* Wht*if*we*don t*know****?* Guess*n*pproim:on:* Cn*be*done*in**principled*w:*filtering* Convert******to**con:nuous*func:on:** * Reconstruct*b*convolu:on*with**reconstruc)on*filter,*h Adpted*from:*S.*Seitz* Imge interpoltion Idel *reconstruc:on* NerestEneighbor* interpol:on* Liner*interpol:on* Gussin*reconstruc:on* Source:*B.*Curless*

Idel reconstruction Idel reconstruction

Idel reconstruction The idel reconstruction filter is squre window in the F-domin nd sinc function in the signl domin Its implementtion is unprcticl since it is prone to trunction rtifcts nd hs reltivel high computtionl compleit. Other low-pss filters cn be used insted Imge interpoltion Originl*imge:***********10* NerestEneighbor*interpol:on* Biliner*interpol:on* Bicubic*interpol:on*

1D Zero-order (Repliction) f(n) n f() 1D First-order Interpoltion (Liner) f(n) n f()

Liner Interpoltion Formul Heuristic: the closer to piel, the higher weight is ssigned Principle: line fitting to polnomil fitting (nlticl formul) f(n) f(n+) f(n+1) 1- f(n+)=(1-) f(n)+ f(n+1), 0<<1 Note: when =0.5, we simpl hve the verge of two Numericl Emples f(n)=[0,120,180,120,0] Interpolte t 1/2-piel f()=[0,60,120,150,180,150,120,60,0], =n/2 Interpolte t 1/3-piel f()=[0,20,40,60,80,100,120,130,140,150,160,170,180, ], =n/6

1D Third-order Interpoltion (Cubic)* f(n) n f() Cubic spline fitting From 1D to 2D Engineers wisdom: divide nd conquer 2D interpoltion cn be decomposed into two sequentil 1D interpoltions. The ordering does not mtter (row-column = column-row) Such seprble implementtion is not optiml but enjos low computtionl compleit If ou don t know how to solve problem, there must be relted but esier problem ou know how to solve. See if ou cn reduce the problem to the esier one. - rephrsed from G. Pol s How to Solve It

Grphicl Interprettion of Interpoltion t Hlf-pel row column f(m,n) g(m,n) Numericl Emples b zero-order c d b b b b c c d d c c d d first-order (+b)/2 b (+c)/2 (+b+c+d)/4 (b+d)/2 c (c+d)/2 d

Numericl Emples (Con t) Col n Col n+1 row m X(m,n) b 1- Y X(m,n+1) 1-b row m+1 X(m+1,n) X(m+1,n+1) Q: wht is the interpolted vlue t Y? Ans.: (1-)(1-b)X(m,n)+(1-)bX(m+1,n) +(1-b)X(m,n+1)+bX(m+1,n+1) Limittion with biliner/bicubic Edge blurring Jgged rtifcts Edge blurring Jgged rtifcts Z X X Z

Edge-Sensitive Interpoltion Step 1: interpolte the missing piels long the digonl b Since -c = b-d blck or white? c d hs equl probbilit of being blck or white Step 2: interpolte the other hlf missing piels d b Since -c > b-d =(b+d)/2=blck c Imge Interpoltion Introduction Interpoltion Techniques 1D zero-order, first-order, third-order 2D zero-order, first-order, third-order Directionl interpoltion* Interpoltion Applictions Digitl zooming (resolution enhncement) Imge inpinting (error concelment) Geometric trnsformtions (where our imgintion cn fl)

Piel Repliction low-resolution imge (100 100) high-resolution imge (400 400) Biliner Interpoltion low-resolution imge (100 100) high-resolution imge (400 400)

Bicubic Interpoltion low-resolution imge (100 100) high-resolution imge (400 400) Edge-Directed Interpoltion (LiOrchrd 2000) low-resolution imge (100 100) high-resolution imge (400 400)

Imge Demosicing (Color-Filter-Arr Interpoltion) Ber Pttern Imge Emple Ad-hoc CFA Interpoltion Advnced CFA Interpoltion

Error Concelment* dmged interpolted Imge Inpinting

Imge mosicing Geometric Trnsformtion MATLAB functions: griddt, interp2, mketform, imtrnsform

Bsic Principle (,) (, ) is geometric trnsformtion We re given piel vlues t (,) nd wnt to interpolte the unknown vlues t (, ) Usull (, ) re not integers nd therefore we cn use liner interpoltion to guess their vlues MATLAB implementtion: interp2 Rottion θ ' cosθ = ' sinθ sinθ cosθ

MATLAB Emple z=imred('cmermn.tif'); originl coordintes [,]=meshgrid(1:256,1:256); new coordintes =2; for i=1:256;for j=1:256; 1(i,j)=*(i,j); 1(i,j=(i,j)/; end;end Do the interpoltion z1=interp2(,,z,1,1,'cubic'); Rottion Emple θ=3 o

Scle = 1/ 0 0 ' ' =1/2 Affine Trnsform + = d d 22 21 12 11 ' ' squre prllelogrm

Affine Trnsform Emple + = 1 0 2.5 1.5 ' ' Sher + = d d s 1 0 1 ' ' squre prllelogrm

Sher Emple + = 1 0 1.5 0 1 ' ' Projective Trnsform 1 ' 8 7 3 2 1 + + + + = 1 ' 8 7 6 5 4 + + + + = qudrilterl squre A B C D A B C D

Projective Trnsform Emple [ 0 0; 1 0; 1 1; 0 1] [-4 2; -8-3; -3-5; 6 3] Polr Trnsform r = 2 + 2 θ = tn 1 = r cosϑ = rsinϑ 2 r = + 2

Iris Imge Unwrpping θ r Use Your Imgintion r -> sqrt(r)

Free Form Deformtion Seung-Yong Lee et l., Imge Metmorphosis Using Snkes nd Free-Form Deformtions, SIGGRAPH 1985, Pges 439-448 Appliction into Imge Metmorphosis

Summr of Imge Interpoltion A fundmentl tool in digitl processing of imges: bridging the continuous world nd the discrete world Wide pplictions from consumer electronics to biomedicl imging Remins hot topic fter the IT bubbles brek