Image Processing Lecture 4

Similar documents
Image Enhancement in the Spatial Domain (Part 1)

TDI2131 Digital Image Processing

Digital Image Processing. Lecture # 3 Image Enhancement

Digital Image Processing

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

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

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

ECC419 IMAGE PROCESSING

What is image enhancement? Point operation

Filtering in the spatial domain (Spatial Filtering)

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

Smoothing frequency domain filters

SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS

Image Enhancement in Spatial Domain

Computer Vision. Intensity transformations

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

Design of Various Image Enhancement Techniques - A Critical Review

DIGITAL IMAGE PROCESSING Quiz exercises preparation for the midterm exam

IMAGE ENHANCEMENT IN SPATIAL DOMAIN

Smoothing frequency domain filters

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

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

from: Point Operations (Single Operands)

Review and Analysis of Image Enhancement Techniques

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

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

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

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

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

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

Image Capture and Problems

Color Transformations

Image Enhancement (from Chapter 13) (V6)

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

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

Non Linear Image Enhancement

IMAGE ENHANCEMENT - POINT PROCESSING

Digital Image Processing

Various Image Enhancement Techniques - A Critical Review

Solution for Image & Video Processing

A.V.C. COLLEGE OF ENGINEERING DEPARTEMENT OF CSE CP7004- IMAGE PROCESSING AND ANALYSIS UNIT 1- QUESTION BANK

GE 113 REMOTE SENSING. Topic 7. Image Enhancement

Fig Color spectrum seen by passing white light through a prism.

A Comparison of the Multiscale Retinex With Other Image Enhancement Techniques

DIGITAL IMAGE PROCESSING ASSIGNMENT

Spatial Domain Processing and Image Enhancement

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

Lecture 4: Spatial Domain Processing and Image Enhancement

Prof. Vidya Manian Dept. of Electrical and Comptuer Engineering

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

Lecture Topic: Image, Imaging, Image Capturing

Image Enhancement using Histogram Equalization and Spatial Filtering

Adaptive Gamma Correction With Weighted Distribution And Recursively Separated And Weighted Histogram Equalization: A Comparative Study

Image Enhancement in the Spatial Domain

1. (a) Explain the process of Image acquisition. (b) Discuss different elements used in digital image processing system. [8+8]

IMAGE PROCESSING PROJECT REPORT NUCLEUS CLASIFICATION

CSE 564: Scientific Visualization

BBM 413! Fundamentals of! Image Processing!

Filtering. Image Enhancement Spatial and Frequency Based

ANALYSIS OF IMAGE ENHANCEMENT TECHNIQUES USING MATLAB

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

Exercise questions for Machine vision

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

Histogram equalization

A Study On Preprocessing A Mammogram Image Using Adaptive Median Filter

Examples of image processing

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

Chapter 3 Image Enhancement in the Spatial Domain. Chapter 3 Image Enhancement in the Spatial Domain

High Dynamic Range Imaging

Image Enhancement contd. An example of low pass filters is:

EC-433 Digital Image Processing

INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET

Using Curves and Histograms

Digital Imaging and Multimedia Point Operations in Digital Images. Ahmed Elgammal Dept. of Computer Science Rutgers University

Understanding and Using Dynamic Range. Eagle River Camera Club October 2, 2014

Acquisition Basics. How can we measure material properties? Goal of this Section. Special Purpose Tools. General Purpose Tools

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

Funded from the Scottish Hydro Gordonbush Community Fund. Metering exposure

Postprocessing of nonuniform MRI

Canon Log Instruction Manual

How to correct a contrast rejection. how to understand a histogram. Ver. 1.0 jetphoto.net

USE OF HISTOGRAM EQUALIZATION IN IMAGE PROCESSING FOR IMAGE ENHANCEMENT

Adobe Photoshop. Levels

A Method of Using Digital Image Processing for Edge Detection of Red Blood Cells

Frequency Domain Enhancement

Pixel Classification Algorithms for Noise Removal and Signal Preservation in Low-Pass Filtering for Contrast Enhancement

Color Reproduction. Chapter 6

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

Image Processing for feature extraction

6 Color Image Processing

Image acquisition. In both cases, the digital sensing element is one of the following: Line array Area array. Single sensor

