Digital Image Processing

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

Image Enhancement in Spatial Domain. By Dr. Rajeev Srivastava

Intensity Transformation and Spatial Filtering

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

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

Intensity Transformations and Spatial Filtering

Chapter 3: Intensity Transformations and Spatial Filtering

Lecture 4 Image Enhancement in Spatial Domain

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

Introduction to Digital Image Processing

CHAPTER 3 IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN

Sampling and Reconstruction

IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN

Introduction to Digital Image Processing

Image Enhancement: To improve the quality of images

Digital Image Analysis and Processing

Basic relations between pixels (Chapter 2)

Digital Image Processing

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

IMAGE ENHANCEMENT in SPATIAL DOMAIN by Intensity Transformations

Digital Image Processing

UNIT - 5 IMAGE ENHANCEMENT IN SPATIAL DOMAIN

Digital Image Processing

Digital Image Processing. Lecture # 3 Image Enhancement

Lecture #5. Point transformations (cont.) Histogram transformations. Intro to neighborhoods and spatial filtering

Basic Algorithms for Digital Image Analysis: a course

Selected Topics in Computer. Image Enhancement Part I Intensity Transformation

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

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

EE795: Computer Vision and Intelligent Systems

Digital Image Processing. Image Enhancement (Point Processing)

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

INTENSITY TRANSFORMATION AND SPATIAL FILTERING

EE663 Image Processing Histogram Equalization I

Fundamentals of Digital Image Processing

Image Enhancement in Spatial Domain (Chapter 3)

Digital Image Processing

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

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

Histograms. h(r k ) = n k. p(r k )= n k /NM. Histogram: number of times intensity level rk appears in the image

1.Some Basic Gray Level Transformations

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

Chapter - 2 : IMAGE ENHANCEMENT

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

Lecture 3 - Intensity transformation

Digital Image Fundamentals

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

Lecture 4: Spatial Domain Transformations

Filtering and Enhancing Images

Computer Vision I - Basics of Image Processing Part 1

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 I

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

3.3 Histogram Processing(page 142) h(r k )=n k. p(r k )=1

ECG782: Multidimensional Digital Signal Processing

Image restoration. Restoration: Enhancement:

Types of image feature and segmentation

An introduction to image enhancement in the spatial domain.

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

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

Point and Spatial Processing

Image Processing Lecture 10

Image Processing. Cosimo Distante. Lecture 6: Monochrome and Color processing

Point operation Spatial operation Transform operation Pseudocoloring

Chapter4 Image Enhancement

Chapter 9 Object Tracking an Overview

ECG782: Multidimensional Digital Signal Processing

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

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

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

Dense Image-based Motion Estimation Algorithms & Optical Flow

Interpolation is a basic tool used extensively in tasks such as zooming, shrinking, rotating, and geometric corrections.

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

Computer Vision and Graphics (ee2031) Digital Image Processing I

Examination in Image Processing

Digital Image Processing

Digital Image Processing

(Refer Slide Time: 0:38)

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

Motivation. Intensity Levels

Image Acquisition + Histograms

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

Image Processing. Bilkent University. CS554 Computer Vision Pinar Duygulu

Motivation. Gray Levels

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

Lecture No Image Enhancement in SpaPal Domain (course: Computer Vision)

CoE4TN4 Image Processing. Chapter 5 Image Restoration and Reconstruction

Comparative Study of Linear and Non-linear Contrast Enhancement Techniques

Image Processing. Traitement d images. Yuliya Tarabalka Tel.

Computer Vision & Digital Image Processing. Image segmentation: thresholding

CS4442/9542b Artificial Intelligence II prof. Olga Veksler

Image Acquisition Image Digitization Spatial domain Intensity domain Image Characteristics

Basic Algorithms for Digital Image Analysis: a course

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

CS4733 Class Notes, Computer Vision

Image Processing. Chapter(3) Part 3:Intensity Transformation and spatial filters. Prepared by: Hanan Hardan. Hanan Hardan 1

SECTION 5 IMAGE PROCESSING 2

Chapter 3 Image Registration. Chapter 3 Image Registration

Texture. Frequency Descriptors. Frequency Descriptors. Frequency Descriptors. Frequency Descriptors. Frequency Descriptors

C2: Medical Image Processing Linwei Wang

Transcription:

