Digital Image Processing. Lecture # 3 Image Enhancement

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

TDI2131 Digital Image Processing

Digital Image Processing

Image Enhancement in the Spatial Domain (Part 1)

Image Processing Lecture 4

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

Computer Vision. Intensity transformations

ECC419 IMAGE PROCESSING

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

Digital Image Processing

Image Enhancement in Spatial Domain

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

Hello, welcome to the video lecture series on Digital Image Processing.

To process an image so that the result is more suitable than the original image for a specific application.

What is image enhancement? Point operation

from: Point Operations (Single Operands)

Prof. Vidya Manian Dept. of Electrical and Comptuer Engineering

BSB663 Image Processing Pinar Duygulu. Slides are adapted from Gonzales & Woods, Emmanuel Agu Suleyman Tosun

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

Design of Various Image Enhancement Techniques - A Critical Review

Lecture 4: Spatial Domain Processing and Image Enhancement

Reading Instructions Chapters for this lecture. Computer Assisted Image Analysis Lecture 2 Point Processing. Image Processing

BBM 413 Fundamentals of Image Processing. Erkut Erdem Dept. of Computer Engineering Hacettepe University. Point Operations Histogram Processing

BBM 413 Fundamentals of Image Processing. Erkut Erdem Dept. of Computer Engineering Hacettepe University. Point Operations Histogram Processing

Non Linear Image Enhancement

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

IMAGE ENHANCEMENT - POINT PROCESSING

SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS

IMAGE PROCESSING: POINT PROCESSES

Solution for Image & Video Processing

BBM 413! Fundamentals of! Image Processing!

GE 113 REMOTE SENSING. Topic 7. Image Enhancement

Spatial Domain Processing and Image Enhancement

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

Image and Video Processing

Filtering. Image Enhancement Spatial and Frequency Based

Enhancement Techniques for True Color Images in Spatial Domain

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

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

DIGITAL IMAGE PROCESSING Quiz exercises preparation for the midterm exam

Fourier Transform. Any signal can be expressed as a linear combination of a bunch of sine gratings of different frequency Amplitude Phase

A simple Technique for contrast stretching by the Addition, subtraction& HE of gray levels in digital image

CS 376A Digital Image Processing

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

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

NON UNIFORM BACKGROUND REMOVAL FOR PARTICLE ANALYSIS BASED ON MORPHOLOGICAL STRUCTURING ELEMENT:

Review and Analysis of Image Enhancement Techniques

Various Image Enhancement Techniques - A Critical Review

The Unique Role of Lucis Differential Hysteresis Processing (DHP) in Digital Image Enhancement

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

Part I Feature Extraction (1) Image Enhancement. CSc I6716 Spring Local, meaningful, detectable parts of the image.

Image Enhancement using Histogram Equalization and Spatial Filtering

Digital Image Processing Chapter 3: Image Enhancement in the Spatial Domain

Image Enhancement by using Biogeography Based Optimization

What is an image? Bernd Girod: EE368 Digital Image Processing Pixel Operations no. 1. A digital image can be written as a matrix

CS 89.15/189.5, Fall 2015 ASPECTS OF DIGITAL PHOTOGRAPHY COMPUTATIONAL. Image Processing Basics. Wojciech Jarosz

1.Discuss the frequency domain techniques of image enhancement in detail.

IMAGE ENHANCEMENT IN SPATIAL DOMAIN

Computer Vision. Howie Choset Introduction to Robotics

Image Contrast Enhancement Techniques: A Comparative Study of Performance

Midterm Review. Image Processing CSE 166 Lecture 10

INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET

Digital Image Processing. Lecture # 8 Color Processing

ANALYSIS OF IMAGE ENHANCEMENT TECHNIQUES USING MATLAB

Introduction. Computer Vision. CSc I6716 Fall Part I. Image Enhancement. Zhigang Zhu, City College of New York

SYLLABUS CHAPTER - 2 : INTENSITY TRANSFORMATIONS. Some Basic Intensity Transformation Functions, Histogram Processing.

Examples of image processing

IMAGE PROCESSING: AREA OPERATIONS (FILTERING)

A Comparison of the Multiscale Retinex With Other Image Enhancement Techniques

