Enhancement.

Slides:



Advertisements
Similar presentations
Filters, Edge Detection and Sharpening Francesca Pizzorni Ferrarese 28/04/2010.
Advertisements

Basis beeldverwerking (8D040) dr. Andrea Fuster dr. Anna Vilanova Prof.dr.ir. Marcel Breeuwer Filtering.
Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
Spatial Filtering (Chapter 3)
Topic 6 - Image Filtering - I DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Spatial Filtering.
Image Filtering. Outline Outline Concept of image filter  Focus on spatial image filter Various types of image filter  Smoothing, noise reductions 
Chapter 3 Image Enhancement in the Spatial Domain.
Lecture 6 Sharpening Filters
Sliding Window Filters and Edge Detection Longin Jan Latecki Computer Graphics and Image Processing CIS 601 – Fall 2004.
Digital Image Processing
2007Theo Schouten1 Enhancements Techniques for editing an image such that it is more suitable for a specific application than the original image. Spatial.
Digital Image Processing
Digital Image Processing
Image Enhancement.
Image Analysis Preprocessing Arithmetic and Logic Operations Spatial Filters Image Quantization.
Image Filtering. Problem! Noise is a problem, even in images! Gaussian NoiseSalt and Pepper Noise.
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.
Introduction to Image Processing Grass Sky Tree ? ? Review.
Presentation Image Filters
Spatial-based Enhancements Lecture 3 prepared by R. Lathrop 10/99 updated 10/03 ERDAS Field Guide 6th Ed. Ch 5: ;
Spatial Filtering: Basics
Digital Image Processing Image Enhancement Part IV.
Digital Image Processing
University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell Image processing.
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering Prof. Charlene Tsai.
Lecture 03 Area Based Image Processing Lecture 03 Area Based Image Processing Mata kuliah: T Computer Vision Tahun: 2010.
G52IVG, School of Computer Science, University of Nottingham 1 Edge Detection and Image Segmentation.
Chapter 5: Neighborhood Processing
Digital Image Processing (Digitaalinen kuvankäsittely) Exercise 2
Spatial Filtering.
Spatial Filtering (Applying filters directly on Image) By Engr. Muhammad Saqib.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations.
COMP322/S2000/L171 Robot Vision System Major Phases in Robot Vision Systems: A. Data (image) acquisition –Illumination, i.e. lighting consideration –Lenses,
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 15/16 – TP7 Spatial Filters Miguel Tavares Coimbra.
CSE 6367 Computer Vision Image Operations and Filtering “You cannot teach a man anything, you can only help him find it within himself.” ― Galileo GalileiGalileo.
Image enhancement Last update Heejune Ahn, SeoulTech.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities May 2, 2005 Prof. Charlene Tsai.
Digital Image Processing Part 3 Spatial Domain Processing.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Image Enhancement by Spatial Domain Filtering
Sharpening Spatial Filters ( high pass)  Previously we have looked at smoothing filters which remove fine detail  Sharpening spatial filters seek to.
Sliding Window Filters Longin Jan Latecki October 9, 2002.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Image Enhancement in the Spatial Domain.
Environmental Remote Sensing GEOG 2021
Miguel Tavares Coimbra
Image Filtering Spatial filtering
Edge Detection Phil Mlsna, Ph.D. Dept. of Electrical Engineering Northern Arizona University.
Fundamentals of Spatial Filtering:
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
IMAGE ENHANCEMENT TECHNIQUES
ECE 692 – Advanced Topics in Computer Vision
Filtering – Part I Gokberk Cinbis Department of Computer Engineering
Spatial Filtering - Enhancement
Digital Image Processing
Computer Vision Lecture 9: Edge Detection II
Lecture 10 Image sharpening.
CIS 350 – 3 Image ENHANCEMENT SPATIAL DOMAIN
Image Enhancement in the Spatial Domain
Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
Geometric and Point Transforms
Digital Image Processing Week IV
Linear Operations Using Masks
Department of Computer Engineering
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
Digital Filters.
Image Enhancement in the Spatial Domain
Presentation transcript:

Enhancement

The basic goal of image enhancement is to process the image so that we can view and assess the visual information it contains with greater clarity. Image enhancement, therefore, is rather subjective because it depends strongly on the specific information the user is hoping to extract from the image. The main goal of image enhancement is to process an image in some way so as to render it more visually acceptable or pleasing. The removal of noise, the sharpening of image edges and the ‘soft focus’ (blurring) effect so often favoured in romantic photographs are all examples of popular enhancement techniques.

