Image Processing. Traitement d images. Yuliya Tarabalka Tel.

Similar documents
Filtering and Enhancing Images

Chapter 3: Intensity Transformations and Spatial Filtering

Digital Image Processing. Image Enhancement - Filtering

Image Processing Lecture 10

Outlines. Medical Image Processing Using Transforms. 4. Transform in image space

Neighborhood operations

Lecture 4: Image Processing

Image Processing. BITS Pilani. Dr Jagadish Nayak. Dubai Campus

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

Noise Model. Important Noise Probability Density Functions (Cont.) Important Noise Probability Density Functions

Point and Spatial Processing

Digital Image Procesing

Filtering Images. Contents

Image Enhancement in Spatial Domain (Chapter 3)

Ulrik Söderström 16 Feb Image Processing. Segmentation

SYDE 575: Introduction to Image Processing

Topic 4 Image Segmentation

Linear Operations Using Masks

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

Biomedical Image Analysis. Spatial Filtering

CHAPTER 3 IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN

Digital Image Processing. Image Enhancement in the Spatial Domain (Chapter 4)

CS534: Introduction to Computer Vision Edges and Contours. Ahmed Elgammal Dept. of Computer Science Rutgers University

Image restoration. Restoration: Enhancement:

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

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

Other Linear Filters CS 211A

EE795: Computer Vision and Intelligent Systems

CS334: Digital Imaging and Multimedia Edges and Contours. Ahmed Elgammal Dept. of Computer Science Rutgers University

Digital Image Processing, 2nd ed. Digital Image Processing, 2nd ed. The principal objective of enhancement

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

SURVEY ON IMAGE PROCESSING IN THE FIELD OF DE-NOISING TECHNIQUES AND EDGE DETECTION TECHNIQUES ON RADIOGRAPHIC IMAGES

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

Unit - I Computer vision Fundamentals

Lecture 6: Edge Detection

Prof. Feng Liu. Winter /15/2019

Denoising and Edge Detection Using Sobelmethod

Segmentation and Grouping

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

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

Digital Image Processing COSC 6380/4393

Line, edge, blob and corner detection

Image Segmentation Image Thresholds Edge-detection Edge-detection, the 1 st derivative Edge-detection, the 2 nd derivative Horizontal Edges Vertical

Lecture 7: Most Common Edge Detectors

Point Operations and Spatial Filtering

Edge detection. Gradient-based edge operators

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

Announcements. Edge Detection. An Isotropic Gaussian. Filters are templates. Assignment 2 on tracking due this Friday Midterm: Tuesday, May 3.

CoE4TN4 Image Processing. Chapter 5 Image Restoration and Reconstruction

EELE 5310: Digital Image Processing. Lecture 2 Ch. 3. Eng. Ruba A. Salamah. iugaza.edu

Image Processing

EELE 5310: Digital Image Processing. Ch. 3. Eng. Ruba A. Salamah. iugaza.edu

JNTUWORLD. 4. Prove that the average value of laplacian of the equation 2 h = ((r2 σ 2 )/σ 4 ))exp( r 2 /2σ 2 ) is zero. [16]

PERFORMANCE ANALYSIS OF CANNY AND OTHER COMMONLY USED EDGE DETECTORS Sandeep Dhawan Director of Technology, OTTE, NEW YORK

EECS490: Digital Image Processing. Lecture #19

Digital Image Processing

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

Edge Detection. Today s reading. Cipolla & Gee on edge detection (available online) From Sandlot Science

Lecture 4: Spatial Domain Transformations

Edge detection. Stefano Ferrari. Università degli Studi di Milano Elaborazione delle immagini (Image processing I)

Biomedical Image Analysis. Point, Edge and Line Detection

Comparison between Various Edge Detection Methods on Satellite Image

Chapter 10: Image Segmentation. Office room : 841

Edge Detection. CSE 576 Ali Farhadi. Many slides from Steve Seitz and Larry Zitnick

Image Enhancement: To improve the quality of images

Edge Detection. CS664 Computer Vision. 3. Edges. Several Causes of Edges. Detecting Edges. Finite Differences. The Gradient

ECG782: Multidimensional Digital Signal Processing

Introduction to Digital Image Processing

Digital Image Processing

Multimedia Computing: Algorithms, Systems, and Applications: Edge Detection

Chapter - 2 : IMAGE ENHANCEMENT

Edge detection. Convert a 2D image into a set of curves. Extracts salient features of the scene More compact than pixels

Image Processing. Daniel Danilov July 13, 2015

5. Feature Extraction from Images

C E N T E R A T H O U S T O N S C H O O L of H E A L T H I N F O R M A T I O N S C I E N C E S. Image Operations II