CSE 564: Scientific Visualization

Digital Image Fundamentals and Image Enhancement in the Spatial Domain

Chapter 2 Image Enhancement in the Spatial Domain

Image Enhancement (from Chapter 13) (V6)

December 28, Dr. Praveen Sankaran (Department of ECE NIT Calicut DIP)

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

CS534 Introduction to Computer Vision. Linear Filters. Ahmed Elgammal Dept. of Computer Science Rutgers University

Preparing Remote Sensing Data for Natural Resources Mapping (image enhancement, rectifications )

4. Measuring Area in Digital Images

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF CSE COURSE PLAN

RESEARCH PROJECT TECHNICAL UNIVERSITY - SOFIA BACHELOR OF TELECOMUNICATIONS DEGREE FACULTY OF TELECOMMUNICATIONS

Frequency Domain Enhancement

Image Enhancement And Analysis Of Thermal Images Using Various Techniques Of Image Processing

Histogram equalization

An Advanced Contrast Enhancement Using Partially Overlapped Sub-Block Histogram Equalization

Computers and Imaging

Images and Displays. Lecture Steve Marschner 1

HISTOGRAM EXPANSION-A TECHNIQUE OF HISTOGRAM EQULIZATION

DIGITAL IMAGE PROCESSING

Digital Image Processing 3/e

CMVision and Color Segmentation. CSE398/498 Robocup 19 Jan 05

Keywords-Image Enhancement, Image Negation, Histogram Equalization, DWT, BPHE.

Transforms and Frequency Filtering

BBM 413 Fundamentals of Image Processing. Erkut Erdem Dept. of Computer Engineering Hacettepe University. Point Operations Histogram Processing

Image Processing for feature extraction

Structure of Speech. Physical acoustics Time-domain representation Frequency domain representation Sound shaping

Histogram equalization

What is an image? Images and Displays. Representative display technologies. An image is:

Chapter 12 Image Processing

Computer Graphics Fundamentals

ISSN (PRINT): ,(ONLINE): ,VOLUME-4,ISSUE-3,

Transcription:

Digital Image Processing Lecture # 3 Image Enhancement 1

Image Enhancement

Image Enhancement 3

Image Enhancement 4

Image Enhancement Process an image so that the result is more suitable than the original image for a specific application Image Enhancement Methods Spatial Domain: Direct manipulation of pixels in an image Frequency Domain: Process the image by modifying the Fourier transform of an image This Chapter Spatial Domain 5

Point/Pixel operations Types of image enhancement operations Output value at specific coordinates (x,y) is dependent only on the input value at (x,y) Local operations The output value at (x,y) is dependent on the input values in the neighborhood of (x,y) Global operations The output value at (x,y) is dependent on all the values in the input image 6

Basic Concepts Most spatial domain enhancement operations can be generalized as: g( x, y) T f ( x, y) f (x, y) = the input image g (x, y) = the processed/output image T = some operator defined over some neighbourhood of (x, y) 7

Basic Concepts A square or rectangular sub-image area centered at (x,y) Origin x (x, y) y Image f (x, y) 8

Point Processing In a digital image, point = pixel Point processing transforms a pixel s value as function of its value alone; It does not depend on the values of the pixel s neighbors. 9

Point Processing Neighborhood of size 1x1: g depends only on f at (x,y) T: Gray-level/intensity transformation/ mapping function r = gray level of f at (x,y) s = gray level of g at (x,y) s T() r 10

output value 0 127 255 A look-up table (LUT) implements a functional mapping. Point Processing using Look-up Tables 0 127 255 input value E.g.: index... 101 102 103 104 105 106... input value... 64 68 69 70 70 71... output 11

cell index contents Point Processing using Look-up Tables input a pixel with this value. 0 0 64 32. 128 128. 192 224..... 255 255 output is mapped to this value 12

POINT PROCESSING Contrast Stretching Thresholding 13

Point Processing Example: Thresholding s = 1.0 r > threshold 0.0 r <= threshold 14

Point Processing Example: Thresholding Segmentation of an object of interest from a background s = 1.0 r > threshold 0.0 r <= threshold 15

