Image Enhancement.

Slides:



Advertisements
Similar presentations
Digital Image Processing
Advertisements

Grey Level Enhancement Contrast stretching Linear mapping Non-linear mapping Efficient implementation of mapping algorithms Design of classes to support.
Spatial Filtering (Chapter 3)
Topic 6 - Image Filtering - I DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Image Processing Lecture 4
CS & CS Multimedia Processing Lecture 2. Intensity Transformation and Spatial Filtering Spring 2009.
Chapter 3 Image Enhancement in the Spatial Domain.
Lecture 6 Sharpening Filters
Chapter - 2 IMAGE ENHANCEMENT
EE 4780 Image Enhancement. Bahadir K. Gunturk2 Image Enhancement The objective of image enhancement is to process an image so that the result is more.
Digital Image Processing
6. Gray level enhancement Some of the simplest, yet most useful, image processing operations involve the adjustment of brightness, contrast or colour in.
Digital Image Processing
Chapter 4: Image Enhancement
BYST Eh-1 DIP - WS2002: Enhancement in the Spatial Domain Digital Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department Image Enhancement.
Image Enhancement by Modifying Gray Scale of Individual Pixels
Digital image processing Chapter 6. Image enhancement IMAGE ENHANCEMENT Introduction Image enhancement algorithms & techniques Point-wise operations Contrast.
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
Digital Image Processing
6/9/2015Digital Image Processing1. 2 Example Histogram.
Multimedia Data Introduction to Image Processing Dr Mike Spann Electronic, Electrical and Computer.
Image Analysis Preprocessing Arithmetic and Logic Operations
3. Introduction to Digital Image Analysis
Low Pass Filtering Spatial frequency is a measure of how rapidly brightness or colour varies as we traverse an image. Figure 7.11a shows that an image.
Digital Image Processing Chapter 4: Image Enhancement in the Frequency Domain.
Digital Image Processing
Image Restoration.
Image Analysis Preprocessing Arithmetic and Logic Operations Spatial Filters Image Quantization.
Lecture 2. Intensity Transformation and Spatial Filtering
ECE 472/572 - Digital Image Processing Lecture 4 - Image Enhancement - Spatial Filter 09/06/11.
CS 376b Introduction to Computer Vision 02 / 26 / 2008 Instructor: Michael Eckmann.
Presentation Image Filters
Medical Image Analysis Image Enhancement Figures come from the textbook: Medical Image Analysis, by Atam P. Dhawan, IEEE Press, 2003.
Image Processing Image Histogram Lecture
Multimedia Data Introduction to Image Processing Dr Sandra I. Woolley Electronic, Electrical.
EE663 Image Processing Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering Prof. Charlene Tsai.
Intensity Transformations or Translation in Spatial Domain.
AdeptSight Image Processing Tools Lee Haney January 21, 2010.
MULTIMEDIA TECHNOLOGY SMM 3001 MEDIA - IMAGES. Processing digital Images digital images are often processed using “digital filters” digital images are.
Digital Image Processing CSC331 Image Enhancement 1.
Image processing Fourth lecture Image Restoration Image Restoration: Image restoration methods are used to improve the appearance of an image.
Chapter 5: Neighborhood Processing
Image Subtraction Mask mode radiography h(x,y) is the mask.
Chapter 5: Neighborhood Processing 5.1 Introduction
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering March 9, 2004 Prof. Charlene Tsai.
1 CMPB 345: IMAGE PROCESSING DISCRETE TRANSFORM 2.
Computer Graphics & Image Processing Chapter # 4 Image Enhancement in Frequency Domain 2/26/20161.
1 Image Enhancement Introduction  Spatial domain techniques Point operations Histogram equalization and matching Applications of histogram-based enhancement.
EE 7730 Image Enhancement. Bahadir K. Gunturk2 Image Enhancement The objective of image enhancement is to process an image so that the result is more.
Digital Filters. What are they?  Local operation (neighborhood operation in GIS terminology) by mask, window, or kernel (different words for the same.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Lecture 10 Chapter 5: Image Restoration. Image restoration Image restoration is the process of recovering the original scene from the observed scene which.
Image Enhancement Band Ratio Linear Contrast Enhancement
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Medical Image Analysis
Image Subtraction Mask mode radiography h(x,y) is the mask.
IMAGE ENHANCEMENT TECHNIQUES
Digital Image Processing
Histogram Histogram is a graph that shows frequency of anything. Histograms usually have bars that represent frequency of occuring of data. Histogram has.
Chapter 8, Exploring the Digital Domain
Image Enhancement in the Spatial Domain
Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
Spatial operations and transformations
Digital Image Processing
Histogram The histogram of an image is a plot of the gray _levels values versus the number of pixels at that value. A histogram appears as a graph with.
Image Enhancement in the Spatial Domain
Spatial operations and transformations
Presentation transcript:

Image Enhancement

CONTENT Overview Gray Scale Modification Image Sharpening Mapping Equations Histogram Modification Image Sharpening Image Smoothing

Overview Are employed to emphasize, sharpen & smooth image features for display and analysis Image enhancement is the process of applying these techniques to facilitate the development of a solution to a computer imaging problem Operate in the spatial domain, manipulating the pixel data, or in frequency domain, by modifying the spectral components (figure 8.1.2) Some used both

Type of techniques :- Point operations – where each pixel is modified according to a particular equation that is not dependent on other pixel values Mask operations - where each pixel is modified according to the values in a small neighborhood Global operations – where all the pixel values in the image are taken into consideration Spatial domain processing include all three but freq domain use global operations

Gray Scale Modification Also called gray level scaling or gray level transformation, is the process of taking the original gray level values and changing them to improve image Relates to improving image contrast and brightness Image contrast is a measure of the distribution and range of gray levels – the difference between the brightest & darkest pixel values and how the intermediate values are arranged Image brightness refers to the overall average, or mean, pixel value in the image

Mapping Equations One method to modify gray levels is a mapping equation mapping equation changes the pixel’s (gray level) values based on a mathematical function that uses brightness values as input The outputs of the equation are the enhanced pixel values Mapping is in the category of point operations

Primary operations applied to gray scale image are to compress or stretch it Compress that are of little interest to us, and stretch where desire more information When the slope of the line is 0 – 1, gray level compression If the slope is greater than 1, gray level stretching See example 8.2.1

Figure 8. 2-2 Gray-level Stretching with Clipping at Both Ends Figure 8.2-2 Gray-level Stretching with Clipping at Both Ends. a) The mapping equation, b) the original image, c) the modified image with the stretch gray levels E[I(r,c)] Modified Gray Level Values 80 180 255 255 I(r,c) – Original Gray Level Values b a c