CS 4495 Computer Vision. Linear Filtering 2: Templates, Edges. Aaron Bobick. School of Interactive Computing. Templates/Edges

Image gradients and edges April 11 th, 2017

Image gradients and edges April 10 th, 2018

Vivekananda. Collegee of Engineering & Technology. Question and Answers on 10CS762 /10IS762 UNIT- 5 : IMAGE ENHANCEMENT.

Lecture: Edge Detection

Image Processing. Filtering. Slide 1

ECG782: Multidimensional Digital Signal Processing

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

Algorithms for Edge Detection and Enhancement for Real Time Images: A Comparative Study

PSD2B Digital Image Processing. Unit I -V

Edge Detection (with a sidelight introduction to linear, associative operators). Images

Edge Detection. Announcements. Edge detection. Origin of Edges. Mailing list: you should have received messages

Edge and local feature detection - 2. Importance of edge detection in computer vision

Broad field that includes low-level operations as well as complex high-level algorithms

CoE4TN3 Medical Image Processing

Digital Image Processing

CS4733 Class Notes, Computer Vision

Anno accademico 2006/2007. Davide Migliore

Edge Detection. CMPUT 206: Introduction to Digital Image Processing. Nilanjan Ray. Source:

SIMULATIVE ANALYSIS OF EDGE DETECTION OPERATORS AS APPLIED FOR ROAD IMAGES

EXAM SOLUTIONS. Image Processing and Computer Vision Course 2D1421 Monday, 13 th of March 2006,

PROCESS > SPATIAL FILTERS

SECTION 5 IMAGE PROCESSING 2

CS4442/9542b Artificial Intelligence II prof. Olga Veksler

REVIEW PAPER ON IMAGE EDGE DETECTION ALGORITHMS FOR SEGMENTATION

Transcription:

Traitement d images Yuliya Tarabalka yuliya.tarabalka@hyperinet.eu yuliya.tarabalka@gipsa-lab.grenoble-inp.fr Tel. 04 76 82 62 68

Noise reduction

Image restoration Restoration attempts to reconstruct an image that has been degraded by using a priori knowledge of the degradation phenomenon Modeling the degradation Applying the inverse process in order to recover the original image f(x,y) Degradation function H + g(x,y) Restauration filter(s) fˆ (x,y) Degradation Noise η(x,y) Restauration 3

Noise models (Models of noisy images) Gaussian noise Uniform noise Impulse (salt-and-pepper) noise 4 used frequently in practice macroscopic effect of many microscopic effects imnoise(i,'gaussian', ) in acquiring images with a CDD camera imnoise(i,'salt & pepper', )

Noise models (Models of noisy images) Test pattern 3.5 x 104 3 2.5 2 1.5 1 0.5 0 0 50 100 150 200 250 5

Noise models (Models of noisy images) Gaussian noise Uniform noise Impulse (salt-and-pepper) noise 800 700 600 500 400 300 200 100 0 0 50 100 150 200 250 1000 800 600 400 200 0 0 50 100 150 200 250 3.5 x 104 3 2.5 2 1.5 1 0.5 0 0 50 100 150 200 250 6

Noise models (Models of noisy images) Original image 7

Convolution 2D, discrete space: 8

Convolution 9

Convolution 10 Convolution of two square pulses: the resulting waveform is a triangular pulse. The integral of their product is the area of the yellow region

Convolution 11

Spatial filtering (neighborhood operations) The value of each pixel (x,y) in the output image is computed from the values of the pixels in the neighborhood of (x,y): Sliding filtering windows: 12

Spatial filtering (neighborhood operations) Linear filtering: the response of the filter is given by a sum of products of the filter coefficients and the corresponding image pixels within the filter mask The mask of size m x n is centered at (x,y) We assume m=2a+1, n=2b+1 Mask, kernel, filter, window 13

Spatial filtering (neighborhood operations) Linear filtering: the response of the filter is given by a sum of products of the filter coefficients and the corresponding image pixels within the filter mask The mask of size m x n is centered at (x,y) We assume m=2a+1, n=2b+1 convolution mask Mask, kernel, filter, window 14 convolving a mask with an image

Smoothing linear filters The output: (weighted) average of the pixels contained in the neighborhood of the filter mask Averaging, lowpass filters Mean filter: replace each pixel by the arithmetic mean of its neighbors and itself Weighted average: reduce blurring in the smoothing process reduce noise (e.g., gaussian) but blur edges 15

Smoothing linear filters Matlab: conv2(), imfilter() Results of smoothing with square averaging Filter masks of sizes n = 3, 5, 9, 15, and 35 16

