Spatial Enhancement Region operations: k'(x,y) = F( k(x-m, y-n), k(x,y), k(x+m,y+n) ]

Similar documents
Filtering and Edge Detection

Histogram Processing

Review Smoothing Spatial Filters Sharpening Spatial Filters. Spatial Filtering. Dr. Praveen Sankaran. Department of ECE NIT Calicut.

Reading. 3. Image processing. Pixel movement. Image processing Y R I G Q

Image Enhancement: Methods. Digital Image Processing. No Explicit definition. Spatial Domain: Frequency Domain:

TRACKING and DETECTION in COMPUTER VISION Filtering and edge detection

Computer Vision & Digital Image Processing. Periodicity of the Fourier transform

Linear Operators and Fourier Transform

Edge Detection. Introduction to Computer Vision. Useful Mathematics Funcs. The bad news

Edge Detection. Computer Vision P. Schrater Spring 2003

ITK Filters. Thresholding Edge Detection Gradients Second Order Derivatives Neighborhood Filters Smoothing Filters Distance Map Image Transforms

CITS 4402 Computer Vision

Signal Processing COS 323

Edge Detection. CS 650: Computer Vision

Lecture 04 Image Filtering

Edge Detection PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2005

Gaussian derivatives

Machine vision. Summary # 4. The mask for Laplacian is given

Outline. Convolution. Filtering

Machine vision, spring 2018 Summary 4

Today s lecture. Local neighbourhood processing. The convolution. Removing uncorrelated noise from an image The Fourier transform

ECE Digital Image Processing and Introduction to Computer Vision. Outline

Laplacian Filters. Sobel Filters. Laplacian Filters. Laplacian Filters. Laplacian Filters. Laplacian Filters

CAP 5415 Computer Vision

Lecture 7: Edge Detection

Additional Pointers. Introduction to Computer Vision. Convolution. Area operations: Linear filtering

Intensity Transformations and Spatial Filtering: WHICH ONE LOOKS BETTER? Intensity Transformations and Spatial Filtering: WHICH ONE LOOKS BETTER?

Computer Vision Lecture 3

Fourier Transforms 1D

Image Processing. Waleed A. Yousef Faculty of Computers and Information, Helwan University. April 3, 2010

Colorado School of Mines Image and Multidimensional Signal Processing

COMP344 Digital Image Processing Fall 2007 Final Examination

Empirical Mean and Variance!

Contents. Signals as functions (1D, 2D)

Chapter 16. Local Operations

STA 4321/5325 Solution to Homework 5 March 3, 2017

Contents. Signals as functions (1D, 2D)

Contents. Signals as functions (1D, 2D)

ECG782: Multidimensional Digital Signal Processing

f(s) e -i n π s/l d s

Taking derivative by convolution

G52IVG, School of Computer Science, University of Nottingham

Announcements. Filtering. Image Filtering. Linear Filters. Example: Smoothing by Averaging. Homework 2 is due Apr 26, 11:59 PM Reading:

FILTERING IN THE FREQUENCY DOMAIN

Image preprocessing in spatial domain

Lecture Outline. Basics of Spatial Filtering Smoothing Spatial Filters. Sharpening Spatial Filters

Multiresolution schemes

IMAGE ENHANCEMENT II (CONVOLUTION)

Aperture Photometry in Band Limited. Data. Robert Lupton. March 4, Band limited data, that is, data that has non-zero Fourier components in

Introduction to Computer Vision. 2D Linear Systems

Multiresolution schemes

Math 115 ( ) Yum-Tong Siu 1. Derivation of the Poisson Kernel by Fourier Series and Convolution

Linearization and Extreme Values of Functions

Intro to harmonic analysis on groups Risi Kondor

Computer Vision & Digital Image Processing

Convolutional networks. Sebastian Seung

Templates, Image Pyramids, and Filter Banks

6 The Fourier transform

Image Characteristics

Image as a signal. Luc Brun. January 25, 2018

Advanced Edge Detection 1

Image Acquisition and Sampling Theory

Deep Learning. Convolutional Neural Network (CNNs) Ali Ghodsi. October 30, Slides are partially based on Book in preparation, Deep Learning

