6/9/2015Digital Image Processing1. 2 Example Histogram.

Slides:



Advertisements
Similar presentations
Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
Advertisements

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.
Spatial Filtering.
Local Enhancement Histogram processing methods are global processing, in the sense that pixels are modified by a transformation function based on the gray-level.
Chapter 3 Image Enhancement in the Spatial Domain.
Lecture 6 Sharpening Filters
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
Image Enhancement in the Spatial Domain II Jen-Chang Liu, 2006.
Digital Image Processing
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
Chapter 3: Image Enhancement in the Spatial Domain
Digital Image Processing
MSU CSE 803 Stockman Linear Operations Using Masks Masks are patterns used to define the weights used in averaging the neighbors of a pixel to compute.
Image Enhancement.
Image Analysis Preprocessing Arithmetic and Logic Operations Spatial Filters Image Quantization.
Lecture 2. Intensity Transformation and Spatial Filtering
Chapter 3 Image Enhancement in the Spatial Domain.
ECE 472/572 - Digital Image Processing Lecture 4 - Image Enhancement - Spatial Filter 09/06/11.
Chapter 3 (cont).  In this section several basic concepts are introduced underlying the use of spatial filters for image processing.  Mainly spatial.
Chap2 Image enhancement (Spatial domain)
Chapter 10: Image Segmentation
Presentation Image Filters
Spatial-based Enhancements Lecture 3 prepared by R. Lathrop 10/99 updated 10/03 ERDAS Field Guide 6th Ed. Ch 5: ;
Digital Image Processing
Computer Vision – Enhancement(Part II) Hanyang University Jong-Il Park.
Spatial Filtering: Basics
Chapter 3 Image Enhancement in the Spatial Domain.
Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
Introduction to Image Processing Grass Sky Tree ? ? Sharpening Spatial Filters.
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering Prof. Charlene Tsai.
Image Restoration Chapter 5.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods  Process an image so that the result will be more suitable.
Chapter 5: Neighborhood Processing
Lecture 5 Mask/Filter Transformation 1.The concept of mask/filters 2.Mathematical model of filtering Correlation, convolution 3.Smoother filters 4.Filter.
Spatial Filtering.
Ch5 Image Restoration CS446 Instructor: Nada ALZaben.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations.
Image Subtraction Mask mode radiography h(x,y) is the mask.
COMP322/S2000/L171 Robot Vision System Major Phases in Robot Vision Systems: A. Data (image) acquisition –Illumination, i.e. lighting consideration –Lenses,
Sharpening Filters To highlight fine detail or to enhance blurred detail. –smoothing ~ integration –sharpening ~ differentiation Categories of sharpening.
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering March 9, 2004 Prof. Charlene Tsai.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
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 Image Processing Image Enhancement in Spatial Domain
Digital Filters. What are they?  Local operation (neighborhood operation in GIS terminology) by mask, window, or kernel (different words for the same.
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
Sharpening Spatial Filters ( high pass)  Previously we have looked at smoothing filters which remove fine detail  Sharpening spatial filters seek to.
Digital Image Processing CSC331
Lecture Seven Figures from Gonzales and Woods, Digital Image Processing, Copyright 2002.
Image Processing Lab Section 28/3/2016 Prepared by Mahmoud Abdelsatar Demonstrator at IT Dep. Faculty of computers and information Assuit University.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Image Enhancement in the Spatial Domain.
Image Subtraction Mask mode radiography h(x,y) is the mask.
Fundamentals of Spatial Filtering:
Digital Image Processing CSC331
ECE 692 – Advanced Topics in Computer Vision
Filtering – Part I Gokberk Cinbis Department of Computer Engineering
IMAGE PROCESSING INTENSITY TRANSFORMATION AND SPATIAL FILTERING
Digital Image Processing
CIS 350 – 3 Image ENHANCEMENT SPATIAL DOMAIN
Image Enhancement in the Spatial Domain
Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
Department of Computer Engineering
Lecture 7 Spatial filtering.
Digital Filters.
Image Enhancement in the Spatial Domain
Presentation transcript:

6/9/2015Digital Image Processing1

2 Example Histogram

3 Example

4 Dark image Bright image Components of histogram are concentrated on the low side of the gray scale. Components of histogram are concentrated on the high side of the gray scale.

5 Example Low-contrast image High-contrast image histogram is narrow and centered toward the middle of the gray scale 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

6 Contrast stretching through histogram

7

6/9/2015Digital Image Processing8 Lecture 9: Image Enhancement in Spatial Domain Spatial Filtering: Order statistic filtering and Image Sharpening

6/9/2015Digital Image Processing9 Local enhancement through spatial filtering  The output intensity value at (x,y) depends not only on the input intensity value at (x,y) but also on the specified number of neighboring intensity values around (x,y)  Spatial masks (also called window, filter, kernel, template) are used and convolved over the entire image for local enhancement (spatial filtering)  The size of the masks determines the number of neighboring pixels which influence the output value at (x,y)  The values (coefficients) of the mask determine the nature and properties of enhancing technique

6/9/2015Digital Image Processing10 Local enhancement through spatial filtering The mechanics of spatial filtering For an image of size M x N and a mask of size m x n The resulting output gray level for any coordinates x and y is given by

6/9/2015Digital Image Processing11 Basics of spatial filtering  Given the 3×3 mask with coefficients: w 1, w 2,…, w 9  The mask cover the pixels with gray levels: z 1, z 2,…, z 9  z gives the output intensity value for the processed image (to be stored in a new array) at the location of z 5 in the input image

6/9/2015Digital Image Processing12 Basics of spatial filtering Mask operation near the image border Problem arises when part of the mask is located outside the image plane; to handle the problem: 1.Discard the problem pixels (e.g. 512x512 input 510x510 output if mask size is 3x3) 2.Zero padding: expand the input image by padding zeros (512x512 input 514x514 output ) –Zero padding is not good create artificial lines or edges on the border ; 3.We normally use the gray levels of border pixels to fill up the expanded region (for 3x3 mask). For larger masks a border region equal to half of the mask size is mirrored on the expanded region.

6/9/2015Digital Image Processing13 Mask operation near the image border

6/9/2015Digital Image Processing14 Spatial filtering for Smoothing  For blurring/noise reduction;  Blurring is usually used in preprocessing steps, e.g., to remove small details from an image prior to object extraction, or to bridge small gaps in lines or curves  Equivalent to Low-pass spatial filtering in frequency domain because smaller (high frequency) details are removed based on neighborhood averaging (averaging filters) Implementation: The simplest form of the spatial filter for averaging is a square mask (assume m×m mask) with the same coefficients 1/m 2 topreserve the gray levels (averaging). Applications: Reduce noise; smooth false contours Side effect: Edge blurring

6/9/2015Digital Image Processing15 Smoothing filters

6/9/2015Digital Image Processing16 Spatial filtering for Smoothing (example)

6/9/2015Digital Image Processing17 Spatial filtering for Smoothing (example) Original image size: 500 x 500 Smoothed by 5 x 5 box filter Smoothed by 15 x 15 box filter Smoothed by 3 x 3 box filter Smoothed by 9 x 9 box filter Smoothed by 35 x 35 box filter

6/9/2015Digital Image Processing18 Spatial filtering for Smoothing (example)

6/9/2015Digital Image Processing19 Order-statistics filtering  Nonlinear spatial filters  Output is based on order of gray levels in the masked area (sub-image)  Examples: Median filtering, Max & Min filtering Median filtering  Assigns the mid value of all the gray levels in the mask to the center of mask;  Particularly effective when –the noise pattern consists of strong, spiky components (impulse noise, salt-and-pepper –edges are to be preserved –Force points with distinct gray levels to be more like their neighbors

6/9/2015Digital Image Processing20 Median Filtering

6/9/2015Digital Image Processing21 Median Filtering (example)

6/9/2015Digital Image Processing22 Spatial filtering for image sharpening Background: to highlight fine detail in an image or to enhance blurred detail Applications: electronic printing, medical imaging, industrial inspection, autonomous target detection (smart weapons) Foundation:  Blurring/smoothing is performed by spatial averaging (equivalent to integration)  Sharpening is performed by noting only the gray level changes in the image that is the differentiation

6/9/2015Digital Image Processing23 Spatial filtering for image sharpening Operation of Image Differentiation  Enhance edges and discontinuities (magnitude of output gray level >>0)  De-emphasize areas with slowly varying gray-level values (output gray level: 0) Mathematical Basis of Filtering for Image Sharpening  First-order and second-order derivatives  Approximation in discrete-space domain  Implementation by mask filtering

6/9/2015Digital Image Processing24 First and second order derivatives

6/9/2015Digital Image Processing25 Example for discrete derivatives

6/9/2015Digital Image Processing26 Various situations encountered for derivatives

6/9/2015Digital Image Processing27 Various situations encountered for derivatives  Ramps or steps in the 1D profile normally characterize the edges in an image  f ″ is nonzero at the onset and end of the ramp: produce thin (double) edges  f ′ is nonzero along the entire ramp produce thick edges

6/9/2015Digital Image Processing28 Various situations encountered for derivatives  Thin lines  Isolated point

6/9/2015Digital Image Processing29 Comparison between f" and f´  f´ generally produce thicker edges in an image  f" have a stronger response to file detail  f´ generally have a stronger response to a gray-level step  f" produces a double response at step changes in gray level  f" responses given similar changes in gray-level values line > point > step  For image enhancement, f" is generally better suited than f´  Major application of f´ is for edge extraction; f´ used together with f" results in impressive enhancement effect

6/9/2015Digital Image Processing30 Laplacian for image enhancement

6/9/2015Digital Image Processing31 Laplacian for image enhancement

6/9/2015Digital Image Processing32 Laplacian for image enhancement

6/9/2015Digital Image Processing33 Laplacian for image enhancement (example)

6/9/2015Digital Image Processing34 Laplacian for image enhancement (example)