Smoothing linear filters Image corrupted by Gaussian noise Mean filtering (3x3 mask) 800 700 2500 2000 600 500 1500 400 300 200 100 0 1000 500 0 0 50 100 150 200 250 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 17

Smoothing non-linear filtering Order filters: response is based on ordering (ranking) the pixels contained within the considered window 18

Smoothing non-linear filtering Order filters: response is based on ordering (ranking) the pixels contained within the considered window 10<45<51<51<61<88<124<134<152 Median filter replaces the value of a pixel by the median of the gray levels in its neighborhood For our example it is 61: 10<45<51<51<61<88<124<134<152 Especially effective for impulse (salt-and-pepper) noise 19

Smoothing non-linear filtering Order filters: response is based on ordering (ranking) the pixels contained within the considered window 10<45<51<51<61<88<124<134<152 20 Middle filter: the value of a pixel is computed as the average of the maximum and minimum values in its neighborhood For our example it is 81: 10<45<51<51<61<88<124<134<152 Particularly effective for uniform noise

Smoothing non-linear filtering Image corrupted by salt-and-pepper noise Image after median filtering (Matlab: medfilt2()) Image after middle filtering 3.5 x 104 3.5 x 104 3.5 x 104 3 3 3 2.5 2.5 2.5 2 2 2 1.5 1.5 1.5 1 1 1 0.5 0.5 0.5 0 0 50 100 150 200 250 0 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 21

Contrast enhancement If mean > middle, max(mean, middle); otherwise min(mean, middle) Contrast enhancement accentuates edges, but also noise 22

Real images Reference, non-noisy image is not available One must assume (guess) a type of noise Choose the part of an image that is assumed to be uniform (homogeneous) without the noise Test the hypothesis and choose the best filter 23

Edge detection

Segmentation & edge detection Segmentation partitions an image into its constituent regions or objects Image segmentation algorithms are based on one of two (or two) basic properties of intensity values: discontinuity and similarity Edge detection is used to isolate objects based on abrupt changes in intensity Edge = fast change in intensity No edge Edge 25

Detection of discontinuities The most common way to look for discontinuities is to convolve a mask with an image Point detection: filtering an image with a mask -1-1 -1-1 8-1 -1-1 -1 thresholding 26 Original image After filtering After thresholding

Edge detection Edge is a set of connected pixels that lie on the boundary between two regions Derivative is a measure of how a function changes as its input changes First-order derivative of a one-dimensional function f(x): Second-order derivative: 27

Edge detection Model of an ideal edge Model of a ramp edge Grey-level profile First derivative Second derivative 28

Edge detection The gradient of an image f(x,y) at location (x,y) is defined as the vector Magnitude of the gradient Convolution masks: 0 0 0 0-1 0-1 1 0 0 1 0 G x 0 0 0 G y 0 0 0 29

Edge detection Convolution masks: 0 0 0 0-1 0 0 0 1 Roberts 0 0 0 0 0-1 0 1 0 Cross operator 0 0 0-1 0 1 0-1 0 0 0 0 G x 0 0 0 G y 0 1 0 30

Edge detection grad1 Horizontal gradient grad2 Vertical gradient max( grad1, grad2 ) Threshold We define a point in an image as being an edge point if its two-dimensional first-order derivative is greater than a specific threshold Problem 1: gradient is sensitive to noise! 31

Edge detection Filtering in one dimension + detection in another dimension Prewitt: -1 0 1-1 0 1-1 -1-1 0 0 0 G x -1 0 1 G y 1 1 1 Sobel: -1 0 1-2 0 2-1 -2-1 0 0 0 G x -1 0 1 G y 1 2 1 32

Edge detection Filtering in one dimension + detection in another dimension Problem 2: Some edges are not closed postprocessing to link (close) edges 33

Edge detection The Laplacian of a 2-D function f(x, y) is a second-order derivative defined as The Laplacian mask is isotropic 0-1 0-1 4-1 0-1 0-1 -1-1 -1 8-1 -1-1 -1 Edge points are defined as the zero-crossings of the Laplacian Problem: the Laplacian is very sensitive to noise 34

Edge detection Original noisy image After Laplacian filtering After Prewitt filtering There are other advanced edge detection algorithms: Canny edge detector 35

Enhancement Edges can be accentuated by applying f(x, y) - f(x,y) 0-1 0-1 -1-1 -1 5-1 -1 9-1 0-1 0-1 -1-1 36 Sensitive to noise

Relief effect ( emboss ) The relief effect can be obtained by summing an image negative with the translated original image 37

Orientation analysis 8 50 7 6 100 5 150 4 200 3 2 250 50 100 150 200 250 1 38