Histogram Modification Use similar function which referred to as histogram modification Focus on histogram shape and range Histogram with a small spread has low contrast, histogram with a wide spread has high contrast Histogram clustered at the high end corresponds to a bright image Examination of histogram is useful tools, as it contains information of gray level distribution that easy to see the modifications that may improve

Figure 8. 2-10 Histogram Stretching with Clipping Figure 8.2-10 Histogram Stretching with Clipping. a) Original image, b) histogram of original image, c) image after histogram stretching with out clipping, d) histogram of image (c), e) image after histogram stretching with clipping 1% of the values at the high and low ends a b e c f d

Figure 8.2-11 Histogram Shrinking a) Original image, b) histogram of image (a), c) image after shrinking the histogram to the range [75,175], d) histogram of image (c) a b c d

Figure 8. 2-12 Histogram Slide Figure 8.2-12 Histogram Slide. The original image for these operations is the image from 8.2-11c that had undergone a histogram shrink process. a) the resultant image from sliding the histogram down up 50, b) the histogram of image (a) , c) the resultant image from sliding the histogram down by 50, b) the histogram of image (c). a b d c

Histogram equalization is an effective techn for improving the appearance of a poor image The function is the same as histogram stretch but often provides more visually pleasing results across a wider range of images Involves probability theory which treat as the probability distribution of gray levels

Histogram equalization process consists 4 steps: Find the running sum of the histogram values Normalize the values from step (1) by dividing by the total number of pixels Multiply the values from step (2) by the maximum gray level value and round Map the gray level values to the results See example 8.2.6

