Digital Image Fundamentals

Similar documents
Chapter 3: Intensity Transformations and Spatial Filtering

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

Lecture 4 Image Enhancement in Spatial Domain

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

IMAGING. Images are stored by capturing the binary data using some electronic devices (SENSORS)

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

Image Enhancement in Spatial Domain. By Dr. Rajeev Srivastava

Image Processing Lecture 10

CHAPTER 3 IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN

Digital Image Processing. Lecture # 3 Image Enhancement

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

Image restoration. Restoration: Enhancement:

EE795: Computer Vision and Intelligent Systems

An Intuitive Explanation of Fourier Theory

IMAGE ENHANCEMENT in SPATIAL DOMAIN by Intensity Transformations

Hom o om o or o phi p c Processing

Intensity Transformations and Spatial Filtering

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

Image Enhancement: To improve the quality of images

Linear Operations Using Masks

Image Restoration and Reconstruction

Introduction to Digital Image Processing

Lecture 4: Spatial Domain Transformations

Introduction to Digital Image Processing

Image Restoration and Reconstruction

Sampling and Reconstruction

Unit - I Computer vision Fundamentals

Lecture 4. Digital Image Enhancement. 1. Principle of image enhancement 2. Spatial domain transformation. Histogram processing

Image Enhancement in Spatial Domain (Chapter 3)

Basic Algorithms for Digital Image Analysis: a course

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

Filtering Images. Contents

Basic relations between pixels (Chapter 2)

CS4442/9542b Artificial Intelligence II prof. Olga Veksler

IT Digital Image ProcessingVII Semester - Question Bank

1.Some Basic Gray Level Transformations

Intensity Transformation and Spatial Filtering

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

Last update: May 4, Vision. CMSC 421: Chapter 24. CMSC 421: Chapter 24 1

Digital Image Processing

Islamic University of Gaza Faculty of Engineering Computer Engineering Department

Digital Image Processing

CS4442/9542b Artificial Intelligence II prof. Olga Veksler

Chapter - 2 : IMAGE ENHANCEMENT

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

What is an Image? Image Acquisition. Image Processing - Lesson 2. An image is a projection of a 3D scene into a 2D projection plane.

Filtering and Enhancing Images

Image Processing. Bilkent University. CS554 Computer Vision Pinar Duygulu

Lecture 2 Image Processing and Filtering

Image Enhancement 3-1

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

Digital Image Processing

Computer Vision I - Basics of Image Processing Part 1

Digital Image Processing

Motivation. Intensity Levels

Fundamentals of Digital Image Processing

Digital Image Processing. Introduction

Intensity Transformations. Digital Image Processing. What Is Image Enhancement? Contents. Image Enhancement Examples. Intensity Transformations

Motivation. Gray Levels

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

Point and Spatial Processing

Digital Image Processing. Image Enhancement (Point Processing)

Digital Image Processing

In this lecture. Background. Background. Background. PAM3012 Digital Image Processing for Radiographers

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

Implementation of efficient Image Enhancement Factor using Modified Decision Based Unsymmetric Trimmed Median Filter

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

Image Processing. Traitement d images. Yuliya Tarabalka Tel.

A NEW ROBUST IMAGE WATERMARKING SCHEME BASED ON DWT WITH SVD

INTENSITY TRANSFORMATION AND SPATIAL FILTERING

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

ECG782: Multidimensional Digital Signal Processing

ECG782: Multidimensional Digital Signal Processing

Digital Image Processing

(0, 1, 1) (0, 1, 1) (0, 1, 0) What is light? What is color? Terminology

Introduction to Computer Vision. Human Eye Sampling

Image Acquisition + Histograms

Lecture Image Enhancement and Spatial Filtering

PSD2B Digital Image Processing. Unit I -V

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

IMAGE DE-NOISING IN WAVELET DOMAIN

CS4733 Class Notes, Computer Vision

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

Computer Vision. The image formation process

IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN

Image Processing. Filtering. Slide 1

INTRODUCTION TO IMAGE PROCESSING (COMPUTER VISION)

Reversible Wavelets for Embedded Image Compression. Sri Rama Prasanna Pavani Electrical and Computer Engineering, CU Boulder

Image Processing. Daniel Danilov July 13, 2015

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]

Point Operations. Prof. George Wolberg Dept. of Computer Science City College of New York

