Image restoration and color image processing

Similar documents
Digital Image Processing. Digital Image Fundamentals II 12 th June, 2017

CoE4TN4 Image Processing. Chapter 3: Intensity Transformation and Spatial Filtering

Chapter 3 Image Enhancement in the Spatial Domain. Chapter 3 Image Enhancement in the Spatial Domain

Filtering in the spatial domain (Spatial Filtering)

Digital Image Processing

Midterm is on Thursday!

Achim J. Lilienthal Mobile Robotics and Olfaction Lab, AASS, Örebro University

Image Enhancement using Histogram Equalization and Spatial Filtering

Image Filtering. Reading Today s Lecture. Reading for Next Time. What would be the result? Some Questions from Last Lecture

MATLAB Image Processing Toolbox

Image acquisition. Midterm Review. Digitization, line of image. Digitization, whole image. Geometric transformations. Interpolation 10/26/2016

Digital Image Processing 3/e

Noise and Restoration of Images

LAB MANUAL SUBJECT: IMAGE PROCESSING BE (COMPUTER) SEM VII

Table of contents. Vision industrielle 2002/2003. Local and semi-local smoothing. Linear noise filtering: example. Convolution: introduction

MatLab for biologists

Image Processing for feature extraction

Non Linear Image Enhancement

Circular averaging filter (pillbox) Approximates the two-dimensional Laplacian operator. Laplacian of Gaussian filter

Image Filtering. Median Filtering

Lecture 3: Linear Filters

Prof. Vidya Manian Dept. of Electrical and Comptuer Engineering

Vision Review: Image Processing. Course web page:

MATLAB 6.5 Image Processing Toolbox Tutorial

Digital Image Processing. Lecture # 8 Color Processing

Color Transformations

Historical Document Preservation using Image Processing Technique

Computing for Engineers in Python

Digital Image Processing

Computer Vision for HCI. Noise Removal. Noise in Images

Image Enhancement in the Spatial Domain

Motivation: Image denoising. How can we reduce noise in a photograph?

TDI2131 Digital Image Processing (Week 4) Tutorial 3

IMAGE ENHANCEMENT IN SPATIAL DOMAIN

Practical Image and Video Processing Using MATLAB

SRI VENKATESWARA COLLEGE OF ENGINEERING. COURSE DELIVERY PLAN - THEORY Page 1 of 6

Image Enhancement in the Spatial Domain Low and High Pass Filtering

Color Image Processing II

Midterm Review. Image Processing CSE 166 Lecture 10

Digital Image Processing

Digital Image Processing

Sharpening Spatial Filters ( high pass)

PRACTICAL IMAGE AND VIDEO PROCESSING USING MATLAB

Implementation of Image Restoration Techniques in MATLAB

Announcements. Image Processing. What s an image? Images as functions. Image processing. What s a digital image?

INTRODUCTION TO MATLAB

DIGITAL IMAGE PROCESSING (COM-3371) Week 2 - January 14, 2002

DIGITAL IMAGE DE-NOISING FILTERS A COMPREHENSIVE STUDY

Digital Image Processing

Motivation: Image denoising. How can we reduce noise in a photograph?

>>> from numpy import random as r >>> I = r.rand(256,256);

Image Enhancement. DD2423 Image Analysis and Computer Vision. Computational Vision and Active Perception School of Computer Science and Communication

Chapter 6. [6]Preprocessing

Enhancement Techniques for True Color Images in Spatial Domain

Image Enhancement in spatial domain. Digital Image Processing GW Chapter 3 from Section (pag 110) Part 2: Filtering in spatial domain

TIRF, geometric operators

BASIC OPERATIONS IN IMAGE PROCESSING USING MATLAB

IMAGE PROCESSING: AREA OPERATIONS (FILTERING)

VU Signal and Image Processing. Image Enhancement. Torsten Möller + Hrvoje Bogunović + Raphael Sahann

ANALYSIS OF IMAGE ENHANCEMENT TECHNIQUES USING MATLAB

Image processing. Image formation. Brightness images. Pre-digitization image. Subhransu Maji. CMPSCI 670: Computer Vision. September 22, 2016

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad

Image Filtering in Spatial domain. Computer Vision Jia-Bin Huang, Virginia Tech

Installation. Binary images. EE 454 Image Processing Project. In this section you will learn

Blurred Image Restoration Using Canny Edge Detection and Blind Deconvolution Algorithm

Image Processing. Adam Finkelstein Princeton University COS 426, Spring 2019

4 Enhancement. 4.1 Why perform enhancement? Enhancement via image filtering

Image Deblurring. This chapter describes how to deblur an image using the toolbox deblurring functions.

DIGITAL IMAGE PROCESSING UNIT III

Prof. Feng Liu. Winter /10/2019

CS 445 HW#2 Solutions

Computer Graphics Fundamentals

Color Space 1: RGB Color Space. Color Space 2: HSV. RGB Cube Easy for devices But not perceptual Where do the grays live? Where is hue and saturation?

Image Processing for Mechatronics Engineering For senior undergraduate students Academic Year 2017/2018, Winter Semester

Digital Image Processing. Lecture # 4 Image Enhancement (Histogram)

Study And Analysis Of Enhancement And Edge Detection Method For Human Bone Fracture X-Ray Image

Digital Image Processing. Lecture # 3 Image Enhancement

Image Processing. 2. Point Processes. Computer Engineering, Sejong University Dongil Han. Spatial domain processing

Last Lecture. Lecture 2, Point Processing GW , & , Ida-Maria Which image is wich channel?

CHAPTER 6 COLOR IMAGE PROCESSING

02/02/10. Image Filtering. Computer Vision CS 543 / ECE 549 University of Illinois. Derek Hoiem

Sensors and Sensing Cameras and Camera Calibration

Color Image Processing

Unit 8: Color Image Processing

Digital Image Processing. Lecture # 6 Corner Detection & Color Processing

1. (a) Explain the process of Image acquisition. (b) Discuss different elements used in digital image processing system. [8+8]

Digital Image Processing Programming Exercise 2012 Part 2

Digital Image Processing. Lecture 5 (Enhancement) Bu-Ali Sina University Computer Engineering Dep. Fall 2009

A.V.C. COLLEGE OF ENGINEERING DEPARTEMENT OF CSE CP7004- IMAGE PROCESSING AND ANALYSIS UNIT 1- QUESTION BANK

Chapter 3. Study and Analysis of Different Noise Reduction Filters

Digital Image Processing Chapter 6: Color Image Processing ( )

Image filtering, image operations. Jana Kosecka

Image analysis. CS/CME/BIOPHYS/BMI 279 Fall 2015 Ron Dror

Transforms and Frequency Filtering

CSE 564: Scientific Visualization

Matlab (see Homework 1: Intro to Matlab) Linear Filters (Reading: 7.1, ) Correlation. Convolution. Linear Filtering (warm-up slide) R ij

Noise Detection and Noise Removal Techniques in Medical Images

GAUSSIAN DE-NOSING TECHNIQUES IN SPATIAL DOMAIN FOR GRAY SCALE MEDICAL IMAGES Nora Youssef, Abeer M.Mahmoud, El-Sayed M.El-Horbaty

SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS

Lec 04: Image Filtering and Edge Features

Transcription:

1 Enabling Technologies for Sports (5XSF0) Image restoration and color image processing Sveta Zinger ( s.zinger@tue.nl ) What is image restoration? 2 Reconstructing or recovering an image that has been degraded by using a priori knowledge of the degradation phenomenon Improving a given image in some predefined sense Modeling the degradation and applying the inverse process in order to recover the original image (The slides are based on Digital Image Processing Using Matlab, R. C. Gonzalez, R. E. Woods, S. L. Eddins) 1

What is the difference between image restoration and image enhancement? 3 Image enhancement is largely a subjective process, while image restoration is mostly an objective process Enhancement manipulates an image in order to take advantage of the psychophysical aspects of the human visual system; Restoration formulates a criterion of goodness that yields an optimal estimate of the desired result Difference between image restoration and image enhancement: example 4 Enhancement: contrast stretching Based primarily on the pleasing aspects it might present to the viewer Restoration: removal of image blur Applying a deblurring function is a restoration technique 2