Digital Image Processing COSC 6380/4393

Math 121A: Homework 6 solutions

I Chen Lin, Assistant Professor Dept. of CS, National Chiao Tung University. Computer Vision: 4. Filtering

Frequency2: Sampling and Aliasing

Case Studies of Logical Computation on Stochastic Bit Streams

CAP 5415 Computer Vision Fall 2011

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

Image Processing 1 (IP1) Bildverarbeitung 1

Local Enhancement. Local enhancement

Multiscale Image Transforms

Erkut Erdem. Hacettepe University February 24 th, Linear Diffusion 1. 2 Appendix - The Calculus of Variations 5.

LoG Blob Finding and Scale. Scale Selection. Blobs (and scale selection) Achieving scale covariance. Blob detection in 2D. Blob detection in 2D

Representer theorem and kernel examples

Summary of basic probability theory Math 218, Mathematical Statistics D Joyce, Spring 2016

Appendix A. Math Reviews 03Jan2007. A.1 From Simple to Complex. Objectives. 1. Review tools that are needed for studying models for CLDVs.

Mathematical Economics: Lecture 2

CS 556: Computer Vision. Lecture 21

Lagrange multipliers. Portfolio optimization. The Lagrange multipliers method for finding constrained extrema of multivariable functions.

Antiderivatives and Indefinite Integrals

Theory of signals and images I. Dr. Victor Castaneda

CSCI 250: Intro to Robotics. Spring Term 2017 Prof. Levy. Computer Vision: A Brief Survey

Medical Image Analysis

Local enhancement. Local Enhancement. Local histogram equalized. Histogram equalized. Local Contrast Enhancement. Fig 3.23: Another example

MIT 2.71/2.710 Optics 10/31/05 wk9-a-1. The spatial frequency domain

HORIZONTAL AND VERTICAL TRANSLATIONS

Directional Derivative and the Gradient Operator

The Kernel Trick. Robert M. Haralick. Computer Science, Graduate Center City University of New York

Achieving scale covariance

Roadmap. Introduction to image analysis (computer vision) Theory of edge detection. Applications

Math Review Night: Work and the Dot Product

Locality function LOC(.) and loss function LOSS (.) and a priori knowledge on images inp

PDEs in Image Processing, Tutorials

Sampling in 1D ( ) Continuous time signal f(t) Discrete time signal. f(t) comb

Vlad Estivill-Castro (2016) Robots for People --- A project for intelligent integrated systems

Definition and basic properties of heat kernels I, An introduction

E[X n ]= dn dt n M X(t). ). What is the mgf? Solution. Found this the other day in the Kernel matching exercise: 1 M X (t) =

Vectors [and more on masks] Vector space theory applies directly to several image processing/ representation problems

Transcription:

CEE 615: Digital Image Processing Spatial Enhancements 1 Spatial Enhancement Region operations: k'(x,y) = F( k(x-m, y-n), k(x,y), k(x+m,y+n) ] Template (Windowing) Operations Template (window, box, kernel) - defines the immediate area of interest - used in spatial domain operations - usually square/rectangular Examples of Template Operations correlation, convolution - spatial smoothing - spatial differentiation - edge enhancements median filter variance/ std. deviation local area enhancements difference operations template matching logical averaging Fourier Transform Image ==> spatial frequency map (FT) frequency domain filtering filtered FT map ==> image CorrelationThe correlation of two continuous functions f(x) and g(x), denoted by f(x) o g(x), is defined (in 1-dimension) by the relation: Where is a dummy variable of integration. f (x) g(x) f ( )g(x )d ConvolutionThe convolution of two continuous functions f(x) and g(x), denoted by f(x) g(x), is defined (in 1-dimension) by the relation: Where is a dummy variable of integration. f (x) g(x) f ( )g(x )d

CEE 615: Digital Image Processing Spatial Enhancements Correlation: graphic description STEP 1: STEP : Convolution: graphic description