IMAGE SHARPENING Image sharpening deals with enhancing detail information in an image, typically edges and textures Detail information is typically in the high spatial frequency information, so these methods include some form of highpass filtering Many image sharpening algorithms consist 3:- Extract high frequency information Combine the high frequency image with original image to emphasize image detail maximizing image contrast via histogram manipulation

High Frequency Emphasis Rapidly changing brightness values – high freq Slowly changing brightness values – low freq Constant brightness – zero frequency High Frequency Emphasis Using a high boost spatial filter This mask is convolved with the image & value x determines the amount of low frequency information retained in the resulting image Value 8 – highpass filter (output image will contain only the edges) Larger values will retain more of ori image Less than 8 – negative of ori

High Boost Spatial Filtering a) Original image

b) results of performing a highboost spatial filter with a 3x3 mask and x = 6

c) histogram stretched version of (b) , note the image is a negative of the original,

d) results of performing a highboost spatial filter with a 3x3 mask and x = 8

e) histogram stretched version of (d), note the image contains edge information only

, f) results of performing a highboost spatial filter with a 3x3 mask and x = 12

g) histogram stretched version of (f)

high boost mask can be extended with -1’s and a corresponding increase in the value x Larger masks will emphasize the edges more (make them wider), and help to mitigate the effects of any noise in original image If we create NxN mask, value x is NxN-1, 5x5-1=24

Directional Difference Filters Similar to high boost filter but emphasize the edges in a specific direction This filters also called emboss filters, due to the effect they create on the output image

Directional Difference Filters Directional Difference Filters. a) Original image, b) image sharpened by adding the difference filter result to the original image, followed by a histogram stretch,

c) 3x3 filter result with the +1 and -1 in the horizontal direction which emphasizes vertical lines, d) 3x3 filter result with the +1 and -1 in the vertical direction which emphasizes horizontal lines,

e) 7x7 filter result with the +1 and -1 in the horizontal direction which emphasizes vertical lines, d) 7x7 filter result with the +1 and -1 in the vertical direction which emphasizes horizontal lines

Homomorphic Filtering Digital images are created from optical images Optical images consist of 3 primary components, lighting & reflectance component Lighting component results from lighting conditions present when image is captured, & can change as the lighting conditions change reflectance component results from the way objects in the image reflect light & are determined by properties of object

Many applications it is useful to enhance reflectance component, while reducing the contribution from the lighting component Homomorphic filtering is a freq domain filtering process that compresses the brightness (from the lighting conditions), while enhancing the contrast (from the reflectance)

Image model is as follows: I(r,c) = L(r,c) R(r,c) where L(r,c) represents the contribution of lighting conditions, & R(r,c) represents the contribution of reflectance properties of objects Assumes that L(r,c) consists of primarily slow spatial changes (low spatial frequencies), & is responsible for overall range of brightness Assumptions for R(r,c), consists primarily of high spatial frequency information

Consists of 5 steps: A natural log transform (base e) the Fourier transform Filtering the inverse Fourier transform, and the inverse log function – the exponential

Decouple the L(r,c) & R(r,c) components Puts the image into freq domain Perform filtering Inverse transforms (step 2) Inverse step 1

Unsharp Masking Used by photographers to enhance image It sharpens image by subtracting a blurred (lowpass) version of original image This was accomplished during film development by superimposing a blurred negative onto corresponding film to produce a sharper result The process is similar to adding a detail enhanced (highpass) version to original To improve image contrast, include histogram modification as part of unsharp masking enhancement algorithm

Original image is lowpass filtered, followed by histogram shrink Resultant image is subtracted from original image Histogram stretch to restore image contrast

Different ranges of histogram shrinking

Image Smoothing Used to give image softer or special effect, or to mitigate noise effects For spatial domain is by considering a pixel and its neighbors and eliminating any extreme values with median or mean filters In freq domain, is accomplished by some form of lowpass filtering

Equivalent convolution mask can be approximated with Moore-Penrose Some form of average (mean) filters The coefficients are all positive, unlike highpass filters Some common spatial convolution masks, where first 2 are standard arithmetic mean filters & last 2 are approximations to Gaussian filters