Point Processing Example: Intensity Scaling s T( r) a. r 16

Point Processing Transformations There are many different kinds of grey level transformations Three of the most common are shown here Linear Negative/Identity Logarithmic Log/Inverse log Power law n th power/n th root 17

Point Processing Example: Negative Images Reverses the gray level order For L gray levels, the transformation has the form: s ( L 1) r Negative images are useful for enhancing white or grey detail embedded in dark regions of an image 18

Point Processing Example: Negative Images 19

Logarithmic Transformations The general form of the log transformation is s c log(1 r) The log transformation maps a narrow range of low input grey level values into a wider range of output values The inverse log transformation performs the opposite transformation 20

Logarithmic Transformations Properties For lower amplitudes of input image the range of gray levels is expanded For higher amplitudes of input image the range of gray levels is compressed 21

Logarithmic Transformations Application This transformation is suitable for the case when the dynamic range of a processed image far exceeds the capability of the display device (e.g. display of the Fourier spectrum of an image) Also called dynamic-range compression / expansion 22

Logarithmic Transformations Fourier spectrum: image values ranging from 0 to 1.5x10 6 The result of log transformation with c = 1 23

Power Law Transformations Power law transformations have the following form s c r Map a narrow range of dark input values into a wider range of output values or vice versa Varying γ gives a whole family of curves 24

For < 1: For > 1: expand Power Law Transformations Expands values of dark pixels, compress values of brighter pixels Compresses values of dark pixels, values of brighter pixels If =1 & c=1: Identity transformation (s = r) A variety of devices (image capture, printing, display) respond according to a power law and need to be corrected Gamma ( ) correction The process used to correct the power-law response phenomena 25

Power Law Transformations: Gamma Correction 26

Power Law Transformations Contrast Enhancement The images to the right show a magnetic resonance (MR) image of a fractured human spine 27

Transformed Intensities Power Law Transformations γ = 0.6 Contrast Enhancement 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0 0.2 0.4 0.6 0.8 1 Old Intensities 28

Transformed Intensities Power Law Transformations γ = 0.4 Contrast Enhancement 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0 0.2 0.4 0.6 0.8 1 Original Intensities 29

Transformed Intensities Power Law Transformations γ = 0.3 Contrast Enhancement 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0 0.2 0.4 0.6 0.8 1 Original Intensities 30

Power Law Transformations Contrast Enhancement MR image of Result after Result after Result after fractured human spine Power law transformation Power law transformation Power law transformation c = 1, = 0.6 c = 1, = 0.4 c = 1, = 0.3 31

Power Law Transformations Contrast Enhancement When the γ is reduced too much, the image begins to reduce contrast to the point where the image started to have very slight wash-out look. 32

Power Law Transformations Contrast Enhancement Image has a washed-out appearance needs γ > 1 33

Image Enhancement Aerial Image Result of Power law transformation c = 1, = 3.0 (suitable) Result of Power law transformation c = 1, = 4.0 (suitable) Result of Power law transformation c = 1, = 5.0 (high contrast, some regions are too dark) 34

Piecewise Linear Transformation Functions Contrast stretching Intensity level slicing 35

Contrast Stretching Objective Increase the dynamic range of the gray levels for low contrast images Rather than using a well defined mathematical function we can use arbitrary user-defined transforms If r 1 = s 1 & r 2 = s 2, no change in gray levels If r 1 = r 2, s 1 = 0 & s 2 = L-1, then it is a threshold function. The resulting image is binary 36

Contrast Stretching r 1 = r min & s 1 = 0 r 2 = r max & s 2 = L-1 37

Contrast Stretching 38

Grey Level Slicing Highlights a specific range of gray levels in an image Similar to thresholding Other levels can be suppressed or maintained Useful for highlighting features in an image 39

Grey Level Slicing Highlights range [A,B] of gray levels and reduces all others to a contrast level Highlights range [A,B] but preserves all other gray levels 40

Grey Level Slicing 41

Bit Plane Slicing Often by isolating particular bits of the pixel values in an image we can highlight interesting aspects of that image Higher-order bits usually contain most of the significant visual information Lower-order bits contain subtle details

