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.

Slides:



Advertisements
Similar presentations
Convolution. Why? Image processing Remove noise from images (e.g. poor transmission (from space), measurement (X-Rays))
Advertisements

Boundary Detection - Edges Boundaries of objects –Usually different materials/orientations, intensity changes.
Image Processing. Image processing Once we have an image in a digital form we can process it in the computer. We apply a “filter” and recalculate the.
Grey Level Enhancement Contrast stretching Linear mapping Non-linear mapping Efficient implementation of mapping algorithms Design of classes to support.
Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
Spatial Filtering (Chapter 3)
High Boost filtering In image processing, it is often desirable to emphasize high frequency components representing the image details without eliminating.
Topic 6 - Image Filtering - I DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Image Processing Lecture 4
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
Regional Processing Convolutional filters. Smoothing  Convolution can be used to achieve a variety of effects depending on the kernel.  Smoothing, or.
Digital Image Processing
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
Rank filtering From noise image Rank filtering mask (7 x 7 ) rank 4.
Lecture 4 Linear Filters and Convolution
6/9/2015Digital Image Processing1. 2 Example Histogram.
Image processing. Image operations Operations on an image –Linear filtering –Non-linear filtering –Transformations –Noise removal –Segmentation.
Median Filter If the objective is to achieve noise reduction rather than blurring, an alternative approach is to use median filters. That is, the gray.
Digital Image Processing
7. Neighbourhood operations A single pixel considered in isolation conveys information on the intensity and colour at a single location in an image, but.
1 Lecture 12 Neighbourhood Operations (2) TK3813 DR MASRI AYOB.
CS443: Digital Imaging and Multimedia Filters Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University Spring 2008 Ahmed Elgammal Dept.
Image Enhancement.
Image Analysis Preprocessing Arithmetic and Logic Operations Spatial Filters Image Quantization.
Chapter 3 (cont).  In this section several basic concepts are introduced underlying the use of spatial filters for image processing.  Mainly spatial.
CS 376b Introduction to Computer Vision 02 / 26 / 2008 Instructor: Michael Eckmann.
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Spatial Filtering: Basics
Image Restoration and Reconstruction (Noise Removal)
Digital Image Processing
Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
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.
Image Processing is replacing Original Pixels by new Pixels using a Transform rst uvw xyz Origin x y Image f (x, y) e processed = v *e + r *a + s *b +
Convolution and Filtering
Digital Image Processing Lecture 10: Image Restoration March 28, 2005 Prof. Charlene Tsai.
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.
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Digital Image Processing Lecture 10: Image Restoration
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.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Sharpening Filters To highlight fine detail or to enhance blurred detail. –smoothing ~ integration –sharpening ~ differentiation Categories of sharpening.
Intelligent Vision Systems ENT 496 Image Filtering and Enhancement Hema C.R. Lecture 4.
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering March 9, 2004 Prof. Charlene Tsai.
Sejong Univ. CH3. Area Processes Convolutions Blurring Sharpening Averaging vs. Median Filtering.
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.
Digital Filters. What are they?  Local operation (neighborhood operation in GIS terminology) by mask, window, or kernel (different words for the same.
Spatial Image Enhancement
Image Subtraction Mask mode radiography h(x,y) is the mask.
Fundamentals of Spatial Filtering:
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Digital Image Processing Lecture 10: Image Restoration
ECE 692 – Advanced Topics in Computer Vision
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.
9th Lecture - Image Filters
Basic Image Processing
Digital Image Processing Week IV
Non-local Means Filtering
Lecture 7 Spatial filtering.
Digital Filters.
Image Enhancement in the Spatial Domain
Fundamentals of Spatial Filtering
Presentation transcript:

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 containing low frequency in which grey level varies slowly and smoothly are characterised solely by components with low spatial frequencies. Figure 7.11b is a noisy images with high frequency components. It contains sudden grey level transitions & fine detail or strong texture with high spatial frequencies.

Fig Grey level variations & spatial frequency. (a) Image containing low frequency variation only. (b) Noisy image with high frequency component. © Grey level profile along the white marks in (a) & (b) (a)(b)

©

A low pass filter allows low spatial frequencies to pass unchanged, but suppresses high frequencies. The low pass filter smoothes or blurs the image. This tends to reduce noise, but also obscures fine detail. High pass filter preserves sudden variations in grey level, such as those that occur at the boundaries of objects, but suppresses the more gradual variations. It can have the adverse effect of making noise more prominent, because noise has a strong high frequency component.

Any kernel whose coefficients are all positive will act as a low pass filter. For example, the 3 x 3 and 5 x 5 kernels

Now it becomes clear what these kernels do; pixel values from the neighbourhood are summed, and the sum is divided by the number of pixels in the neighbourhood. Convolution with these kernels is therefore equivalent to computing the mean grey level over the neighbourhood defined by the kernel. For this reason, these kernels are sometimes described as mean filters.

An example of noise reduction by low pass filtering is given in Figure The filtering operation has suppressed, but has not eliminated, the noise. It has also blurred the objects of interest, making their edges less well defined.

Fig Noise reduction by low pass filtering. (a) Image corrupted by 1% impulse noise. (b) Result of applying 5 x 5 mean filter (a)(b)

Figure 7.13 gives another example of low pass filtering. Here, we see that larger kernels produce more pronounced smoothing. A high degree of smoothing can also be achieved through repeated application of a small kernel to an image.

(a) (b) © Fig Effect of kernel size on smoothing. (a) Original image. (b) Result of applying a 5 x 5 mean filter. © Result of applying a 15 x 15 mean filter.

High Pass Filtering High pass filtering is accomplished using a kernel containing a mixture of positive and negative coefficients. An omnidirectional high pass filter ‑ that is, one whose response is the same, whatever the direction in which grey level varies ‑ should have positive coefficients near its centre and negative coefficients in the periphery of the kernel.

The classic 3 x 3 high pass filter kernel is

The sum of the coefficients in this kernel is zero. This means that, when the kernel is over an area of constant or slowly varying grey level, the result of convolution is zero or some very small number. However, when grey level is varying rapidly within the neighbourhood, the result of convolution can be a large number. This number can be positive or negative, because the kernel contains both positive and negative coefficients. We therefore need to choose an output image representation that supports negative numbers.

If we wish to display or print the filtered image, we must map the pixel values onto a 0 ‑ 255 range. This is usually done in such a way that a filter response of 0 maps onto the middle of the range. Thus, negative filter responses will show up as dark tones, whereas positive responses will be represented by light tones. This can be seen in Figure 7.15.

(a) (b) Fig High Pass Filtering. (a) Original image. (b) Result of high pass filtering with 3 x 3 kernel.

High-boost filtering We can compute a weighted sum of the original image and the output from a high pass filter. The result is an image in which high spatial frequencies are emphasised relative to lower frequencies. The degree of emphasis achieved depends on the weighting given to the original and high pass filtered images. This 'high boost filter' can be used to sharpen an image.Note that we can perform high boost filtering in a single convolution operation, using the kernel

When the central coefficient, c, is large, convolution will have little effect on an image. As c gets closer to 8, however, the degree of sharpening increases. If c = 8 the kernel becomes the high pass filter described earlier. Figure 7.16 gives examples of high boost filtering with two different values of c.

(a) (b) Fig.7.16 High boost filtering of the image in Fig 7.13(a). (a) Result of filtering with central coefficient c = 12. (b) Result of filtering with c = 9