Image Processing. Filtering. Slide 1

Similar documents
Computer Vision I - Basics of Image Processing Part 1

Digital Image Processing. Prof. P. K. Biswas. Department of Electronic & Electrical Communication Engineering

Computer Vision I - Filtering and Feature detection

Babu Madhav Institute of Information Technology Years Integrated M.Sc.(IT)(Semester - 7)

Image Processing. Traitement d images. Yuliya Tarabalka Tel.

Digital Image Processing. Image Enhancement - Filtering

Image Processing Lecture 10

EE795: Computer Vision and Intelligent Systems

Relationship between Fourier Space and Image Space. Academic Resource Center

Image processing. Reading. What is an image? Brian Curless CSE 457 Spring 2017

Computer Vision. Fourier Transform. 20 January Copyright by NHL Hogeschool and Van de Loosdrecht Machine Vision BV All rights reserved

CS4442/9542b Artificial Intelligence II prof. Olga Veksler

Image Processing. Image Features

Filtering Images in the Spatial Domain Chapter 3b G&W. Ross Whitaker (modified by Guido Gerig) School of Computing University of Utah

2D Image Processing INFORMATIK. Kaiserlautern University. DFKI Deutsches Forschungszentrum für Künstliche Intelligenz

Fundamentals of Digital Image Processing

Computer Vision I - Algorithms and Applications: Basics of Image Processing

What will we learn? Neighborhood processing. Convolution and correlation. Neighborhood processing. Chapter 10 Neighborhood Processing

EECS 556 Image Processing W 09. Image enhancement. Smoothing and noise removal Sharpening filters

CS4442/9542b Artificial Intelligence II prof. Olga Veksler

Digital Image Processing. Image Enhancement in the Frequency Domain

Filters and Pyramids. CSC320: Introduction to Visual Computing Michael Guerzhoy. Many slides from Steve Marschner, Alexei Efros

Image processing in frequency Domain

Lecture 4: Image Processing

Why is computer vision difficult?

Image Processing. Daniel Danilov July 13, 2015

Computer Vision 2. SS 18 Dr. Benjamin Guthier Professur für Bildverarbeitung. Computer Vision 2 Dr. Benjamin Guthier

Image restoration. Restoration: Enhancement:

Statistical image models

Survey of the Mathematics of Big Data

Lecture 2 Image Processing and Filtering

Digital Image Processing

Denoising Method for Removal of Impulse Noise Present in Images

Final Review CMSC 733 Fall 2014

Digital Image Processing COSC 6380/4393

Final Exam Study Guide

ECG782: Multidimensional Digital Signal Processing

Prof. Feng Liu. Winter /15/2019

Lecture 4: Spatial Domain Transformations

CoE4TN4 Image Processing. Chapter 5 Image Restoration and Reconstruction

CS4733 Class Notes, Computer Vision

An Introduc+on to Mathema+cal Image Processing IAS, Park City Mathema2cs Ins2tute, Utah Undergraduate Summer School 2010

ME/CS 132: Introduction to Vision-based Robot Navigation! Low-level Image Processing" Larry Matthies"

Biomedical Image Analysis. Spatial Filtering

Classification of image operations. Image enhancement (GW-Ch. 3) Point operations. Neighbourhood operation

SECTION 5 IMAGE PROCESSING 2

CPSC 340: Machine Learning and Data Mining. Probabilistic Classification Fall 2017

IT Digital Image ProcessingVII Semester - Question Bank

Image gradients and edges April 11 th, 2017

Image gradients and edges April 10 th, 2018

Computer Vision I. Announcements. Fourier Tansform. Efficient Implementation. Edge and Corner Detection. CSE252A Lecture 13.

Locally Weighted Least Squares Regression for Image Denoising, Reconstruction and Up-sampling

All images are degraded

Digital Image Processing. Lecture 6

Image Restoration using Markov Random Fields

Filtering and Enhancing Images

