Interepolation 9
Interepolation 9
IMAGE INTERPOLATION
Presented by
Mrs .S.Maria Seraphin Sujitha M.E,
Asst. Prof, ECE Dept,
St.Xavier’s Catholic College of
Engineering,
Chunkankadai.
UNIT IV
REGISTRATION AND IMAGE FUSION
03/06/2024
Interpolation is the process of determining the values of a function
at positions lying between its samples.
8
CONT..
03/06/2024
The ideal image interpolation algorithm should
preserve the qualitative characteristics of the output
image since interpolated images suffer from
artifacts, such as blurring, discontinuities in edges
and checkerboard effects.
9
INTERPOLATION ALGORITHMS
03/06/2024
Common interpolation algorithms can be grouped into two
categories:
1.Adaptive
2.Non-adaptive.
03/06/2024
3 main type of 2D interpolation
1. Nearest Neighbour Interpolation
2. Bilinear Interpolation
3. Cubic Splines Interpolation
11
NEAREST NEIGHBOUR INTERPOLATION
03/06/2024
The method is called Nearest Neighbour
Interpolation because it assigns to each new
location the intensity of its nearest neighbour in the
original image new pixels as the value of the nearest
pixel.
Advantages
1.The nearest neighbor resampling method is very
simple.
Disadvantages
1.Blocky result when upsampling and a coarse, grainy 12
effect when downsampling.
03/06/2024
The pictorial representation depicts that a 3x3 matrix is interpolated to 6x6
matrix. The values in the interpolated matrix are taken from the input matrix
(i.e) no new value is added.
13
CONT..
03/06/2024
Interpolation (Nearest
Input image
Neighbour)
14
BILINEAR INTERPOLATION
03/06/2024
Bilinear interpolation use the four nearest neighbour
to assign the value.
Bilinear interpolation, the assigned value is
obtained using the equation
V(x,y)=ax+by+cxy+d
15
03/06/2024
16
CONT..
03/06/2024
Bilinear interpolation considers the closest 2x2 neighborhood
of known pixel values surrounding the unknown pixel. It then
takes a weighted average of these 4 pixels to arrive at its final
interpolated value. This results in much smoother looking
images than nearest neighbor.
03/06/2024
Using this process, a series of unique cubic
polynomials are fitted between each of the data
points, with the stipulation that the curve obtained be
continuous and appear smooth.
Cubic splines can then be used to determine rates of
change and cumulative change over an interval.
Cubic spline interpolation is based on the engineer’s
tool used to draw smooth curves through a number
of points.
This spline consists of weights attached to a flat
surface at the points to be connected. A flexible strip
is then bent across each of these weights, resulting 20
03/06/2024
The weights are the coefficients on the cubic
polynomials used to interpolate the data.
These coefficients ’bend’ the line so that it passes
through each of the data points without any erratic
behavior or breaks in continuity.
21
03/06/2024
22
PROCESS
03/06/2024
The essential idea is to fit a piecewise function of
the form
23
CONT..
03/06/2024
The first and second derivatives of these n - 1 equations
are fundamental to this process,and they are
24
03/06/2024
25
03/06/2024
26
03/06/2024
27
03/06/2024
28
03/06/2024
29
03/06/2024
30
plines are made up of the equations: –
S 1 (x) = y 1 + b 1 (x - x 1 ) + c 1 (x - x 1 ) ^2 + d 1 (x - x
03/06/2024
1 ) ^3
S 2 (x) = y 2 + b 2 (x - x 2 ) + c 2 (x - x 2 ) ^2 + d 2 (x - x
2 ) ^3 – … –
S n-1 (x) = y n-1 + b n-1 (x - x n-1 ) + c n-1 (x – x n-1 ) ^2
+ dn-1(x – x n- 1 )^3
With the following properties:
S i (x i ) = y i and S i (x i+1 ) = y i+1 for i = 1,…,n - 1 –
Guarantees that the spline interpolates the data points S’
i-1 (x i ) = S’ i (x i ) for i = 2,…,n - 1 – Forces the slopes of
the parts of the spline to meet
S’’ i-1 (x i ) = S’’ i (x i ) for i = 2,…,n - 1 – Forces the
curvature to agree
31
03/06/2024
So what we are looking to solve are the coefficients
of the cubic spline, a,b,c,d. To solve for these, we
use the formula: – S i (x) = y i + b i (x – x i ) + c i (x
– x i ) ^2 + d i (x – x i ) ^3 for n – 1 equations, where
n = number of points. The following finds the
coefficients for the equation: – a i = y i
– δ i = x i+1 - x i
– Δ i = y i+1 - y i –
d i = (c i+1 – c i ) / 3δ i –
b i = Δ i / δ i - δ i / 3 (2c i + c i+1 )
32
03/06/2024
33
03/06/2024
Thank you
34