This is due to Purkinje shift. At scotopic conditions, we are more sensitive to blue than to red.

Midterm Review. Image Processing CSE 166 Lecture 10

On spatial resolution

VU Signal and Image Processing. Image Enhancement. Torsten Möller + Hrvoje Bogunović + Raphael Sahann

A moment-preserving approach for depth from defocus

Image and video processing

A Study for Applications of Histogram in Image Enhancement

WEBCAMS UNDER THE SPOTLIGHT

Transcription:

Image Enhancement Image enhancement aims to process an image so that the output image is more suitable than the original. It is used to solve some computer imaging problems, or to improve image quality. Image enhancement techniques include smoothing, sharpening, highlighting features, or normalizing illumination for display and/or analysis. Image Enhancement Approaches Image enhancement approaches are classified into two categories: Spatial domain methods: are based on direct manipulation of pixels in an image. Frequency domain methods: are based on modifying the Fourier transform of an image. Image Enhancement in the Spatial Domain The term spatial domain refers to the image plane itself, i.e. the total number of pixels composing an image. To enhance an image in the spatial domain we transform an image by changing pixel values or moving them around. A spatial domain process is denoted by the expression: = ( ) where r is the input image, s is the processed image, and T is an operator on r. The operator T is applied at each location (x, y) in r to yield the output, s, at that location. Asst. Lec. Wasseem Nahy Ibrahem Page 1

Enhancement using basic gray level transformations Basic gray level transformation functions can be divided into: Linear: e.g. image negatives and piecewise-linear transformation Non-linear: e.g. logarithm and power-law transformations Image negatives The negative of an image with gray levels in the range [, L-1] is obtained by using the following expression = 1 This type of processing is useful for enhancing white or gray detail embedded in dark regions of an image, especially when the black areas are dominant in size. An example of using negative transformation is analyzing digital mammograms as shown in the figure below. Note how much easier it is to analyze the breast tissue in the negative image. (a) (b) Figure 4.1 (a) Original digital mammogram. (b) Negative image obtained by negative transformation Asst. Lec. Wasseem Nahy Ibrahem Page 2

Piecewise-linear transformation The form of piecewise linear functions can be arbitrarily complex. Some important transformations can be formulated only as piecewise functions, for example thresholding: For any < t < the threshold transform h can be defined as: < = h ( ) = h Thresholding Transform Output Gray Level, s 24 153 12 51 51 12 153 24 Input Gray Level, r Figure 4.2 Form of thresholding transform The figure below shows an example of thresholding an image by 8. (a) Original image Figure 4.3 Thresholding by 8 (b) Result of thresholding Asst. Lec. Wasseem Nahy Ibrahem Page 3

Thresholding has another form used to generate binary images from the gray-scale images, i.e.: < = h ( ) = h Thresholding Transform Output Gray Level, s 24 153 12 51 51 12 153 24 Input Gray Level, r Figure 4.4 Form of thresholding transform to produce binary images The figure below shows a gray-scale image and its binary image resulted from thresholding the original by 12: (a) (b) Figure 4.5 Thresholding. (a) Gray-scale image. (b) Result of thresholding (a) by 12 Another more complex piecewise linear function can be defined as: Asst. Lec. Wasseem Nahy Ibrahem Page 4

= 2 11 11 < 2 > 2 Output Gray Level, s 24 225 21 195 18 165 15 135 12 15 9 75 6 45 3 15 Figure 4.6 Form of previous piecewise linear transform By applying this transform on the original image in Figure 4.3(a) we get the following output image: Piecewise Linear Transform 15 3 45 6 75 9 15 12 135 15 165 18 195 21 225 24 Input Gray Level, r Figure 4.7 Result of thresholding Piecewise linear functions are commonly used for contrast enhancement and gray-level slicing as we will see in the next lecture. Asst. Lec. Wasseem Nahy Ibrahem Page 5