Digital Image Fundamentals

A Novel Image Super-resolution Reconstruction Algorithm based on Modified Sparse Representation

[Programming Assignment] (1)

Introduction to Image Super-resolution. Presenter: Kevin Su

SYDE 575: Introduction to Image Processing

Sparse Component Analysis (SCA) in Random-valued and Salt and Pepper Noise Removal

INTENSITY TRANSFORMATION AND SPATIAL FILTERING

Probabilistic Graphical Models

Filters. Advanced and Special Topics: Filters. Filters

How does bilateral filter relates with other methods?

ECG782: Multidimensional Digital Signal Processing

morphology on binary images

Image restoration and enhancement: Nonlinear filters.

Filtering Images. Contents

Perception. Autonomous Mobile Robots. Sensors Vision Uncertainties, Line extraction from laser scans. Autonomous Systems Lab. Zürich.

Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong)

Detection of Edges Using Mathematical Morphological Operators

Digital Image Processing

Image Enhancement. Digital Image Processing, Pratt Chapter 10 (pages ) Part 1: pixel-based operations

Algebraic Iterative Methods for Computed Tomography

Digital Image Processing

Morphological Image Processing

Patch-Based Color Image Denoising using efficient Pixel-Wise Weighting Techniques

Digital Image Processing

Segmentation and Grouping

CoE4TN3 Medical Image Processing

EEM 463 Introduction to Image Processing. Week 3: Intensity Transformations

Beyond Correlation Filters: Learning Continuous Convolution Operators for Visual Tracking

10708 Graphical Models: Homework 4

WEINER FILTER AND SUB-BLOCK DECOMPOSITION BASED IMAGE RESTORATION FOR MEDICAL APPLICATIONS

Denoising and Edge Detection Using Sobelmethod

Image gradients and edges

CS1114 Section 8: The Fourier Transform March 13th, 2013

Image Processing

CHAPTER 4 TEXTURE FEATURE EXTRACTION

Chapter 3: Intensity Transformations and Spatial Filtering

3.4& Fundamentals& mechanics of spatial filtering(page 166) Spatial filter(mask) Filter coefficients Filter response

Sampling and Reconstruction. Most slides from Steve Marschner

Introduction to Digital Image Processing

Lecture 8 Object Descriptors

Visualizing level lines and curvature in images

Filtering and Edge Detection. Computer Vision I. CSE252A Lecture 10. Announcement

AN ALGORITHM FOR BLIND RESTORATION OF BLURRED AND NOISY IMAGES

Sharpening through spatial filtering

Transcription:

Image Processing Filtering Slide 1

Preliminary Image generation Original Noise Image restoration Result Slide 2

Preliminary Classic application: denoising However: Denoising is much more than a simple filtering Filtering can do many other things as well Filtering is a kind of image processing algorithms (Almost) each filter is based on a model (assumptions) Usual pipeline: Model = signal + noise Model Formal task Solution Algorithm (program) 3

Outline 1. Mean filter: Model Solution 2. Median filter: Formal task Solution 3. Some other filters (short) 4. Algorithms Notations: the domain (grid), Pixel Image is a mapping (color space) is the color of the pixel (at the position) Let be the ideal signal (original image, desired result ) is the nosed version The task: observe, compute 4

Mean filter Noise model: Gaussian probability distribution for color differences 5

Mean filter Further assumption: independent noise Let us try to formulate a task just now according to e.g. the Maximum-Likelihood principle (probability maximization): is a constant (drop it out), assume uniform prior the solution is trivial: for all additional assumptions about the signal are necessary!!! 6

Mean filter Assumption: in a small vicinity the true signal is nearly constant Maximum-Likelihood: take logarithm: Derive: (the average) 7

Median filter Corresponds to another noise model for simplicity let (gray-valued image) Another subject to optimize: Problem: not differentiable, good news: it is convex The solution: median filter order the values and take the middle one 8

