SlideShare uma empresa Scribd logo
1 de 54
Baixar para ler offline
Image Interpolation
Image ]nterpolatiorn
• Introduction
- What is image interpolation?
- Why do we need it?
• Interpolation Techniques
- 1D zero-order, first-order, third-order
- 2D zero-order, first-order, third-order
- Directional interpolation*
• Interpolation Applications
- Digital zooming (resolution enhancement)
- Image inpainting (error concealment)
- Geometric transformations
Introductiorn
• What is image interpolation?
-An image f(x,y) tells us the intensity
values at the integral lattice locations,
i.e., when x and y are both integers
-Image interpolation refers to the "guess"
of intensity values at missing locations,
i.e., x and y can be arbitrary
-Note that it is just a guess (Note that all
sensors have finite sampling distance)
Introduction (Corn't)
• Why do we need image interpolation?
-We want BIG images
• When we see a video clip on a PC, we like to
see it in the full screen mode
-We want GOOD images
• If some block of an image gets damaged
during the transmission, we want to repair it
-We want COOL images
• Manipulate images digitally can render fancy
artistic effects as we often see in movies
Scenario I: Rescolutiorn
Enhancement
-
0
-
0
-
0
0 - 0 -
0 0 0 ()
0 - 0 -
0 0 0 ()
0 - 0
0 0 0 ()
0
0
0 -
0 0
0
0
Low-Res.
High-Res.
Scenario ]I: Image
Inpainting
- 0 - - -
0 - -
- - 0 - - -
l - - - 0 - -
- - 0 -
- - - - 0 -
- Non-damaged 0 Damaged
Scenario II]: Image
Warping
• • • •
• • • •
• • • •
• • • •
• •'• .
• • • •
• • • •
• • • •
Image ]nterpolatiorn
• Introduction
- What is image interpolation?
- Why do we need it?
• Interpolation Techniques
- 1 D zero-order, first-order, third-order
- 2D zero-order, first-order, third-order
- Directional interpolation*
• Interpolation Applications
- Digital zooming (resolution enhancement)
- Image inpainting (error concealment)
- Geometric transformations
1D Zero-order (Replication)
r [ f(n)
f(x)
X
1D First-order Interpolation (Linear)
r r [ f(n)
f(x)
X
lirn1ear Interpolation Forrmula
Basic idea: the closer to a pixel, the higher weight is assigned
f(n)
-- __________f_(�-��) f(n+ 1)
---
a 1-a
If(n+a)=(l-a)xf(n)+axf(n+l), O<a<l I
Note: when a=0.5, we simply have the average of two
Numerical Examples
f(n)=[O,120,180,120,0]
1 Interpolate at 1/2-pixel
f(x)=[0,60,120,150,180,150,120,60,0], x=n/2
1 Interpolate at 1/3-pixel
f(x)= [0,20,40,60,80,100,120,130,140,150,160,170,180,...], x= n/6
1D Third-order Interpolation (Cubic)
j(n)
r
j Cubic spline fitting I
f(x)
From 1D to 2D
•Just like separable 2D transform (filtering) that can be
implemented by two sequential 1D transforms (filters)
along row and column direction respectively, 2D
interpolation can be decomposed into two sequential
1D interpolations.
•The ordering does not matter (row-column= column-row)
•Such separable implementation is not optimal but enjoys low
computational complexity
Graphical Interpretation
of In1terpolatior1 at Half-pel
• • • •
• • • •
• • • •
• • • •
f(m,n)
•o •o •o • •••••••
0 000 00 0
• 0 • 0 e 0 • •••••••
row column0 000 00 0
• 0. 0 e O e
• 0. 0 e O e
•••••••
0 000 00 0
•••••••
g(m,n)
Numerical Examples
a
a
C
C
zero-ord
1
/
a b b
a b b
C d d
C d d
a b
C d
a
(a+c)/2
C
first-order
(a+b)/2
(a+b+c+d)/4
(c+d)/2
b
(b+d)/2
d
Numer·ical Examples (Con't)
row m
Coln
'
'
'
'
Col n+l
--------X(-hir�}-··
r
····-·····-------------X(-mr�+ 1)
' '
' '
' .
:
b
:
' '
! a Y 1-a l
'
'
1-b
row m+1------X(f11+±;-A-)· ------·-·······-·------X(-f-11+1,n+1)
' '
' '
' .
' .
' '
' '
Q: what is the interpolated value· at Y?
Ans.: ( 1-a)(l-b)X(m,n)+( 1-a)bX(m+ 1,n)
+a(l-b)X(m,n+1)+abX(m+ 1,n+ 1)
Bicubic Interpolation*
Final fmege
2 2
Foint to estimate (i',j')
F(i',j') • I: L F(i + m,j + n) R(m - dx) R(dy - n)
m•-1 n•-1
1
[
3 3 3 3]
R(x) =
6 P(x + 2) - 4 P(x + 1) + 6 P(x) - 4 P(x - 1)
I
I
.
.
.
.
.
.
. :/' .....
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. .
.
.
.
.
.
. '
.
' . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
Originel lmege
x>O
xiO
Limitation with
bilinear/bicubic
• Edge blurring
• Jagged artifacts
Edge blurring
'''''
< z
'
__ ___/
X
Jagged artifacts
DirectionaI Interpolat·ion�
Step 1: interpolate the missing pixels along the diagonal
■■■■ a b
■ ■ Since la-cl=lb-dl
X
□ □ x has equal probability
□□□□ of being black or white
C d
black or white?
Step 2: interpolate the other half missing pixels
a
■
d
□ □
C
Since la-cl>lb-dl
x=(b+d)/2=black
Image ]nterpolatiorn
• Introduction
- What is image interpolation?
- Why do we need it?
• Interpolation Techniques
- 1D zero-order, first-order, third-order
- 2D zero-order, first-order, third-order
- DirectionaI interpolation*
• Interpolation Applications
- Digital zooming (resolution enhancement)
- Image inpainting (error concealment)
- Geometric transformations
Pixel Replication
low-resolution
image (100 X 100)
high-resolution
image (400 X400)
Bilinear Interpolation
low-resolution
image (100 X 100)
.--------..,....,
high-resolution
image (400 X 400)
Bicubic Interpolation
low-resolution
image (100 X 100)
l1igh-resolutio11
image (400 X 400)
Edge-Directed Interpo�atioin
(Li&Orclhard'2000)
low-resolution
image (100 X 100)
high-resolution
image (400 X 400)
Image Demosaicing
(Color-FiIter-Array InterpoIatiom)
----
---- ----
---- ----
----
q ----
----
Bayer Pattern
---- ----
---- ----
---- ----
---- ----
Image Example
Ad-hoc CFA Interpolation Advanced CFA Interpolation
Error Corncealrnent
damaged interpolated
Image Irnpainting
Geometric Transformation
Widely used in co mputer graphics to generate special effects
MATLAB functions: griddata, interp2, maketform, imtransform
Basic Principle
• (x,y) ➔ (x',y') is a geometric
transformation
•We are given pixel values at (x,y)
and want to interpolate the unknown
values at (x',y')
• Usually (x',y') are not integers and
therefore we can use linear
inter olation to uess their values
MATLAB implementation: z'=interp2(x,y,z,x',y',method);
Rotation
x'
y'
cos0 sin0 x
-sin0 cos0 y
x'
X
-
Rotation Example
Scale
a=l/2
Affine Trarnsform
square parallelogram
Affine Transform Example
square
Shear
parallelogram
Shear Example
Projective Transrorr-m
A B
D C
square
B'
A'
C'
D'
quadrilateral
, alX + a2 y + G3
x =------
a7 x +a8 y+l
Projective Transform Example
o-��-�--
o 1
02
0 .
3
U.4
0.5
0.6
0.7
0.8
0 9
0.2 0 4 0.6 0.8
-$ � -4 -2 0 2 4 6
[ 0 O; 1 O; 1 1; O 1] - [-4 2; -8 -3; -3 -5; 6 3]
Polar Transform
r
0
120•
135"
-Jx
2
+ y2
165'
180'
tan-1 �
195'·
X 210• •
225'
240'
105'
265'
so· 75•
60'
45•
__1s·
e=o·
345'
no·
315'
300'
270'
285'
Iris Image Unwrapping
r
0
Use Your Imagination
r-> sqrt(r)
/
i--- --.......
"
/ /
V -----, "'
I I ,V 
I I I /
/ '
 .. _/ )
   ",.__ / / I J
 I'--- _/ ,j I
' �
"........
I'--- -----/
/
"-...i---... ·----/
http://astronomy.swin.edu.au/~pbourke/projection/imagewarp/
Free Form Deformaticorn
Seung-Yong Lee et al., "Image Metamorphosis Using Snakes and
Free-Form Deformations,"S/GGRAPH'1985, Pages 439-448
Application irnto Image
Metamorohosis�
JJ
Different Image interpolation algorithms used
are:
• Nearest Neighbour Interpolation
• Bilinear Interpolation
• Bicubic Interpolation
Nearest Neighbour Interpolation
• Sample method of multivariative interpolation in 1 or more dimensions.
• Simply selects the value of nearest point and neglects other neighbouring
points. Thus, it yields a piecewise-constant interpolant.
• It is one of the easiest method to implement but the quality is worst.
Algorithm
• do scaleheight= height of new image /
height of original image
• do scalewidth= width of new image /
width of original image
• for i=0 to height of the new image
for j=0 to width of the new image
for k=0 to original image colour channels
• do copy channel by channel data of
nearest pixel of original image
Bilinear Interpolation
• Extension of linear interpolation for interpolating functions of two variables
on a regular grid.
• Key idea is to perform linear interpolation first in one direction, and then
again in other direction.
• It gives better result than nearest neighbour but is slower than latter.
• As the name suggests, it is linear interpolation in two directions, first in
horizontal direction then by a vertical direction or vice-versa. Bilinear
interpolation uses weighted average of the 4 neighborhood pixels to calculate
its final interpolated pixel.
Image Interpolator
Bicubic Interpolation
• It is an extension of cubic interpolation for interpolating data points on a
two dimensional grid.
• It can be accomplished using either Lagrange Polynomials or Cubic
Convolution algorithm.
• It is chosen over Nearest Neighbour and Bilinear interpolation as its
interpolated surface is smoother than both of them and has fewer
interpolation artifacts.
Numerical
THANK YOU !!!

Mais conteúdo relacionado

Mais procurados

Chapter 4 Image Processing: Image Transformation
Chapter 4 Image Processing: Image TransformationChapter 4 Image Processing: Image Transformation
Chapter 4 Image Processing: Image TransformationVarun Ojha
 
Lecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image ProcessingLecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image ProcessingVARUN KUMAR
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processingAhmed Daoud
 
Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency DomainAmnaakhaan
 
Erosion and dilation
Erosion and dilationErosion and dilation
Erosion and dilationAkhil .B
 
Smoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainSmoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainMadhu Bala
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processingAbinaya B
 
Image segmentation in Digital Image Processing
Image segmentation in Digital Image ProcessingImage segmentation in Digital Image Processing
Image segmentation in Digital Image ProcessingDHIVYADEVAKI
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filteringGautam Saxena
 
Image Interpolation Techniques with Optical and Digital Zoom Concepts
Image Interpolation Techniques with Optical and Digital Zoom ConceptsImage Interpolation Techniques with Optical and Digital Zoom Concepts
Image Interpolation Techniques with Optical and Digital Zoom Conceptsmmjalbiaty
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processingAhmed Daoud
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filtersA B Shinde
 
Image restoration and enhancement #2
Image restoration and enhancement #2 Image restoration and enhancement #2
Image restoration and enhancement #2 Gera Paulos
 

Mais procurados (20)

Hit and-miss transform
Hit and-miss transformHit and-miss transform
Hit and-miss transform
 
Chapter 4 Image Processing: Image Transformation
Chapter 4 Image Processing: Image TransformationChapter 4 Image Processing: Image Transformation
Chapter 4 Image Processing: Image Transformation
 
Lecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image ProcessingLecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image Processing
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Morphological image processing
Morphological image processingMorphological image processing
Morphological image processing
 
Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency Domain
 
Unit ii
Unit iiUnit ii
Unit ii
 
Erosion and dilation
Erosion and dilationErosion and dilation
Erosion and dilation
 
Smoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainSmoothing Filters in Spatial Domain
Smoothing Filters in Spatial Domain
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processing
 
Image segmentation in Digital Image Processing
Image segmentation in Digital Image ProcessingImage segmentation in Digital Image Processing
Image segmentation in Digital Image Processing
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filtering
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
 
Image transforms
Image transformsImage transforms
Image transforms
 
Image Interpolation Techniques with Optical and Digital Zoom Concepts
Image Interpolation Techniques with Optical and Digital Zoom ConceptsImage Interpolation Techniques with Optical and Digital Zoom Concepts
Image Interpolation Techniques with Optical and Digital Zoom Concepts
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
 
Image restoration and enhancement #2
Image restoration and enhancement #2 Image restoration and enhancement #2
Image restoration and enhancement #2
 

Semelhante a Lecture-11.pdf

Image enhancement
Image enhancementImage enhancement
Image enhancementKuppusamy P
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfnagwaAboElenein
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainDEEPASHRI HK
 
Final image processing
Final image processingFinal image processing
Final image processingSharanjit Kaur
 
Image enhancement ppt nal2
Image enhancement ppt nal2Image enhancement ppt nal2
Image enhancement ppt nal2Surabhi Ks
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit NotesAAKANKSHA JAIN
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slidesBHAGYAPRASADBUGGE
 
Image enhancement in the spatial domain1
Image enhancement in the spatial domain1Image enhancement in the spatial domain1
Image enhancement in the spatial domain1shabanam tamboli
 
Image Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.pptImage Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.pptShabanamTamboli1
 
Introduction to Image Processing
Introduction to Image ProcessingIntroduction to Image Processing
Introduction to Image ProcessingIsrael Gbati
 
Image_processing_unit2_SPPU_Syllabus.pptx
Image_processing_unit2_SPPU_Syllabus.pptxImage_processing_unit2_SPPU_Syllabus.pptx
Image_processing_unit2_SPPU_Syllabus.pptxMayuri Narkhede
 
Image processing 1-lectures
Image processing  1-lecturesImage processing  1-lectures
Image processing 1-lecturesTaymoor Nazmy
 
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSINGLAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSINGPriyanka Rathore
 
Digital Image Procesing
Digital Image ProcesingDigital Image Procesing
Digital Image Procesingvepiga5005
 
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...Hemantha Kulathilake
 

Semelhante a Lecture-11.pdf (20)

Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdf
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Final image processing
Final image processingFinal image processing
Final image processing
 
Image enhancement ppt nal2
Image enhancement ppt nal2Image enhancement ppt nal2
Image enhancement ppt nal2
 
Chap5 imange enhancemet
Chap5 imange enhancemetChap5 imange enhancemet
Chap5 imange enhancemet
 
Digital Image Fundamentals - II
Digital Image Fundamentals - IIDigital Image Fundamentals - II
Digital Image Fundamentals - II
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 
DIP Lecture 7-9.pdf
DIP Lecture 7-9.pdfDIP Lecture 7-9.pdf
DIP Lecture 7-9.pdf
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides
 
Image enhancement in the spatial domain1
Image enhancement in the spatial domain1Image enhancement in the spatial domain1
Image enhancement in the spatial domain1
 
Image Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.pptImage Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.ppt
 
Introduction to Image Processing
Introduction to Image ProcessingIntroduction to Image Processing
Introduction to Image Processing
 
Module 2
Module 2Module 2
Module 2
 
Image_processing_unit2_SPPU_Syllabus.pptx
Image_processing_unit2_SPPU_Syllabus.pptxImage_processing_unit2_SPPU_Syllabus.pptx
Image_processing_unit2_SPPU_Syllabus.pptx
 
Image processing 1-lectures
Image processing  1-lecturesImage processing  1-lectures
Image processing 1-lectures
 
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSINGLAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
 
Digital Image Procesing
Digital Image ProcesingDigital Image Procesing
Digital Image Procesing
 
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
 

Mais de NiharikaThakur32 (12)

Introduction to Heart Anomaly 2.pptx
Introduction to Heart Anomaly 2.pptxIntroduction to Heart Anomaly 2.pptx
Introduction to Heart Anomaly 2.pptx
 
Introduction to Heart Anomaly 1.pptx
Introduction to Heart Anomaly 1.pptxIntroduction to Heart Anomaly 1.pptx
Introduction to Heart Anomaly 1.pptx
 
CNN Basics.pdf
CNN Basics.pdfCNN Basics.pdf
CNN Basics.pdf
 
GAN.pdf
GAN.pdfGAN.pdf
GAN.pdf
 
RNN.pdf
RNN.pdfRNN.pdf
RNN.pdf
 
UNIT-4.pdf
UNIT-4.pdfUNIT-4.pdf
UNIT-4.pdf
 
UNIT-4.pdf
UNIT-4.pdfUNIT-4.pdf
UNIT-4.pdf
 
CNN_INTRO.pptx
CNN_INTRO.pptxCNN_INTRO.pptx
CNN_INTRO.pptx
 
CNN.pptx
CNN.pptxCNN.pptx
CNN.pptx
 
CNN.pptx
CNN.pptxCNN.pptx
CNN.pptx
 
Lecture-1.pptx
Lecture-1.pptxLecture-1.pptx
Lecture-1.pptx
 
UNIT-4.pptx
UNIT-4.pptxUNIT-4.pptx
UNIT-4.pptx
 

Último

(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 

Último (20)

(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 

Lecture-11.pdf

  • 2. Image ]nterpolatiorn • Introduction - What is image interpolation? - Why do we need it? • Interpolation Techniques - 1D zero-order, first-order, third-order - 2D zero-order, first-order, third-order - Directional interpolation* • Interpolation Applications - Digital zooming (resolution enhancement) - Image inpainting (error concealment) - Geometric transformations
  • 3. Introductiorn • What is image interpolation? -An image f(x,y) tells us the intensity values at the integral lattice locations, i.e., when x and y are both integers -Image interpolation refers to the "guess" of intensity values at missing locations, i.e., x and y can be arbitrary -Note that it is just a guess (Note that all sensors have finite sampling distance)
  • 4. Introduction (Corn't) • Why do we need image interpolation? -We want BIG images • When we see a video clip on a PC, we like to see it in the full screen mode -We want GOOD images • If some block of an image gets damaged during the transmission, we want to repair it -We want COOL images • Manipulate images digitally can render fancy artistic effects as we often see in movies
  • 5. Scenario I: Rescolutiorn Enhancement - 0 - 0 - 0 0 - 0 - 0 0 0 () 0 - 0 - 0 0 0 () 0 - 0 0 0 0 () 0 0 0 - 0 0 0 0 Low-Res. High-Res.
  • 6. Scenario ]I: Image Inpainting - 0 - - - 0 - - - - 0 - - - l - - - 0 - - - - 0 - - - - - 0 - - Non-damaged 0 Damaged
  • 7. Scenario II]: Image Warping • • • • • • • • • • • • • • • • • •'• . • • • • • • • • • • • •
  • 8. Image ]nterpolatiorn • Introduction - What is image interpolation? - Why do we need it? • Interpolation Techniques - 1 D zero-order, first-order, third-order - 2D zero-order, first-order, third-order - Directional interpolation* • Interpolation Applications - Digital zooming (resolution enhancement) - Image inpainting (error concealment) - Geometric transformations
  • 10. 1D First-order Interpolation (Linear) r r [ f(n) f(x) X
  • 11. lirn1ear Interpolation Forrmula Basic idea: the closer to a pixel, the higher weight is assigned f(n) -- __________f_(�-��) f(n+ 1) --- a 1-a If(n+a)=(l-a)xf(n)+axf(n+l), O<a<l I Note: when a=0.5, we simply have the average of two
  • 12. Numerical Examples f(n)=[O,120,180,120,0] 1 Interpolate at 1/2-pixel f(x)=[0,60,120,150,180,150,120,60,0], x=n/2 1 Interpolate at 1/3-pixel f(x)= [0,20,40,60,80,100,120,130,140,150,160,170,180,...], x= n/6
  • 13. 1D Third-order Interpolation (Cubic) j(n) r j Cubic spline fitting I f(x)
  • 14. From 1D to 2D •Just like separable 2D transform (filtering) that can be implemented by two sequential 1D transforms (filters) along row and column direction respectively, 2D interpolation can be decomposed into two sequential 1D interpolations. •The ordering does not matter (row-column= column-row) •Such separable implementation is not optimal but enjoys low computational complexity
  • 15. Graphical Interpretation of In1terpolatior1 at Half-pel • • • • • • • • • • • • • • • • f(m,n) •o •o •o • ••••••• 0 000 00 0 • 0 • 0 e 0 • ••••••• row column0 000 00 0 • 0. 0 e O e • 0. 0 e O e ••••••• 0 000 00 0 ••••••• g(m,n)
  • 16. Numerical Examples a a C C zero-ord 1 / a b b a b b C d d C d d a b C d a (a+c)/2 C first-order (a+b)/2 (a+b+c+d)/4 (c+d)/2 b (b+d)/2 d
  • 17. Numer·ical Examples (Con't) row m Coln ' ' ' ' Col n+l --------X(-hir�}-·· r ····-·····-------------X(-mr�+ 1) ' ' ' ' ' . : b : ' ' ! a Y 1-a l ' ' 1-b row m+1------X(f11+±;-A-)· ------·-·······-·------X(-f-11+1,n+1) ' ' ' ' ' . ' . ' ' ' ' Q: what is the interpolated value· at Y? Ans.: ( 1-a)(l-b)X(m,n)+( 1-a)bX(m+ 1,n) +a(l-b)X(m,n+1)+abX(m+ 1,n+ 1)
  • 18. Bicubic Interpolation* Final fmege 2 2 Foint to estimate (i',j') F(i',j') • I: L F(i + m,j + n) R(m - dx) R(dy - n) m•-1 n•-1 1 [ 3 3 3 3] R(x) = 6 P(x + 2) - 4 P(x + 1) + 6 P(x) - 4 P(x - 1) I I . . . . . . . :/' ..... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ' . ' . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Originel lmege x>O xiO
  • 19. Limitation with bilinear/bicubic • Edge blurring • Jagged artifacts Edge blurring ''''' < z ' __ ___/ X Jagged artifacts
  • 20. DirectionaI Interpolat·ion� Step 1: interpolate the missing pixels along the diagonal ■■■■ a b ■ ■ Since la-cl=lb-dl X □ □ x has equal probability □□□□ of being black or white C d black or white? Step 2: interpolate the other half missing pixels a ■ d □ □ C Since la-cl>lb-dl x=(b+d)/2=black
  • 21. Image ]nterpolatiorn • Introduction - What is image interpolation? - Why do we need it? • Interpolation Techniques - 1D zero-order, first-order, third-order - 2D zero-order, first-order, third-order - DirectionaI interpolation* • Interpolation Applications - Digital zooming (resolution enhancement) - Image inpainting (error concealment) - Geometric transformations
  • 22. Pixel Replication low-resolution image (100 X 100) high-resolution image (400 X400)
  • 23. Bilinear Interpolation low-resolution image (100 X 100) .--------..,...., high-resolution image (400 X 400)
  • 24. Bicubic Interpolation low-resolution image (100 X 100) l1igh-resolutio11 image (400 X 400)
  • 26. Image Demosaicing (Color-FiIter-Array InterpoIatiom) ---- ---- ---- ---- ---- ---- q ---- ---- Bayer Pattern ---- ---- ---- ---- ---- ---- ---- ----
  • 27. Image Example Ad-hoc CFA Interpolation Advanced CFA Interpolation
  • 30. Geometric Transformation Widely used in co mputer graphics to generate special effects MATLAB functions: griddata, interp2, maketform, imtransform
  • 31. Basic Principle • (x,y) ➔ (x',y') is a geometric transformation •We are given pixel values at (x,y) and want to interpolate the unknown values at (x',y') • Usually (x',y') are not integers and therefore we can use linear inter olation to uess their values MATLAB implementation: z'=interp2(x,y,z,x',y',method);
  • 39. Projective Transrorr-m A B D C square B' A' C' D' quadrilateral , alX + a2 y + G3 x =------ a7 x +a8 y+l
  • 40. Projective Transform Example o-��-�-- o 1 02 0 . 3 U.4 0.5 0.6 0.7 0.8 0 9 0.2 0 4 0.6 0.8 -$ � -4 -2 0 2 4 6 [ 0 O; 1 O; 1 1; O 1] - [-4 2; -8 -3; -3 -5; 6 3]
  • 41. Polar Transform r 0 120• 135" -Jx 2 + y2 165' 180' tan-1 � 195'· X 210• • 225' 240' 105' 265' so· 75• 60' 45• __1s· e=o· 345' no· 315' 300' 270' 285'
  • 43. Use Your Imagination r-> sqrt(r) / i--- --....... " / / V -----, "' I I ,V I I I / / ' .. _/ ) ",.__ / / I J I'--- _/ ,j I ' � "........ I'--- -----/ / "-...i---... ·----/ http://astronomy.swin.edu.au/~pbourke/projection/imagewarp/
  • 44. Free Form Deformaticorn Seung-Yong Lee et al., "Image Metamorphosis Using Snakes and Free-Form Deformations,"S/GGRAPH'1985, Pages 439-448
  • 46. Different Image interpolation algorithms used are: • Nearest Neighbour Interpolation • Bilinear Interpolation • Bicubic Interpolation
  • 47. Nearest Neighbour Interpolation • Sample method of multivariative interpolation in 1 or more dimensions. • Simply selects the value of nearest point and neglects other neighbouring points. Thus, it yields a piecewise-constant interpolant. • It is one of the easiest method to implement but the quality is worst. Algorithm • do scaleheight= height of new image / height of original image • do scalewidth= width of new image / width of original image • for i=0 to height of the new image for j=0 to width of the new image for k=0 to original image colour channels • do copy channel by channel data of nearest pixel of original image
  • 48. Bilinear Interpolation • Extension of linear interpolation for interpolating functions of two variables on a regular grid. • Key idea is to perform linear interpolation first in one direction, and then again in other direction. • It gives better result than nearest neighbour but is slower than latter. • As the name suggests, it is linear interpolation in two directions, first in horizontal direction then by a vertical direction or vice-versa. Bilinear interpolation uses weighted average of the 4 neighborhood pixels to calculate its final interpolated pixel.
  • 49. Image Interpolator Bicubic Interpolation • It is an extension of cubic interpolation for interpolating data points on a two dimensional grid. • It can be accomplished using either Lagrange Polynomials or Cubic Convolution algorithm. • It is chosen over Nearest Neighbour and Bilinear interpolation as its interpolated surface is smoother than both of them and has fewer interpolation artifacts.
  • 51.
  • 52.
  • 53.