Example: For the following piecewise linear chart determine the equation of the corresponding grey-level transforms: Output Gray Level, s 24 225 21 195 18 165 15 135 12 15 9 75 6 45 3 15 Piecewise Linear Transform 15 3 45 6 75 9 15 12 135 15 165 18 195 21 225 24 Input Gray Level, r Solution We use the straight line formula to compute the equation of each line segment using two points. Points of line segment 1: (,), (89,89) = 89 89 ( ) = < 9 = ( ) Points of line segment 2: (9,3), (18,21) 21 3 3 = 18 9 ( 9) = 2 15 9 18 Points of line segment 3: (181,),(,) = 181 ( 181) = > 18 Asst. Lec. Wasseem Nahy Ibrahem Page 6

The piecewise linear function is: = < 9 2 15 9 18 > 18 Log transformation The general form of the log transformation is = log(1 + ) where c is a constant, and it is assumed that. This transformation is used to expand the values of dark pixels in an image while compressing the higher-level values as shown in the figure below. Log Transform Output Gray Level, s 24 153 12 51 51 12 153 24 Input Gray Level, r Figure 4.8 Form of Log transform The figure below shows an example of applying Log transform. (a) Original image (b) Result of Log transform with c = 1 Figure 4.9 Applying log transformation Asst. Lec. Wasseem Nahy Ibrahem Page 7

Note the wealth of detail visible in transformed image in comparison with the original. Power-law transformation Power-law transformations have the basic form: = where c and y are positive constants. The power y is known as gamma, hence this transform is also called Gamma transformation. The figure below shows the form of a power-law transform with different gamma (y) values. Figure 4.1 Form of power-law transform with various gamma values (c = 1 in all cases) Power-law transformations are useful for contrast enhancement. The next figure shows the use of power-law transform with gamma values less than 1 to enhance a dark image. Asst. Lec. Wasseem Nahy Ibrahem Page 8

(a) (b) (c) (d) Figure 4.11 (a) Original MRI image of a human spine. (b)-(d) Results of applying power-law transformation with c = 1 and y =.6,.4, and.3, respectively. We note that, as gamma decreased from.6 to.4, more detail became visible. A further decrease of gamma to.3 enhanced a little more detail in the background, but began to reduce contrast ("washed-out" image). The next figure shows another example of power-law transform with gamma values greater than 1, used to enhance a bright image. Asst. Lec. Wasseem Nahy Ibrahem Page 9

(a) (b) (c) (d) Figure 4.12 (a) Original bright image. (b)-(d) Results of applying power-law transformation with c = 1 and y = 3, 4, and 5, respectively. We note that, suitable results were obtained with gamma values of 3. and 4.. The result obtained with y = 5. has areas that are too dark, in which some detail is lost. From the two examples, we note that: Dark areas become brighter and very bright areas become slightly darker. Faint (bright) images can be improved with y >1, and dark images benefit from using y <1. Asst. Lec. Wasseem Nahy Ibrahem Page 1

Image Dynamic range, Contrast and Brightness The dynamic range of an image is the exact subset of gray values {,1,,L-1} that are present in the image. The image histogram gives a clear indication on its dynamic range. Image contrast is a combination of the range of intensity values effectively used within a given image and the difference between the image's maximum and minimum pixel values. When the dynamic range of an image is concentrated on the low side of the gray scale, the image will be a dark image. When the dynamic range of an image is biased toward the high side of the gray scale, the image will be a bright (light) image. An image with low contrast has a dynamic range that will be narrow and will be centered toward the middle of the gray scale. Low-contrast images tend to have a dull, washed-out gray look, and they can result from 1) poor illumination, 2) lack of dynamic range in the imaging sensor, or 3) wrong setting of lens aperture at the image capturing stage. When the dynamic range of an image contains a significant proportion (i.e. covers a broad range) of the gray scale, the image is said to have a high dynamic range, and the image will have a high contrast. In high-contrast images, the distribution of pixels is not too far from uniform, with very few vertical lines being much higher than the others. The next figure illustrates a gray image shown in four basic gray-level characteristics: dark, light, low-contrast, and high-contrast. The right side of the figure shows the histograms corresponding to these images. Asst. Lec. Wasseem Nahy Ibrahem Page 11

Dark image Light image Lowcontrast image Highcontrast image Figure 4.13 Four basic image types: dark, light, low-contrast, high-contrast, and their corresponding histograms. Asst. Lec. Wasseem Nahy Ibrahem Page 12