CEE 615: Digital Image Processing Spatial Enhancements 3 Convolution & correlation filters 1. Sum of the filter elements: f(k) = 1 ==> tonal character of the original image is unchanged. f(k) > 1 ==> tonal (contrast) stretch 0 < f(k) < 1=> tonal (contrast) reduction f(k) = 0 ==> complete loss of tonal properties.. Laws: Let f 1 and f be filters, and let F be and image: Distributive Law: addition (f 1 * F) + (f * F) = (f 1 + f ) * F (f 1 o F) + (f o F) = (f 1 + f ) o F Commutative Law: addition (f 1 + f ) * F = (f + f 1 ) * F (f 1 + f ) o F = (f + f 1 ) o F Associative Law: convolution f 1 * (f * F) = (f 1 * f ) * F Commutative Law: convolution f 1 * f = (f * f 1 ) NOTE: If the filter, f, is invariant under a 180 rotation, convolution and correlation are identical operations. Convolution: discrete definitionthe discrete definition of the convolution of a filter f(x) with image g(x), is defined as: (m1) (n1) / f (i, j) g(i, j) f (k, ) g(i k, j ) image Where: (i,j) = location in the k (m1) (n1) / (m,n) = size of the filter template (k,) = location within the filter template (k,) = (0,0) refers to the filter center Filters are usually defined with odd dimensions, i.e., 3x3, 5x5,... That way the center pixel is always well defined. The center (or reference) pixel in a filter with even dimensions is often taken to be the upper left pixel of the center group. Spatial Smoothing: low-pass (averaging or mean) filter- convolution/correlation operation - replaces the image value with a weighted average of the local values x Linear Stretch: Convolution/correlation operation using a template with an effective size of 1x1. - Each image pixel gray value is multiplied by the value of the template.

CEE 615: Digital Image Processing Spatial Enhancements 4 Median Filter: Replaces the image value with the local median More generally, a rank-order filter. The filter is applied by sorting the values of in the neighborhood defined by the template, selecting the median value and assigning this value to the pixel. For example, in a 3x3 neighborhood, the median is the 5th largest value, in a 5x5 neighborhood the 13th largest value, and so on. Logical averaging Local area enhancement (statistical differencing) gray-value mapping varies over the image. produces same contrast over the entire image. let k m (i.j) and (i,j) and be the mean and standard deviation of gray values in some neighborhood of (i,j). o k (i, j) k (i, j) [k(i, j) k ] where: k o m m o = output gray value (i, j) o = desired standard deviation k m = local meanlocal area enhancement (forcing a local mean) allows more user control over the enhancement o k (i, j) m (1 )[k(i, j) k ] o o m (i, j) where: k m (i,j) = local mean (i,j) = local standard deviation k o = output gray value m o = desired mean Edge enhancements: 1-D Gradient In 1-dimension: df df Continuous function: xf ; yf dx dy Discrete function: xf f (i) f (i 1), yf f (j) f (j 1) o o = desired standard deviation = degree to which the mean is forced Edge enhancements: -D Gradient In -dimension: f f Continuous function: f ˆ i ˆj x y Discrete function: f (i, j) f (i, j) f (i 1, j) ˆi f (i, j) f (i, j 1) ˆj The Gradient is a vector quantity

CEE 615: Digital Image Processing Spatial Enhancements 5 Edge enhancements: Gradient alternates The gradient is a vector quantity, i.e., it has a magnitude and a direction. Magnitude: f f f x y Absolute Value: f f x y Robert's gradient: [f(i,j) - f(i+1,j+1)] + [f(i+1,j) - f(i,j+1)] Sum of the directional f f derivatives: x y Edge Enhancement: Laplacian Continuous function: Discrete function: f y x f f f x y f f (i 1, j) *f (i, j) f (i 1, j) f (i, j1) *f (i, j) f (i, j 1) Discrete D Laplacian: f f f f (i 1, j) f (i 1, j) f (i, j 1) f (i, j 1) 4*f (i, j) x y

CEE 615: Digital Image Processing Spatial Enhancements 6 Convolution filter characteristics: Sum of the filter elements: f(k) = 1 ==> tonal character of the original image is unchanged. f(k) > 1 ==> tonal (contrast) stretch 0 < f(k) < 1=> tonal (contrast) reduction f(k) = 0 ==> Directionality/symmetry complete loss of tonal properties.