Digital Image Analysis and Processing

Digital Image Processing

Image Acquisition Image Digitization Spatial domain Intensity domain Image Characteristics

Point operation Spatial operation Transform operation Pseudocoloring

An educational software package for digital image processing

Image Processing Fundamentals. Nicolas Vazquez Principal Software Engineer National Instruments

ELEC Dr Reji Mathew Electrical Engineering UNSW

Transcription:

Digital Image Fundamentals

Image Quality Objective/ subjective Machine/human beings Mathematical and Probabilistic/ human intuition and perception 6

Structure of the Human Eye photoreceptor cells 75~50 million Rod cell 6~7 million Cone cell 7 http://en.wikipedia.org/wiki/blind_spot_(vision)

Human Visual Perception Perceived brightness is NOT a simple function of intensity Perceived brightness Actual illumination 8

Human Visual Perception Optical Illusion http://architecturehell.wordpress.com/ 9

Image Sensing and Acquisition Illumination Source EM energy, ultrasound, synthesized, Scene Element Objects, human organs, buried mineral, Sensing Material Single sensor: photodiode Sensor strips: require extensive processing Sensor arrays: CCD & CMOS

Image Sensing and Acquisition Single sensor Sensor Strip Circular Sensor Strip 2

Image Sensing and Acquisition Illumination source Image sampling & quantization Scene element Imaging system (Internal) image plane Output (digitized) image pixel (pel, picture element, image element) 3

