3.7 Adaptive filtering Joonas Vanninen Antonio Palomino Alarcos.

Slides:



Advertisements
Similar presentations
Scale & Affine Invariant Interest Point Detectors Mikolajczyk & Schmid presented by Dustin Lennon.
Advertisements

CSCE 643 Computer Vision: Template Matching, Image Pyramids and Denoising Jinxiang Chai.
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: The Linear Prediction Model The Autocorrelation Method Levinson and Durbin.
Speech Enhancement through Noise Reduction By Yating & Kundan.
Tracking Unknown Dynamics - Combined State and Parameter Estimation Tracking Unknown Dynamics - Combined State and Parameter Estimation Presenters: Hongwei.
Adaptive Filters S.B.Rabet In the Name of GOD Class Presentation For The Course : Custom Implementation of DSP Systems University of Tehran 2010 Pages.
Lecture 3 Nonparametric density estimation and classification
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: The FIR Adaptive Filter The LMS Adaptive Filter Stability and Convergence.
Artifact cancellation and nonparametric spectral analysis.
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: Newton’s Method Application to LMS Recursive Least Squares Exponentially-Weighted.
A Short Introduction to Curve Fitting and Regression by Brad Morantz
The loss function, the normal equation,
EE 7730 Image Segmentation.
Image processing. Image operations Operations on an image –Linear filtering –Non-linear filtering –Transformations –Noise removal –Segmentation.
Motion Analysis (contd.) Slides are from RPI Registration Class.
Segmentation Divide the image into segments. Each segment:
1 Lecture 12 Neighbourhood Operations (2) TK3813 DR MASRI AYOB.
CS443: Digital Imaging and Multimedia Filters Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University Spring 2008 Ahmed Elgammal Dept.
Lecture 4 Measurement Accuracy and Statistical Variation.
Chapter 5 Image Restoration. Preview Goal: improve an image in some predefined sense. Image enhancement: subjective process Image restoration: objective.
Adaptive Signal Processing
Normalised Least Mean-Square Adaptive Filtering
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: Adaptive Noise Cancellation ANC W/O External Reference Adaptive Line Enhancement.
RLSELE Adaptive Signal Processing 1 Recursive Least-Squares (RLS) Adaptive Filters.
EE392J Final Project, March 20, Multiple Camera Object Tracking Helmy Eltoukhy and Khaled Salama.
ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission ( ) Wiener Filtering Derivation Comments Re-sampling and Re-sizing 1D  2D 10/5/06.
Chapter 2. Image Analysis. Image Analysis Domains Frequency Domain Spatial Domain.
Chapter 10: Image Segmentation
Algorithm Taxonomy Thus far we have focused on:
Introduction to Adaptive Digital Filters Algorithms
Feature and object tracking algorithms for video tracking Student: Oren Shevach Instructor: Arie nakhmani.
Computer Vision - Restoration Hanyang University Jong-Il Park.
Random Sampling, Point Estimation and Maximum Likelihood.
DIGITAL IMAGE PROCESSING Instructors: Dr J. Shanbehzadeh M.Gholizadeh M.Gholizadeh
Deconvolution, Deblurring and Restoration T , Biomedical Image Analysis Seminar Presentation Seppo Mattila & Mika Pollari.
Image Restoration using Iterative Wiener Filter --- ECE533 Project Report Jing Liu, Yan Wu.
Digital Image Processing
Joonas Vanninen Antonio Palomino Alarcos.  One of the objectives of biomedical image analysis  The characteristics of the regions are examined later.
CHAPTER 4 Adaptive Tapped-delay-line Filters Using the Least Squares Adaptive Filtering.
EDGE DETECTION IN COMPUTER VISION SYSTEMS PRESENTATION BY : ATUL CHOPRA JUNE EE-6358 COMPUTER VISION UNIVERSITY OF TEXAS AT ARLINGTON.
Motion Segmentation By Hadas Shahar (and John Y.A.Wang, and Edward H. Adelson, and Wikipedia and YouTube) 1.
Data Extraction using Image Similarity CIS 601 Image Processing Ajay Kumar Yadav.
Digital Image Processing Lecture 10: Image Restoration March 28, 2005 Prof. Charlene Tsai.
CS654: Digital Image Analysis
23 November Md. Tanvir Al Amin (Presenter) Anupam Bhattacharjee Department of Computer Science and Engineering,
Digital Image Processing Lecture 10: Image Restoration
8-1 Chapter 8: Image Restoration Image enhancement: Overlook degradation processes, deal with images intuitively Image restoration: Known degradation processes;
LEAST MEAN-SQUARE (LMS) ADAPTIVE FILTERING. Steepest Descent The update rule for SD is where or SD is a deterministic algorithm, in the sense that p and.
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: Derivation Computational Simplifications Stability Lattice Structures.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Joint Tracking of Features and Edges STAN BIRCHFIELD AND SHRINIVAS PUNDLIK CLEMSON UNIVERSITY ABSTRACT LUCAS-KANADE AND HORN-SCHUNCK JOINT TRACKING OF.
Segmentation of Vehicles in Traffic Video Tun-Yu Chiang Wilson Lau.
CHAPTER 10 Widrow-Hoff Learning Ming-Feng Yeh.
Professors: Eng. Diego Barral Eng. Mariano Llamedo Soria Julian Bruno
Chapter 5 Image Restoration.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities May 2, 2005 Prof. Charlene Tsai.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
: Chapter 5: Image Filtering 1 Montri Karnjanadecha ac.th/~montri Image Processing.
Image Restoration. Image restoration vs. image enhancement Enhancement:  largely a subjective process  Priori knowledge about the degradation is not.
Filters– Chapter 6. Filter Difference between a Filter and a Point Operation is that a Filter utilizes a neighborhood of pixels from the input image to.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Digital Image Processing Lecture 10: Image Restoration
Degradation/Restoration Model
Image Analysis Image Restoration.
Instructor :Dr. Aamer Iqbal Bhatti
Image and Video Processing
The loss function, the normal equation,
Adaptive Filter A digital filter that automatically adjusts its coefficients to adapt input signal via an adaptive algorithm. Applications: Signal enhancement.
Presentation transcript:

3.7 Adaptive filtering Joonas Vanninen Antonio Palomino Alarcos

Adaptive filtering Linear filtering does not take into account the local features of the image – Causes for example blurring of the edges An improvement: change the filter parameters according to the local statistics – Change the shape and the size of the neighborhood – Suppress the filtering if there are features that we want to preserve in the neighborhood

Filters The local LMMSE filter The noise-updating repeated Wiener filter The adaptive 2D LMS filter The adaptive rectangular window LMS filter The adaptive-neighborhood filter

The local LMMSE filter Local Linear Minimum Mean Squared Error filter, also known as the adaptive Wiener filter Assumes that the image is corrupted by additive noise Minimizes the local mean squared error by applying a linear operator to each pixel in the image The local mean and variance are estimated from a rectangular window around the pixel

LLMMSE estimation g is the corrupted image μ g is the local mean σ g 2 is the local variance σ η 2 is the variance Constant if noise is signal-independent Varies if noise is signal-dependent In the latter case it should be estimated locally with the knowledge of the type of the noise

MSE=1595 MSE=360 MSE=324

Interpretation of the equation If the area processed is uniform, the second term is small – Estimate is near the local mean of the noisy image – Noise is reduced If there is a edge in the processing window, the variance of the image is larger than the variance of the noise – Estimate is closer to the actual noisy value – Edge doesn’t get blurred

A refined version If the local variance is high, it is assumed that there is an edge in the processing window The edge is assumed to be straight in a small window The direction of the edge is calculated – Gradient operator – 8 different directions The processing window is divided to two uniform sub-areas over the edge The statistics in the sub-area that holds processed pixel are used Noise is reduced near the edges without causing blurring

Sub-areas

The noise-updating repeated Wiener Filter An iterative application of the LLMMSE filter The variance of noise used in the LLMMSE estimate formula is updated in each iteration The noise is reduced even near the edges To avoid blurring, a smaller window size may be choosen for each iteration

The Adaptative 2D LMS Filter

Why? Wiener filter has to be used with stationary and statistically independent signal and noise models Adaptative 2D LMS algorithm circunvent this problem – It takes into account the nonstationarity of the given image