A bit comparison Original Noised Mean Median 9

Another noise model (salt and pepper) In a small amount of pixels the colors are corrupted uniformly Original Noised Mean Median 10

An application The background smoothing improves spatial perception (Xue Bai, Guillermo Sapiro) btw. the reverse task is called shape from focus 11

Linear filtering Convolution With the mask (convolution kernel) (the mask is also an image ) Example: mean filter if otherwise 12

Some other filters Which other masks could be useful, for what? A bit more delicate smoothing with the Gaussian kernel: Unsharp mask: Original Unsharp Unsharp even more Edge detectors and a lot of other things 13

A completely other task Salt and pepper noise for 90% of pixels Usual linear filtering has no chance an explicit modeling of the signal is necessary (MRF in the case above) 14

Conclusion, further reading Explicit assumptions for the processed signal/noise local filtering Description by auto-correlation function Wiener filter Signal is a composition of different frequencies Fourier analysis Description by partial differential equations Variational methods Explicit modeling of statistic dependencies Markov Random Fields Etc. The properties of a particular problem (signal/noise model, a kind of the formal task to be solved etc.) are crucial. 15

Linear Filtering Algorithms One-dimensional signal for simplicity, i.e. Example: mean filter: A naïve algorithm (according to the formula): Time complexity: 16

Linear Filtering Algorithms A better Algorithm Idea: If the blue sums are pre-computed, only one summation per value are needed for output!!! 17

Linear Filtering Algorithms It is indeed very simple to pre-compute quickly A better Algorithm: 1. Compute for all : 2. Compute : Time complexity: does not depend on the window size at all!!! 18

Linear Filtering Integral Image Generalization to the 2D-case: 1. Compute for all : 2. Compute : Time complexity: does not depend on the window size at all!!! 19

Convolutions Properties: Commutative: Associative Distributive with + 20

Convolutions: Identical convolution (unity): Inverse convolutions fulfill: Example: ( is marked bold): differential operator integral operator The trick is in fact: Consequence: is easy to compute (linear time complexity) is sparse (a constant number of non-zero elements) 21

A bit complicated example Convolve efficiently with the mask (1D) 22

A bit complicated example Consider, how can be computed efficiently using. 23

A bit complicated example If is known, the next value could be computed in a constant time. However is nothing but a mean filter, i.e. it can be pre-computed in linear time as well! The algorithm: 1. Compute the integral signal ; 2. Compute the mean filter ; 3. Compute the output from and. All steps have the linear complexity the overall time complexity is linear as well. 24

A bit complicated example Explain it by convolutions: differential operator, integral operator 25

Separable filters Assume that a mask (seen as a matrix) can be represented as outer product of two vectors, i.e.. Example: Gaussian smoothing A convolution is then with an intermediate convolution. 26

Separable filters If the filter mask is an outer product, the convolution kernel can be written as. In what follows: Let the convolution kernel be of the size. Direct convolution takes operations per pixel. Consecutive application takes only operations per pixel! Gaussian, mean and many others are separable 27

Some interesting tasks: Let a convolution kernel be given. 1. Try to find its representation using differentiation and integration in order to reduce the time complexity. 2. Try to approximate the mask by the best possible separable one. 3. Decompose the kernel into a sum of separable filters. 4. Try to represent the kernel as a convolution of sparse ones. 5. Consider combinations of 1. 4. etc. 28

Box-Filter The consecutive application of the mean filtering approximate the Gaussian smoothing (based on the Central Limit Theorem) Time complexity: with the number of iterations (5-6 times is usually enough). 29

Conclusion Use filtering with care and respect. Do not use filters without to know, what are they really doing, have in mind always the whole: Model Formal task Solution Algorithm (program) Today: 1. Mean filter: Model Algorithm 2. Some other filters 3. Some examples 4. Algorithms, Convolutions, some further filtering tricks Next lecture: 1. Morphologic operations 30