Digital Image Processing Part 2: Image Enhancement in the Spatial Domain AASS Learning Systems Lab, Dep. Teknik Room T1209 (Fr, 11-12 o'clock) achim.lilienthal@oru.se Course Book Chapter 3 2011-04-06

Contents 1. Image Enhancement in the Spatial Domain 2. Grey Level Transformations 3. Histogram Processing 4. Operations Involving Multiple Images 5. Spatial Filtering

Contents Image Enhancement in the Spatial Domain

1 Image Enhancement in the Spatial Domain Image Enhancement image processing the result is supposed to be "more suitable" "more suitable" according to a certain application more suitable for visual interpretation

1 Image Enhancement in the Spatial Domain We want to create an image which is "better" in some sense. helps visual interpretation (brightening, sharpening ) subjective pre-processing for a subsequent image analysis algorithm performance metric (performance of a task) make the image more "specific" application dependent T f(x,y) g(x,y) original image (or set of images) new image

1 Image Enhancement in the Spatial Domain Spatial Domain versus Frequency Domain spatial domain direct manipulation of the pixels discussed in this lecture two types of transformations in the spatial domain: pixel brightness transformations, point processing (depend only on the pixel value itself) spatial filters, local transformations or local processing (depend on a small neighbourhood around the pixel) frequency domain: modifications of the Fourier transform discussed in the next lectures

1 Image Enhancement in the Spatial Domain Transformations in the Spatial Domain g( x, y) T[ f ( x, y)] standard approach: T is applied to a sub-image centred at (x,y) sub-image is called mask (kernel, filter, template, window) mask processing or filtering T can operate on a set of images

1 Image Enhancement in the Spatial Domain Transformations in the Spatial Domain g( x, y) T[ f ( x, y)] fill new array with weighted sum of pixel values from the locations surrounding the corresponding location in the image using the same set of weights each time

Contents Gray Level Transformations

2 Grey Level Transformations Grey Level Transformations simplest case: each pixel in the output image depends only on the corresponding pixel in the input image 1x1 neighbourhood (point processing) example: contrast stretching s T (r) s T (r)

2 Grey Level Transformations Grey Level Transformations contrast stretching thresholding

2 Grey Level Transformations Grey Level Transformations f = imread('bubbles.tif'); fp = imadjust(f, [0.1 0.9], [1.0 0.0], 0.5); imshow(fp); imadjust parameters always specified in [0,1] values below 0.1 clipped to 1.0 values above 0.9 clipped to 0.0 image intensity reversed since 0.0 < 1.0

2 Grey Level Transformations Grey Level Transformations f = imread('bubbles.tif'); fp = imadjust(f, [0.1 0.9], [1.0 0.0], 0.5); imshow(fp); imadjust parameters always specified in [0,1] values below 0.1 clipped to 1.0 values above 0.9 clipped to 0.0 image intensity reversed since 0.0 < 1.0 gamma function parameter < 1 g f

2 Grey Level Transformations Grey Level Transformations f = imread('bubbles.tif'); fp = imadjust(f, [0.1 0.9], [1.0 0.0], 0.5); imshow(fp); fp = imadjust(f, [0.55 0.9], [1.0 0.0], 3);

2 Grey Level Transformations Grey Level Transformations f = imread('bubbles.tif'); fp = imadjust(f, [0.1 0.9], [1.0 0.0], 0.5); imshow(fp); fp = imadjust(f, [0.55 0.9], [1.0 0.0], 3); imadjust gamma function parameter > 1 g f

2 Grey Level Transformations Contrast Stretching piecewise linear function power law transformation (gamma transformation) s cr

2 Grey Level Transformations Common Grey Level Transformations (Single Image) linear identity inverse (negative) power law n. power n. root logarithmic

2 Grey Level Transformations Common Grey Level Transformations (Single Image) inverse transform

2 Grey Level Transformations Contrast Stretching piecewise linear function

2 Grey Level Transformations Common Grey Level Transformations (Single Image) linear identity inverse power law (gamma) n. power n. root logarithmic... with more than one input image sum, mean statistical operations (variance, t-test )

Contents Histogram Processing

3 Histogram Processing Grey Scale Histogram shows the number of pixels per grey level f = imread('bubbles.tif'); imhist(f); % displays the histogram % histogram display default

3 Histogram Processing Grey Scale Histogram shows the number of pixels per grey level f = imread('bubbles.tif'); h1 = imhist(f); % default number of bins = 256 imhist(f,8); % number of bins = 8

3 Histogram Processing Grey Scale Histogram shows the number of pixels per grey level f = imread('bubbles.tif'); h1 = imhist(f); % default number of bins = 256 h = imhist(f,16); % number of bins = 16 hn = h/numel(f); % normalized histogram % numel num. of elements (pixels) bar(hn) % normalized histogram

3 Histogram Processing Grey Scale Histogram shows the number of pixels per grey level f = imread('bubbles.tif'); h1 = imhist(f); % default number of bins = 256 h = imhist(f,16); % number of bins = 16 hn = h/numel(f); % normalized histogram % numel num. of elements (pixels) bar(hn) % normalized histogram

3 Histogram Processing Grey Scale Histogram neutral transform

3 Histogram Processing Grey Scale Histogram neutral transform inverse transform

3 Histogram Processing Grey Scale Histogram neutral transform inverse transform logarithmic transform

3 Histogram Processing Histogram Equalization contrast / brightness adjustments sometimes need to be automatised "optimal" contrast for an image? flat histogram histogram matching to get a given shape for the histogram (see GW 3.3.2)

3 Histogram Processing Histogram Equalization consider the continuous case: probability density functions (PDFs) of s and r are related by transformation function = cumulative density function (CDF) ds dr s T (r) p s ( s) r p r ( r) s, r [0,1] dr ds T ( r) p r ( ) d 0 gray levels as random variables! p r 1 ( r) T( r) r d T( r) pr ( ) d pr ( r) p s ( s) 1 dr 0

Histogram Equalization discrete case does not generally produce a uniform PDF tends to spread the histogram enables automatic contrast stretching n n r p k k r ) ( k j j k j j r k k n n r p r T s 0 0 ) ( ) ( Histogram Processing 3

3 Histogram Processing Histogram Equalization CDF

3 Histogram Processing Histogram Equalization

3 Histogram Processing Histogram Equalization f = imread('bubbles.tif'); g = histeq(f, 256); imshow(g); f = imread('bubbles.tif'); g = histeq(f, 4); % 4 output levels imshow(g);

3 Histogram Processing Adaptive / Localized Histogram Equalization transform a single pixel by histogram equalization calculated over a square or rectangular neighbourhood original image http://www.cromwell-intl.com/3d/histogram/index.html global histogram equalization

3 Histogram Processing Adaptive / Localized Histogram Equalization transform a single pixel by histogram equalization calculated over a square or rectangular neighbourhood original image local histogram equalization (radius = 100)

3 Histogram Processing Adaptive / Localized Histogram Equalization transform a single pixel by histogram equalization calculated over a square or rectangular neighbourhood original image local histogram equalization (radius = 50)

3 Histogram Processing Adaptive / Localized Histogram Equalization transform a single pixel by histogram equalization calculated over a square or rectangular neighbourhood original image local histogram equalization (radius = 25)

3 Histogram Processing Adaptive / Localized Histogram Equalization transform a single pixel by histogram equalization calculated over a square or rectangular neighbourhood original image local histogram equalization (radius = 12)

Contents Operations Involving Multiple Images

4 Operations Involving Multiple Images Operations Between Two or More Images image subtraction Arteriography tracking

4 Operations Involving Multiple Images Image Subtraction DSA (Digital Subtraction Arteriography) mask image live image DSA image

4 Operations Involving Multiple Images Operations Between Two or More Images image subtraction Arteriography tracking image averaging (GW 3.4.2) noise reduction background modeling image subtraction

4 Operations Involving Multiple Images Image Subtraction tracking with a stationary camera background image live image difference image

4 Operations Involving Multiple Images Operations Between Two or More Images image subtraction Arteriography tracking image averaging (GW 3.4.2) noise reduction background modeling image subtraction time constant of averaging? (stability plasticity dilemma) recency weighted averaging sample-based background modelling

4 Operations Involving Multiple Images Sample-Based Background Modelling stationary camera no assumptions about the distribution required not sensitive to outliers (robust statistics) Dynamic Sample Set Representation representation as a set of measurements (samples) sample set S(t i ) evolves by replacing samples randomly p u n samples replaced between two time steps probability to have been added n t timesteps before: ln1 u t u e n t (update rate u) t 2 ln ln 1 1/ 2 u ln 2

4 Operations Involving Multiple Images Interpretation of a Dynamic Sample Set! dynamic sample sets correspond to a time scale t 1/ 2 ln 2 n ct c t : time constant p u c t T t : time interval since the last frame p u : sample set update probability Deriving Foreground Probability Images estimate background distribution calculate kernel estimator (Parzen window) background probability according to intensity density estimate foreground probability = 1 - background probability

4 Operations Involving Multiple Images Foreground Probability Images t 1/2 = 1.5 s, = 20 t 1/2 = 115 s, = 20

Contents Introduction Applications People Tracking

1 Introduction Applications Imaging in the Visible and Infrared Bands person tracking in mobile robotics

1 Example: Person Tracking in Mobile Robotics PeopleBoy (ActiveMedia PeopleBot) thermal cam: 320 240 pixels 15 Hz colour camera 320 240 pixels 15 Hz

1 Person Tracking in Mobile Robotics Thermal Camera humans have a distinctive thermal profile not influenced by changing lighting conditions works in darkness Thermo Tracer TH7302, NEC visible range: 24 C to 36 C

1 Person Tracking in Mobile Robotics Thermal Camera humans have a distinctive thermal profile not influenced by changing lighting conditions works in darkness Colour Camera improves accuracy helps to resolve occlusions dynamical colour model

1 Person Tracking in Mobile Robotics Person Tracking no occlusions

1 Person Tracking in Mobile Robotics Person Tracking distinguish persons using an elliptic contour model

1 Person Tracking in Mobile Robotics Person Tracking Measurement Model elliptic contour model! applicable if the person is far away! applicable if side-view is visible

1 Person Tracking in Mobile Robotics Person Tracking no occlusions

1 Person Tracking in Mobile Robotics Person Tracking thermal and colour information occlusions

1 Person Tracking in Mobile Robotics Person Tracking stationary webcam sample-based background subtraction (motion heat) occlusions