Model of image degradation process 5 Model of a degradation process x, y H f x, y x y g, where g(x,y) degraded image, f(x,y) input image, H degradation function, x, y additive noise Objective of restoration Obtain an estimate of the original image Model of image degradation / restoration process 6 3

Noise simulation (1) 7 Noise models Behavior and effects of noise are central to image restoration We assume that noise is independent from image coordinates Adding noise: function imnoise Adds Gaussian, Poisson, speckle, salt and pepper noise Noise simulation (2) 8 Matlab functions used for noise generation Uniformly distributed pseudo-random numbers rand Normally distributed random numbers (Gaussian distribution) randn Find indices of nonzero elements find 4

Histograms of random numbers 9 Estimating noise parameters 10 B=roipoly(f) imhist(f(b)) 5

Restoration in presence of noise only: spatial filtering When the only degradation present is noise, then x, y f x, yx y g, 11 where g(x,y) degraded image, f(x,y) input image, x, y additive noise The method of choice for reducing noise in this case spatial filtering 12 Linear spatial filtering imfilter linear filtering with a user-defined mask options boundary (symmetric, replicate, circular), output size (same or full), correlation or convolution fspecial create predefined 2D filters types of filters average, gaussian, laplacian, prewitt, sobel, etc. 6

Nonlinear spatial filtering ordfilt2 2D order-statistic filter g=ordfilt2(f,1,ones(m,n)) min filter medfilt2 2D median filter 13 Spatial filters 14 7

Spatial filters: example 15 Adaptive median filter 16 8

Adaptive median filter: example 17 RGB images (1) 18 RGB color image M x N x 3 array of color pixels, where each color pixel is a triplet corresponding to the red, green and blue components of an RGB image at a specific spatial location It is a stack of three gray-scale images that, when fed into the red, green and blue inputs of a color monitor, produce a color image on the screen 9

RGB images (2) 19 Component images three images forming an RGB color image Bit depth number of bits used to represent the pixel values of the component images For example, if each component image is an 8-bit image, the corresponding RGB image is said to be 24 bits deep RGB images (3) 20 10

Indexed images (1) 21 Data matrix of integers Colormap matrix, map m x 3 array, where m number of colors the map defines each row of map specifies the red, green and blue components of a single color Color of each pixel is determined by using the corresponding value of integer data matrix as a pointer into map Indexed images (2) 22 11

Indexed images (3) Some of Matlab predefined colormaps autumn, cool, gray, hot, pink, spring, summer, winter, etc. Some Image Processing toolbox functions for converting between RGB, indexed and gray-scale intensity images gray2ind, ind2gray, rgb2gray, ind2rgb, etc. Convertion to other color spaces rgb2ycbcr, ycbcr2rgb, rgb2hsv, hsv2rgb, etc. 23 Basics of color image processing (1) Color pixels are vectors For example, in the RGB system, each color point can be interpreted as a vector extending from the origin to that point in the RGB coordinate system: c x, y c c c R G B x, x, x, y y y R x, y G x, y B x, y 24 12

Basics of color image processing (2) 25 Spatial filtering of color images: color image smoothing Instead of single pixels we now deal with vector values 26 Average of K RGB vectors in neighborhood S xy 1 Rs, t 1 K cx, y cs, t; cx, y s, t S xy K 1 K 1 K s, t S s, t S s, t S xy Gs, t xy Bs, t xy 13

Linear spatial filtering of color image 27 Steps for smoothing an RGB image f Extract the three component images: fr=f(:,:,1); fg=f(:,:,2); fb=f(:,:,3); Filter each component image individually: fr_smooth=imfilter(fr,w); similarly find fg, fb Reconstruct the filtered RGB image: f_filtered=cat(3, fr_smooth, fg_smooth, fb_smooth); Or use Matlab function F_filtered=imfilter(f,w) RGB image: example 28 14

HSI color model: example 29 Smoothing result 30 15

Reference 31 Rafael C. Gonzalez, Richard E. Woods, Steven L. Eddins, Digital Image Processing Using Matlab, Pearson Education, 2004 Chapter 5 Chapter 6 16