SlideShare a Scribd company logo
1 of 24
Download to read offline
KALMAN FILTER
  Applications in Image processing
Introduction
• The kalman filter is a recursive state space model based
  estimation algorithm.

• This filter is named after Rudolph E. Kalman, who in
  1960 published his famous paper describing a recursive
  solution to the discrete data linear filtering problem
  (Kalman 1960).

• This algorithm was basically developed for single
  dimensional and real valued signals which are
  associated with the linear systems assuming the system
  is corrupted with linear additive white Gaussian noise.
• The Kalman filter addresses the general problem of
  trying to estimate the state x ∈ ℜn of a discrete-time
  controlled process that is governed by the linear
  difference equation

               xk = Axk – 1 + Buk – 1 + wk – 1

• with a measurement z that is

                       zk = Hxk + vk

• The random variables wk and vk represent the process
  noise and measurement noise respectively.
• The nxn matrix A in the previous difference
  equation relates the state at the previous time
  step k-1 to the state at the current step k , in the
  absence of either a driving function or process
  noise.

• The nxl matrix B relates the optional control input
  u to the state x.

• The mxn matrix H in the measurement equation
  relates the state to the measurement zk.
The Computational Origins of the Filter :

• We define𝑥 − ∈ℜn to be our a priori state
               𝑘
  estimate at step k given knowledge of the
  process prior to step k , and 𝑥 𝑘 ∈ℜn to be our a
  posteriori state estimate at step k given
  measurement zk.
• We can then define a priori and a posteriori
  estimate errors as
                   −           −
                  𝑒𝑘 ≡ 𝑥𝑘 − 𝑥𝑘 &
                  𝑒𝑘 ≡ 𝑥𝑘 − 𝑥𝑘
• The a priori estimate error covariance is then
                   −       − −𝑇
                  𝑃𝑘 = 𝐸 𝑒 𝑘 𝑒 𝑘
                        &
• the a posteriori estimate error covariance is
                                𝑇
                   𝑃𝑘 = 𝐸 𝑒 𝑘 𝑒 𝑘

• The posteriori state estimate 𝑥 𝑘 is written as a
  linear combination of an a priori estimate 𝑥 −  𝑘
  and a weighted difference between an actual
  measurement zk & a measurement prediction
  H 𝑥 −.
      𝑘
.
            𝑥 𝑘 = 𝑥 − + 𝐾 𝑧 𝑘 − 𝐻𝑥 −
                    𝑘              𝑘

• The difference   𝑧 𝑘 − 𝐻𝑥 −
                            𝑘     is called the
  measurement innovation, or the residual.

• The nxm matrix K is chosen to be the gain or
  blending factor that minimizes the a posteriori
  error covariance.

• Substituting 𝑥 𝑘 in 𝑒 𝑘 and 𝑒 𝑘 in Pk , and
  performing minimization, we get
                𝑃− 𝐻 𝑇
                 𝑘
     𝐾𝑘 =                = 𝑃− 𝐻 𝑇 𝐻𝑃− 𝐻 𝑇 + 𝑅 −1
                            𝑘       𝑘
             𝐻𝑃− 𝐻 𝑇 + 𝑅
               𝑘
Kalman filter algorithm
• The Kalman filter estimates a process by using a form of
  feedback control: the filter estimates the process state at
  some time and then obtains feedback in the form of (noisy)
  measurements.

• As such, the equations for the Kalman filter fall into two
  groups: time update equations and measurement update
  equations.

• The time update equations are responsible for projecting
  forward (in time) the current state and error covariance
  estimates to obtain the a priori estimates for the next time
  step.
• The measurement update equations are responsible
  for the feedback—i.e. for incorporating a new
  measurement into the a priori estimate to obtain an
  improved a posteriori estimate.

• The time update equations can also be thought of as
  predictor equations, while the measurement update
  equations can be thought of as corrector equations.

• The final estimation algorithm resembles that of a
  predictor-corrector algorithm.
Discrete Kalman filter time update equations:

              𝑥 − = 𝐴𝑥 𝑘−1 + 𝐵𝑢 𝑘−1
                𝑘
                                              Prediction
               𝑃 − = 𝐴𝑃 𝑘−1 𝐴 𝑇 + 𝑄
                 𝑘