Image Sampling & Quantization f ( x, y) A/D F( j, sampling quantization Original image ( x, y) f sampling quantization F( j, coordinates amplitude 5

Image Sampling & Quantization j k M-,,,0,,,0 0, 0, 0,0 N M M M N N a a a a a a a a a A ), (,) (,0) ( ) (, (,) (,0) ) (0, (0,) (0,0) ), ( N M F M F M F N F F F N F F F k j F ), ( k j F ), ( y x f ), ( k j F 6

Downsampling 024x024 32x32 Downsampled by a factor of 2 8

Re-Sampling Zero-Order-Hold Method (ZOH) Row and column duplication 9

L=256,28,64,32,6,8,4,2 256 28 6 8 64 32 4 2 20

Digital Image Representation 8-bit image is commonly used Storage Human perception 32 steps (5 bits) in gray level 64 steps (6 bits) in gray level 2

Image Enhancement

Image Enhancement Goal of Image Enhancement make images more appealing no theory, ad-hoc rules, derived with insights Two Approaches Contrast Manipulation Histogram Modification 23

Contrast Manipulation Transfer Function Linear Nonlinear Piecewise Continuous Image Quantized Image 24

Contrast Manipulation Linear scaling and clipping G( j, T F( j, 0 F( j, 25

Contrast Manipulation Power-Law G ( j, F( j, p 0 F( j, 26

Contrast Manipulation Power-Law p G ( j, F( j, 0 F( j, 27

Contrast Manipulation Rubber Band Transfer Function Piecewise linear transformation Inflection point (control point) Can choose the area where we want to stretch or reduce the contrast 28

Contrast Manipulation Logarithmic Point Transformation G( j, log e af( j, log 2.0 e 0 F( j, Fourier Spectrum 0 ~.50 6 0~6.2 Useful for scaling image arrays with a very wide dynamic range 29

Contrast Manipulation Reverse Function G( j, F( j, 0 F( j, Able to see more details in dark areas of an image 30

Contrast Manipulation Inverse Function G( j, 0. F( j, 0 F( j, 0. 0. F( j, 3

Contrast Manipulation Amplitude-Level Slicing (Gray-Level Slicing) L- L- 32

Histogram Modification Goal Rescale the original image so that the histogram of the enhanced image follows some desired form 33

Histogram Modification Histogram Equalization make the output histogram to be uniformly distributed Transfer function Bucket filling 34

Histogram Equalization Transfer Function Input F( j, Desired (uniform) G( j, Histogram Probability Mass Function CDF Look-up Table Fi Gi F G? 35

Histogram Equalization Transfer Function Output histogram not really uniformly distributed Still keep the shape More flat than the original histogram 36

Histogram Equalization Bucket Filling F(j, # of pixels 0 2 2 5 arbitrary 255 3 G(j, # of pixels 0 N/256 N/256 2 N/256 uniform 255 N/256 Not - mapping N: # of total pixels Accumulated probability may not end exactly at the boundary of a bin split it out 37

Noise Cleaning

Noise Cleaning Noise electrical sensor noise photographic grain noise channel error etc. Characteristics of the noise discrete not spatially correlated higher spatial frequency 39

Noise Cleaning Two types of noise Uniform Noise Additive uniform noise, Gaussian noise Impulse Noise Salt and pepper noise Solutions Uniform Noise low-pass filtering Impulse Noise non-linear filtering 40

Basics of Spatial Filtering Mask filter, kernel, template m x n m=2a+, n=2b+, where a and b are nonnegative integers e.g. 3x3 mask W(0,0) Spatial Filtering/Convolution G( j, w(, ) F( j, k ) w(,0) F( j, w(0,0) F( j, w(,0) F( j, w(,) F( j, k ) 4

Basics of Spatial Filtering Q: Boundary pixels? ), ( (,) ), ( (,0) ), ( (0,0) ), (,0) ( ), ( ), ( ), ( k j F w k j F w k j F w k j F w k j F w k j G 42

Basics of Spatial Filtering Boundary Extension (3x3 mas copy e.g. 3x3 mask, w odd copy even Q: 5x5 mask? 43

Noise Cleaning Uniform noise Perform low-pass filtering General form 2 2 4 2 2 6 H 2 2 2 b b b b b b H 2 0 H 9 H e.g. 80 80 0 0 80 80 0 0 80 80 0 0 80 80 0 0 F 44

High Frequency Noise Removal Low-pass filtering Normalized to unit weighting Averaging Smaller/Larger filter size? 3x3 7x7 45

Noise Cleaning Impulse noise black: pixel value =0 dead sensor white: pixel value=255 saturated sensor Solutions Outlier detection Median filtering Pseudo-median filtering (PMED) 46

Impulse Noise Removal Outlier detection if x 8 8 O then i i 8 x 8 i O i How to choose? Larger window? 47

Impulse Noise Removal Median filtering a,, a N sort those values in order pick the middle one in the sorted list e.g. 3x3 mask: where N is odd 2 3 I 3 8 7 5 6 Median is 3 48

Impulse Noise Removal Median filtering Preserve sharp edges Effective in removing impulse noise D/2D (directional) e.g. 2D square cross 49

Impulse Noise Removal e.g. D (window size = 5) Step Ramp Single Pulse Double Pulse Triple Pulse Triangle 50

Impulse Noise Removal Median filtering Fast computation Approximation of median e.g. 5-element filter a, b, c, d, e MED(a, b, c, d, e) =max( min(a,b,c), min(a,b,d), ) =min( max(a,b,c), max(a,b,d), ) there are 0 possible choices could be narrowed down 5

Impulse Noise Removal Pseudomedian filtering (PMED) e.g. 5-element filter a, b, c, d, e spatially ordered MAXMIN = A (under estimated) = max( min(a,b,c), min(b,c,d), min(c,d,e) ) MINMAX = B (over estimated) = min( max(a,b,c), max(b,c,d), max(c,d,e) ) PMED( a, b, c, d, e ) = 0.5 * ( A + B ) = 0.5 * ( MAXMIN + MINMAX ) ~ MED( a, b, c, d, e ) 52

Impulse Noise Removal Pseudomedian filtering (PMED) 2D case PMED 2 PMED x PMED y PMED x PMED y PMED max 2 min 2 MAXMIN ( x MINMAX ( x c c ), MAXMIN ( y ), MINMAX ( y R R ) ) 53

Impulse Noise Removal Pseudomedian filtering (PMED) MAXMIN Remove salt noise MINMAX Remove pepper noise May cascade two operations Remove salt and pepper noise 54

Impulse Noise Removal Original noisy image MAXMIN MINMAX of MAXMIN Q: same results? MINMAX MAXMIN of MINMAX 55

Quality Measurement Peak signal-to-noise ratio (PSNR) Mean squared error (MSE) MSE w* h j, k F' j, k The PSNR is defined as j k F 2 PSNR 0log 0 2 255 MSE 56

Example Original image Gaussian noise (σ=0) PSNR : 28.8dB Gaussian noise (σ=30) PSNR : 8.8dB Q: Represent perceived visual quality? 57