8 bit planes Bit-plane 7 Bit-plane 6 Bitplane 5 Bitplane 2 Bitplane 4 Bitplane 1 Bitplane 3 Bitplane 0

Bit Plane Slicing Example [10000000] [01000000] [00010000] [00100000] [00001000] [00000010] [00000100] [00000001]

Bit Plane Slicing (cont )

Bit Plane Slicing (cont ) Reconstructed image using only bit planes 8 and 7 Reconstructed image using only bit planes 8, 7 and 6 Reconstructed image using only bit planes 7, 6 and 5

Histogram of a Grayscale Image Let I be a 1-band (grayscale) image. I(r,c) is an 8-bit integer between 0 and 255. Histogram, h I, of I: a 256-element array, h I h I (g) = number of pixels in I that have value g. for g = 0,1, 2, 3,, 255 47

HISTOGRAM A discrete function h(r k )=n k r k is the k th gray level n k is the number of pixels having gray level r k in the image Ex: n k 0 1 2 3 1 3 3 0 0 1 3 0 3 0 3 1 6 5 4 3 2 1 0 1 2 3 r k 48

49 UNIQUENESS

Histogram of a Grayscale Image Histogram of a digital image with gray levels in the range [0,L-1] is a discrete function Where r k = k th gray level h( r ) k n k n k = number of pixels in the image having gray level r k h(r k ) = histogram of an image having r k gray levels 50

Normalized Histogram Dividing each of histogram at gray level r k by the total number of pixels in the image, n p( r ) n / n for k 0,1,, L 1 k k p(r k ) gives an estimate of the probability of occurrence of gray level r k The sum of all components of a normalized histogram is equal to 1 51

Histogram of a Grayscale Image 16-level (4-bit) image lower RHC: number of pixels with intensity g black marks pixels with intensity g 52

Histogram of a Grayscale Image Black marks pixels with intensity g Plot of histogram: number of pixels with intensity g 53

Histogram of a Grayscale Image Black marks pixels with intensity g Plot of histogram: number of pixels with intensity g 54

Histogram of a Grayscale Image hi g the number of pixels in I with graylevel g. 55

Histogram of a Color Image If I is a 3-band image then I(r,c,b) is an integer between 0 and 255. I has 3 histograms: h R (g) = # of pixels in I(:,:,1) with intensity value g h G (g) = # of pixels in I(:,:,2) with intensity value g h B (g) = # of pixels in I(:,:,3) with intensity value g 56

Histogram of a Color Image There is one histogram per color band R, G, & B. Luminosity histogram is from 1 band = (R+G+B)/3 57

Histogram of a Color Image 58

Histogram of a Color Image 59

Histogram: Example Dark Image How would the histograms of these images look like? Bright Image 60

Histogram: Example Dark image Components of histogram are concentrated on the low side of the gray scale Bright image Components of histogram are concentrated on the high side of the gray scale 61

62 HISTOGRAM INSIGHT INTO CONTRAST

Histogram: Example Low Contrast Image How would the histograms of these images look like? High Contrast Image 63

Histogram: Example Low contrast image Histogram is narrow and centered toward the middle of the gray scale High contrast image Histogram covers broad range of the gray scale and the distribution of pixels is not too far from uniform with very few vertical lines being much higher than the others 64

Contrast Stretching Improve the contrast in an image by `stretching' the range of intensity values it contains to span a desired range of values, e.g. the the full range of pixel values 65

0 127 255 Contrast Stretching If r max and r min are the maximum and minimum gray level of the input image and L is the total gray levels of output image, the transformation function for contrast stretch will be s T r r r L 1 ( ) ( min ) rmax rmin L 0 r min 127 r max 255 66

Contrast Stretching 67

Histogram Equalization Histogram equalization re-assigns the intensity values of pixels in the input image such that the output image contains a uniform distribution of intensities 68

69 HISTOGRAM EQUALIZATION

AERIAL PHOTOGRAPH OF THE PENTAGON 70 Resulting image uses more of dynamic range. Resulting histogram almost, but not completely, flat.

Material in these slides has been taken from, the following resources Acknowledgements Digital Image Processing, Rafael C. Gonzalez & Richard E. Woods, Addison-Wesley, 2008 71