Enhancement via image filtering These and other enhancement operations can be achieved through the process of spatial domain filtering. Thus, spatial domain filtering simply indicates that the filtering process takes place directly on the actual pixels of the image itself. Filters act on an image to change the values of the pixels in some specified way and are generally classified into two types: linear and nonlinear. Linear filters are also know as convolution filters as they can be represented using a matrix multiplication. Thresholding and image equalisation are examples of nonlinear operations, as is the median filter

Pixel neighbourhoods

An importantmeasure in images is the concept of connectivity. When we speak of 4-connectivity, only pixels which are N, W, E, S of the given pixel are connected. However, if, in addition, the pixels on the diagonals must also be considered, then we have 8-connectivity (i.e. N, NW, W, NE, SE, E, SW, S are all connected.

Filter kernels and the mechanics of linear filtering The specific linear combination of the neighbouring pixels that is taken is determined by the filter kernel (often called a mask). Filtering proceeds by successively positioning the kernel so that the location of its centre pixel coincides with the location of each target pixel, each time the filtered value being calculated by the chosen weighted combination of the neighbourhood pixels. The mechanics of linear spatial filtering actually express in discrete forma process called convolution

output image

Filtering for noise removal

We will now investigate the application of a number of different filters for removing typical noise, such as additive ‘salt and pepper’ and Gaussian noise. we first need to consider generation of some example images with noise added so that we can compare the effectiveness of different approaches to noise removal

Mean / Average filtering

Median filtering

Rank filtering Rank filters in image processing sort (rank) the greyvalues in some neighbourhood of every pixel in ascending order, and replace the centre pixel by some value in the sorted list of greyvalues. Define the neighbourhood of the target pixel (NxN). Rank them in ascending order (first is lowest value, (NxN)this highest value). Choose the order of the filter (from 1 to N). Set the filtered value to be equal to the value of the chosen rank pixel.

Gaussian filtering Applying the Gaussian filter has the effect of smoothing the image, but it is used in a way that is somewhat different to the mean filter. First, the degree of smoothing is controlled by the choice of the standard deviation parameter σ, not by the absolute value of the kernel size (which is the case with the mean filter). Second, the Gaussian function has a rather special property, namely that its Fourier transform is also a Gaussian function, which makes it very convenient for the frequency-domain analysis of filters

A Gaussian function with a large value of σis an example of a so-called low-pass filter in which the high spatial frequency content (i.e. sharp edge features) of an image is suppressed.

Filtering for edge detection

First-order edge detection Three of the most common (Roberts, Prewitt and Sobel edge-detector filter kernels)

contoh perhitungan Operator Sobel Contoh berikut ini memperlihatkan pendeteksian tepi dengan operator Sobel. Konvolusi pertama dilakukan terhadap pixel yang bernilai 1 (di titik pusat mask):

citra awal citra hasil konvolusi Contoh citra yang akan dilakukan pendeteksian tepi dengan operator sobel, 3 4 2 5 7 * * * * * 2 1 6 4 2 * 18 * 3 5 7 2 4 4 2 5 7 1 2 5 1 6 9 citra awal citra hasil konvolusi sx = 3x(-1)+2x(-1)+ 3x(-1)+2x(1)+6x(2)+7x(1) = 11 sy = 3x(1)+4x(2)+2x(1)+3x(-1)+5x(-2)+7x(-1) = -7 maka M = 18

Second-order edge detection Note how the first-order gradient operator tends to produce ‘thick edges’, whereas the Laplacian filter tends to produce finer edges in response to the change in gradient rather than the image gradient itself. The second-order derivative property that allows the Laplacian to produce a fine edge response corresponding to a change in gradient, rather than the less isolated response of the first-order edge filters, makes it suitable as the first stage of digital edge enhancement.

Laplacian of Gaussian we can combine the kernels by convolving the Gaussian smoothing operator with the Laplacian operator to produce a single kernel: the Laplacian of Gaussian (LoG) filter.

Zero-crossing detector The zero-crossing property of the Laplacian (and LoG) also permits another method of edge detection : the zero-crossing method.

Edge enhancement In the final part of this chapter we look at the use of second-order edge detection as a method for edge enhancement (commonly known as image sharpening).

Laplacian edge sharpening Using Matlab, Laplacian image sharpening can be achieved as in Example 4.11 Note that we can see the enhancement of edge contrast in this filtering result, but also an increase in image noise in the sharpened image.

unsharp mask filter An alternative edge enhancement filter to the Laplacian-based approaches is the unsharp mask filter (also known as boost filtering). Unsharp filtering operates by subtracting a smoothed (or unsharp) version of an image from the original in order to emphasize or enhance the high-frequency information in the image (i.e. the edges).

TERIMA KASIH