2D LMS Algorithm Same concept: fixed-window Wiener filter New idea: filter coefficients vary depending upon the image characteristics – Algorithm based on the steepest descent method – It tracks the variations in the local statistics adapting to the changes in the images

Estimate of the original pixel value f(m,n): – Convolution – w l (p,q) Ξ causal FIR filter – g(m,n) Ξ noise-corrupted input image

Updating for the filter coefficients New coefficients determined by minimazing MSE between f(m,n) and the estimation Steepest descent method: – μ controls the rate of convergence and filter stability. – Error is estimated using an approximation to the original signal d(m,n) – d(m,n) obtained by decorrelation from the input image g(m,n) 2D delay operator of (1,1) samples, use the previous pixel as an estimate

Advantages of the Algorithm It does not require a priori information about: – Image – Noise statistics – Correlation properties It does not require averaging, differentiation and matrix operations

MSE=1590 MSE=395

The Adaptative Rectangular Window LMS Filter

ARW LMS Algorithm Same concept: 2D LMS filter based on standard Wiener filter New Idea: use of an adaptative-sized rectangular window Additional assumption: image processes have zero mean

Implementation Taking into account that now we have zero mean noise, following estimate is derived: σ f 2 is the variance of the original image (estimated) Idea: globally nonstationary process can be considered locally stationary and ergodic over small regions Target: to identify the size of a stationary square region for each pixel in the image – Sample statistics can approximate the a posteriori pareameters needed

Updating the window size Large window It may include pixels form other ensembles Small window The statistics needed are poorly estimated ARW lengths (Lr and Lc) are varied using a signal activity parameter: A similar signal activity parameter is defined in the colum direction

Updating the window size (II) If S is large N is decremented If S is small N is incremented In order to make this decision, S is compared to a threshold T as follows: Threshold is defined as: κ controls the rate at which T changes

The adaptive-neighborhood filter Uses a variable-size, variable-shape neighborhood determined individually for every pixel Neighborhood contains only spatially connected pixels that are similar to the seed This way the estimated statistics are likely to be closer to the true statistics of the signal Adaptive neighbourhoods should not mix the pixels of an object with the pixels of the background → no blurring of the edges

Region growing The absolute difference between each of the 8- neighbor pixels of the region and the seed is calculated If the value is under a threshold T, pixel is included in the region The process is iterated until there are no new pixels Additionally a background region is grown by expanding the foreground boundary by a prespecified number of pixels The regions are grown for each pixel in the image

An example of region growing The same neighborhood can be used for every pixel in the area with the same gray-value

Adaptive-neighborhood mean and median filters The mean and median values of adaptive neighborhoods can be used to filter noise They provide a larger population to compute local statistics than fixed 3 x 3 or 5 x 5 windows Edge distortion is pervented because the neighbourhood does not cross object boundaries

Adaptive-neighborhood noise subtraction (ANNS) Used for removing additive signal-independent noise Estimates the noise value in the seed pixel with an adaptive neighborhood and subtracts it to obtain an estimate of the original The local statistics are estimated as in the ARW-LMS – filter

Implementation A maximum foreground limit of Q pixels is set. At first, the tolerance is set to the full dynamic range An estimate of the variance of the uncorrupted signal is calculated from the neighborhood It is compared to the noise variance, and if σ f 2 > 2σ η 2, it is assumed that the neighbourhood contains a significant feature If so, the tolerance is modified by T = 2 σ f 2

Implementation (II) If the foreground has only one pixel, the neighborhood is enlarged to include the backround around it (3 x 3) Flat regions → σ f 2 << 2σ η 2 → foreground will grow to Q Busy regions → σ f 2 >> 2σ η 2 → tolerance will be reduced

Conclusion Use of local statistics in an adaptive filter is a powerful approach to remove noise – while retaining the edges in the images with minimal distortion Some of the implicit assumptions may not apply well to the image or noise processes – It is common to try several previously established techniques It is quite difficult to compare the results provided by different filters – Generally MSE or RMS error is used – In real applications, it is important to obtain an assessment of the results by a specialist

Quote “You can only cure retail but you can prevent wholesale” Brock Chisholm

…any question?