Discrete Kalman filter measurement update
equations:
           𝐾 𝑘 = 𝑃 − 𝐻 𝑇 𝐻𝑃− 𝐻 𝑇 + 𝑅
                   𝑘       𝑘
                                         −1


            𝑥 𝑘 = 𝑥 − + 𝐾 𝑘 𝑧 𝑘 − 𝐻𝑥 −
                    𝑘                𝑘           Correction

               𝑃 𝑘 = 𝐼 − 𝐾 𝑘 𝐻 𝑃−
                                𝑘
A complete picture of the operation of the
              Kalman filter
Implementation
• The image process is modelled as an auto
  regressive(AR) process driven by a white
  gaussian noise (Wn) with variance Q described
  by



• Mathematically it can be written as
   𝑦 𝑖, 𝑗
            = 𝑎1 𝑦 𝑖, 𝑗 − 1 + 𝑎2 𝑦 𝑖 − 1, 𝑗
            + 𝑎3 𝑦 𝑖 − 1, 𝑗 − 1 + 𝑎4 𝑦(𝑖 − 1, 𝑗 + 1)
• The state space model for this system can be
  written as
                 𝑋 𝑛+1 = 𝐴𝑋 𝑛 + 𝑉𝑛
                  𝑍 𝑛 = 𝐻𝑋 𝑛 + 𝑊𝑛

     where

   𝑎1      𝑎2   𝑎3   𝑎4           𝑦(𝑖, 𝑗 − 1)
   1       0    0    0            𝑦(𝑖 − 1, 𝑗)
𝐴=                      & 𝑋𝑛 =
   0       1    0    0         𝑦(𝑖 − 1, 𝑗 − 1)
   0       0    1    0          𝑦(𝑖 − 1, 𝑗 + 1
Results
Original Images   Measured Images   Corrected Images
Extended Kalman Filter
• An extended Kalman filter is used if the
  process to be estimated and (or) the
  measurement relationship to the process is
  non-linear.
• Here
           𝑥 𝑘 = 𝑓 𝑥 𝑘−1 , 𝑢 𝑘−1 , 𝑤 𝑘−1

• with measurement z that is

                𝑧 𝑘 = ℎ 𝑥 𝑘, 𝑣 𝑘
• Similar to the Kalman filter, the time and
  measurement equations for EKF can be
  written as below:
• EKF time update equations:



• EKF measurement update eqns:
A complete picture of the operation
   of the extended Kalman filter
Results

Original Image   Measured Image   Corrected Image
COMPLEX KALMAN FILTERING
• In complex Kalman filtering, image model is
  represented in complex form as real and imaginary
  values represented as real and imaginary part of the
  complex number.
                   Y= Real+(imag)i

• where, Y is complex image model.

• Complex valued Kalman filters have been used
  extensively in a variety of applications, including
  frequency estimation of time-varying signals, training
  of neural networks etc.
Properties of Kalman filter
• Kalman filter is a time-varying filter as Kalman gain
  changes with n.

• The filter is very powerful in several aspects: it
  supports estimations of past, present, and even
  future states, and it can do so even when the precise
  nature of the modeled system is unknown.

• In the Kalman filter, prediction acts like the prior
  information about the state at time n before we
  observe the data at time n.
Refernces
• Natasha Devroye. Estimation: parts of Chapters 12-13,
  Wiener and Kalman Filtering.

• Greg Welch and Gary Bishop. An Introduction to the
  Kalman Filter, Monday, July 24, 2006.

• R. E. KALMAN. A New Approach to Linear Filtering and
  Prediction Problems.

• http://www.cs.unc.edu/~welch/kalman/
Kalman Filter Applications in Image Processing

More Related Content

What's hot

A KALMAN FILTERING TUTORIAL FOR UNDERGRADUATE STUDENTS
A KALMAN FILTERING TUTORIAL FOR UNDERGRADUATE STUDENTSA KALMAN FILTERING TUTORIAL FOR UNDERGRADUATE STUDENTS
A KALMAN FILTERING TUTORIAL FOR UNDERGRADUATE STUDENTSIJCSES Journal
 
Lecture Notes on Adaptive Signal Processing-1.pdf
Lecture Notes on Adaptive Signal Processing-1.pdfLecture Notes on Adaptive Signal Processing-1.pdf
Lecture Notes on Adaptive Signal Processing-1.pdfVishalPusadkar1
 
Adaptive filter
Adaptive filterAdaptive filter
Adaptive filterA. Shamel
 
Kalman Filter and its Application
Kalman Filter and its ApplicationKalman Filter and its Application
Kalman Filter and its ApplicationSaptarshi Mazumdar
 
Application of adaptive linear equalizer
Application of adaptive linear equalizerApplication of adaptive linear equalizer
Application of adaptive linear equalizerSayahnarahul
 
Kalman filtering and it's applications
Kalman filtering and it's applicationsKalman filtering and it's applications
Kalman filtering and it's applicationsMADHAVASAIYENDUVA
 
2.5 capacity calculations of fdma, tdma and cdma
2.5   capacity calculations of fdma, tdma and cdma2.5   capacity calculations of fdma, tdma and cdma
2.5 capacity calculations of fdma, tdma and cdmaJAIGANESH SEKAR
 
Design of IIR filters
Design of IIR filtersDesign of IIR filters
Design of IIR filtersop205
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Kalyan Acharjya
 

What's hot (20)

Kalman_filtering
Kalman_filteringKalman_filtering
Kalman_filtering
 
A KALMAN FILTERING TUTORIAL FOR UNDERGRADUATE STUDENTS
A KALMAN FILTERING TUTORIAL FOR UNDERGRADUATE STUDENTSA KALMAN FILTERING TUTORIAL FOR UNDERGRADUATE STUDENTS
A KALMAN FILTERING TUTORIAL FOR UNDERGRADUATE STUDENTS
 
Kalman filters
Kalman filtersKalman filters
Kalman filters
 
Lecture Notes on Adaptive Signal Processing-1.pdf
Lecture Notes on Adaptive Signal Processing-1.pdfLecture Notes on Adaptive Signal Processing-1.pdf
Lecture Notes on Adaptive Signal Processing-1.pdf
 
Adaptive filter
Adaptive filterAdaptive filter
Adaptive filter
 
Kalman Filter and its Application
Kalman Filter and its ApplicationKalman Filter and its Application
Kalman Filter and its Application
 
Kalman filter
Kalman filterKalman filter
Kalman filter
 
Application of adaptive linear equalizer
Application of adaptive linear equalizerApplication of adaptive linear equalizer
Application of adaptive linear equalizer
 
Kalman Filter Basic
Kalman Filter BasicKalman Filter Basic
Kalman Filter Basic
 
Kalman Filter | Statistics
Kalman Filter | StatisticsKalman Filter | Statistics
Kalman Filter | Statistics
 
Kalman Filter Presentation
Kalman Filter PresentationKalman Filter Presentation
Kalman Filter Presentation
 
Kalman filtering and it's applications
Kalman filtering and it's applicationsKalman filtering and it's applications
Kalman filtering and it's applications
 
Kalman Equations
Kalman EquationsKalman Equations
Kalman Equations
 
2.5 capacity calculations of fdma, tdma and cdma
2.5   capacity calculations of fdma, tdma and cdma2.5   capacity calculations of fdma, tdma and cdma
2.5 capacity calculations of fdma, tdma and cdma
 
Kalman Filter
 Kalman Filter    Kalman Filter
Kalman Filter
 
Dsp lecture vol 7 adaptive filter
Dsp lecture vol 7 adaptive filterDsp lecture vol 7 adaptive filter
Dsp lecture vol 7 adaptive filter
 
Design of IIR filters
Design of IIR filtersDesign of IIR filters
Design of IIR filters
 
Wiener Filter
Wiener FilterWiener Filter
Wiener Filter
 
Background subtraction
Background subtractionBackground subtraction
Background subtraction
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
 

Similar to Kalman Filter Applications in Image Processing

lecture_18-19_state_observer_design.pptx
lecture_18-19_state_observer_design.pptxlecture_18-19_state_observer_design.pptx
lecture_18-19_state_observer_design.pptxAnshulShekhar3
 
Time series Modelling Basics
Time series Modelling BasicsTime series Modelling Basics
Time series Modelling BasicsAshutosh Kumar
 
Intro to Quant Trading Strategies (Lecture 6 of 10)
Intro to Quant Trading Strategies (Lecture 6 of 10)Intro to Quant Trading Strategies (Lecture 6 of 10)
Intro to Quant Trading Strategies (Lecture 6 of 10)Adrian Aley
 
Sensor Fusion Study - Ch5. The discrete-time Kalman filter [박정은]
Sensor Fusion Study - Ch5. The discrete-time Kalman filter  [박정은]Sensor Fusion Study - Ch5. The discrete-time Kalman filter  [박정은]
Sensor Fusion Study - Ch5. The discrete-time Kalman filter [박정은]AI Robotics KR
 
ANALYZE THE STABILITY OF DC SERVO MOTOR USING NYQUIST PLOT
ANALYZE THE STABILITY OF DC SERVO MOTOR USING NYQUIST PLOTANALYZE THE STABILITY OF DC SERVO MOTOR USING NYQUIST PLOT
ANALYZE THE STABILITY OF DC SERVO MOTOR USING NYQUIST PLOTsanjay kumar pediredla
 
Relative Study of Measurement Noise Covariance R and Process Noise Covariance...
Relative Study of Measurement Noise Covariance R and Process Noise Covariance...Relative Study of Measurement Noise Covariance R and Process Noise Covariance...
Relative Study of Measurement Noise Covariance R and Process Noise Covariance...iosrjce
 
SPICE-MATEX @ DAC15
SPICE-MATEX @ DAC15SPICE-MATEX @ DAC15
SPICE-MATEX @ DAC15Hao Zhuang
 
Stat 2153 Introduction to Queiueng Theory
Stat 2153 Introduction to Queiueng TheoryStat 2153 Introduction to Queiueng Theory
Stat 2153 Introduction to Queiueng TheoryKhulna University
 
Vibration isolation progect lego(r)
Vibration isolation progect lego(r)Vibration isolation progect lego(r)
Vibration isolation progect lego(r)Open Adaptronik
 

Similar to Kalman Filter Applications in Image Processing (20)

lecture_18-19_state_observer_design.pptx
lecture_18-19_state_observer_design.pptxlecture_18-19_state_observer_design.pptx
lecture_18-19_state_observer_design.pptx
 
Av 738-Adaptive Filters - Extended Kalman Filter
Av 738-Adaptive Filters - Extended Kalman FilterAv 738-Adaptive Filters - Extended Kalman Filter
Av 738-Adaptive Filters - Extended Kalman Filter
 
Time series Modelling Basics
Time series Modelling BasicsTime series Modelling Basics
Time series Modelling Basics
 
Slideshare
SlideshareSlideshare
Slideshare
 
Av 738- Adaptive Filtering - Background Material
Av 738- Adaptive Filtering - Background MaterialAv 738- Adaptive Filtering - Background Material
Av 738- Adaptive Filtering - Background Material
 
Kalman filter.pdf
Kalman filter.pdfKalman filter.pdf
Kalman filter.pdf
 
Kalman filter demonstration
Kalman filter demonstrationKalman filter demonstration
Kalman filter demonstration
 
Week_10.2.pdf
Week_10.2.pdfWeek_10.2.pdf
Week_10.2.pdf
 
Intro to Quant Trading Strategies (Lecture 6 of 10)
Intro to Quant Trading Strategies (Lecture 6 of 10)Intro to Quant Trading Strategies (Lecture 6 of 10)
Intro to Quant Trading Strategies (Lecture 6 of 10)
 
Sensor Fusion Study - Ch5. The discrete-time Kalman filter [박정은]
Sensor Fusion Study - Ch5. The discrete-time Kalman filter  [박정은]Sensor Fusion Study - Ch5. The discrete-time Kalman filter  [박정은]
Sensor Fusion Study - Ch5. The discrete-time Kalman filter [박정은]
 
ANALYZE THE STABILITY OF DC SERVO MOTOR USING NYQUIST PLOT
ANALYZE THE STABILITY OF DC SERVO MOTOR USING NYQUIST PLOTANALYZE THE STABILITY OF DC SERVO MOTOR USING NYQUIST PLOT
ANALYZE THE STABILITY OF DC SERVO MOTOR USING NYQUIST PLOT
 
FinalReport
FinalReportFinalReport
FinalReport
 
Lecture 23 24-time_response
Lecture 23 24-time_responseLecture 23 24-time_response
Lecture 23 24-time_response
 
Relative Study of Measurement Noise Covariance R and Process Noise Covariance...
Relative Study of Measurement Noise Covariance R and Process Noise Covariance...Relative Study of Measurement Noise Covariance R and Process Noise Covariance...
Relative Study of Measurement Noise Covariance R and Process Noise Covariance...
 
P01061112116
P01061112116P01061112116
P01061112116
 
Me314 week08-stability and steady state errors
Me314 week08-stability and steady state errorsMe314 week08-stability and steady state errors
Me314 week08-stability and steady state errors
 
SPICE-MATEX @ DAC15
SPICE-MATEX @ DAC15SPICE-MATEX @ DAC15
SPICE-MATEX @ DAC15
 
Stat 2153 Introduction to Queiueng Theory
Stat 2153 Introduction to Queiueng TheoryStat 2153 Introduction to Queiueng Theory
Stat 2153 Introduction to Queiueng Theory
 
Vibration isolation progect lego(r)
Vibration isolation progect lego(r)Vibration isolation progect lego(r)
Vibration isolation progect lego(r)
 
Me314 week 06-07-Time Response
Me314 week 06-07-Time ResponseMe314 week 06-07-Time Response
Me314 week 06-07-Time Response
 

Recently uploaded

DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxMichelleTuguinay1
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxAnupam32727
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6Vanessa Camilleri
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
ARTERIAL BLOOD GAS ANALYSIS........pptx
ARTERIAL BLOOD  GAS ANALYSIS........pptxARTERIAL BLOOD  GAS ANALYSIS........pptx
ARTERIAL BLOOD GAS ANALYSIS........pptxAneriPatwari
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQuiz Club NITW
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Developmentchesterberbo7
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesVijayaLaxmi84
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 

Recently uploaded (20)

DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
ARTERIAL BLOOD GAS ANALYSIS........pptx
ARTERIAL BLOOD  GAS ANALYSIS........pptxARTERIAL BLOOD  GAS ANALYSIS........pptx
ARTERIAL BLOOD GAS ANALYSIS........pptx
 
prashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Professionprashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Profession
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Development
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their uses
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"
 

Kalman Filter Applications in Image Processing

  • 1. KALMAN FILTER Applications in Image processing
  • 2. Introduction • The kalman filter is a recursive state space model based estimation algorithm. • This filter is named after Rudolph E. Kalman, who in 1960 published his famous paper describing a recursive solution to the discrete data linear filtering problem (Kalman 1960). • This algorithm was basically developed for single dimensional and real valued signals which are associated with the linear systems assuming the system is corrupted with linear additive white Gaussian noise.
  • 3. • The Kalman filter addresses the general problem of trying to estimate the state x ∈ ℜn of a discrete-time controlled process that is governed by the linear difference equation xk = Axk – 1 + Buk – 1 + wk – 1 • with a measurement z that is zk = Hxk + vk • The random variables wk and vk represent the process noise and measurement noise respectively.
  • 4. • The nxn matrix A in the previous difference equation relates the state at the previous time step k-1 to the state at the current step k , in the absence of either a driving function or process noise. • The nxl matrix B relates the optional control input u to the state x. • The mxn matrix H in the measurement equation relates the state to the measurement zk.
  • 5. The Computational Origins of the Filter : • We define𝑥 − ∈ℜn to be our a priori state 𝑘 estimate at step k given knowledge of the process prior to step k , and 𝑥 𝑘 ∈ℜn to be our a posteriori state estimate at step k given measurement zk. • We can then define a priori and a posteriori estimate errors as − − 𝑒𝑘 ≡ 𝑥𝑘 − 𝑥𝑘 & 𝑒𝑘 ≡ 𝑥𝑘 − 𝑥𝑘
  • 6. • The a priori estimate error covariance is then − − −𝑇 𝑃𝑘 = 𝐸 𝑒 𝑘 𝑒 𝑘 & • the a posteriori estimate error covariance is 𝑇 𝑃𝑘 = 𝐸 𝑒 𝑘 𝑒 𝑘 • The posteriori state estimate 𝑥 𝑘 is written as a linear combination of an a priori estimate 𝑥 − 𝑘 and a weighted difference between an actual measurement zk & a measurement prediction H 𝑥 −. 𝑘
  • 7. . 𝑥 𝑘 = 𝑥 − + 𝐾 𝑧 𝑘 − 𝐻𝑥 − 𝑘 𝑘 • The difference 𝑧 𝑘 − 𝐻𝑥 − 𝑘 is called the measurement innovation, or the residual. • The nxm matrix K is chosen to be the gain or blending factor that minimizes the a posteriori error covariance. • Substituting 𝑥 𝑘 in 𝑒 𝑘 and 𝑒 𝑘 in Pk , and performing minimization, we get 𝑃− 𝐻 𝑇 𝑘 𝐾𝑘 = = 𝑃− 𝐻 𝑇 𝐻𝑃− 𝐻 𝑇 + 𝑅 −1 𝑘 𝑘 𝐻𝑃− 𝐻 𝑇 + 𝑅 𝑘
  • 8. Kalman filter algorithm • The Kalman filter estimates a process by using a form of feedback control: the filter estimates the process state at some time and then obtains feedback in the form of (noisy) measurements. • As such, the equations for the Kalman filter fall into two groups: time update equations and measurement update equations. • The time update equations are responsible for projecting forward (in time) the current state and error covariance estimates to obtain the a priori estimates for the next time step.
  • 9. • The measurement update equations are responsible for the feedback—i.e. for incorporating a new measurement into the a priori estimate to obtain an improved a posteriori estimate. • The time update equations can also be thought of as predictor equations, while the measurement update equations can be thought of as corrector equations. • The final estimation algorithm resembles that of a predictor-corrector algorithm.
  • 10.
  • 11. Discrete Kalman filter time update equations: 𝑥 − = 𝐴𝑥 𝑘−1 + 𝐵𝑢 𝑘−1 𝑘 Prediction 𝑃 − = 𝐴𝑃 𝑘−1 𝐴 𝑇 + 𝑄 𝑘 Discrete Kalman filter measurement update equations: 𝐾 𝑘 = 𝑃 − 𝐻 𝑇 𝐻𝑃− 𝐻 𝑇 + 𝑅 𝑘 𝑘 −1 𝑥 𝑘 = 𝑥 − + 𝐾 𝑘 𝑧 𝑘 − 𝐻𝑥 − 𝑘 𝑘 Correction 𝑃 𝑘 = 𝐼 − 𝐾 𝑘 𝐻 𝑃− 𝑘
  • 12. A complete picture of the operation of the Kalman filter
  • 13. Implementation • The image process is modelled as an auto regressive(AR) process driven by a white gaussian noise (Wn) with variance Q described by • Mathematically it can be written as 𝑦 𝑖, 𝑗 = 𝑎1 𝑦 𝑖, 𝑗 − 1 + 𝑎2 𝑦 𝑖 − 1, 𝑗 + 𝑎3 𝑦 𝑖 − 1, 𝑗 − 1 + 𝑎4 𝑦(𝑖 − 1, 𝑗 + 1)
  • 14. • The state space model for this system can be written as 𝑋 𝑛+1 = 𝐴𝑋 𝑛 + 𝑉𝑛 𝑍 𝑛 = 𝐻𝑋 𝑛 + 𝑊𝑛 where 𝑎1 𝑎2 𝑎3 𝑎4 𝑦(𝑖, 𝑗 − 1) 1 0 0 0 𝑦(𝑖 − 1, 𝑗) 𝐴= & 𝑋𝑛 = 0 1 0 0 𝑦(𝑖 − 1, 𝑗 − 1) 0 0 1 0 𝑦(𝑖 − 1, 𝑗 + 1
  • 15. Results Original Images Measured Images Corrected Images
  • 16. Extended Kalman Filter • An extended Kalman filter is used if the process to be estimated and (or) the measurement relationship to the process is non-linear. • Here 𝑥 𝑘 = 𝑓 𝑥 𝑘−1 , 𝑢 𝑘−1 , 𝑤 𝑘−1 • with measurement z that is 𝑧 𝑘 = ℎ 𝑥 𝑘, 𝑣 𝑘
  • 17. • Similar to the Kalman filter, the time and measurement equations for EKF can be written as below: • EKF time update equations: • EKF measurement update eqns:
  • 18.
  • 19. A complete picture of the operation of the extended Kalman filter
  • 20. Results Original Image Measured Image Corrected Image
  • 21. COMPLEX KALMAN FILTERING • In complex Kalman filtering, image model is represented in complex form as real and imaginary values represented as real and imaginary part of the complex number. Y= Real+(imag)i • where, Y is complex image model. • Complex valued Kalman filters have been used extensively in a variety of applications, including frequency estimation of time-varying signals, training of neural networks etc.
  • 22. Properties of Kalman filter • Kalman filter is a time-varying filter as Kalman gain changes with n. • The filter is very powerful in several aspects: it supports estimations of past, present, and even future states, and it can do so even when the precise nature of the modeled system is unknown. • In the Kalman filter, prediction acts like the prior information about the state at time n before we observe the data at time n.
  • 23. Refernces • Natasha Devroye. Estimation: parts of Chapters 12-13, Wiener and Kalman Filtering. • Greg Welch and Gary Bishop. An Introduction to the Kalman Filter, Monday, July 24, 2006. • R. E. KALMAN. A New Approach to Linear Filtering and Prediction Problems. • http://www.cs.unc.edu/~welch/kalman/