Spatial operations and transformations

Slides:



Advertisements
Similar presentations
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 4 – Digital Image Representation Klara Nahrstedt Spring 2009.
Advertisements

Spatial Filtering (Chapter 3)
CS & CS Multimedia Processing Lecture 2. Intensity Transformation and Spatial Filtering Spring 2009.
Multimedia communications EG 371Dr Matt Roach Multimedia Communications EG 371 and EE 348 Dr Matt Roach Lecture 6 Image processing (filters)
Image Filtering CS485/685 Computer Vision Prof. George Bebis.
Multimedia Data Introduction to Image Processing Dr Mike Spann Electronic, Electrical and Computer.
1 Vladimir Botchko Lecture 4. Image Enhancement Lappeenranta University of Technology (Finland)
Digital Image Processing
Edge Detection Lecture 2: Edge Detection Jeremy Wyatt.
1 Image Filtering Readings: Ch 5: 5.4, 5.5, 5.6,5.7.3, 5.8 (This lecture does not follow the book.) Images by Pawan SinhaPawan Sinha formal terminology.
1 Lecture 12 Neighbourhood Operations (2) TK3813 DR MASRI AYOB.
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.
Image Processing1 Image Filtering Filtering can be use to enhance some features and de- enhance others. Usually used as a pre-processing step.
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.
Chapter 3 Image Enhancement in the Spatial Domain.
Multimedia Data Introduction to Image Processing Dr Sandra I. Woolley Electronic, Electrical.
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.
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
Course Website: Digital Image Processing Image Enhancement (Spatial Filtering 1)
COMP322/S2000/L171 Robot Vision System Major Phases in Robot Vision Systems: A. Data (image) acquisition –Illumination, i.e. lighting consideration –Lenses,
Intelligent Vision Systems ENT 496 Image Filtering and Enhancement Hema C.R. Lecture 4.
Geog. 579: GIS and Spatial Analysis - Lecture Overheads 1 Raster Filters Topics: Lecture 03-04: Neighborhood Operations References: Chapter 7 in.
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering March 9, 2004 Prof. Charlene Tsai.
CS 691B Computational Photography
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.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
TOPIC 12 IMAGE SEGMENTATION & MORPHOLOGY. Image segmentation is approached from three different perspectives :. Region detection: each pixel is assigned.
: Chapter 5: Image Filtering 1 Montri Karnjanadecha ac.th/~montri Image Processing.
Digital Filters. What are they?  Local operation (neighborhood operation in GIS terminology) by mask, window, or kernel (different words for the same.
Image Filtering with GLSL DI1.03 蔡依儒. Outline Convolution Convolution Convolution implementation using GLSL Convolution implementation using GLSL Commonly.
Filters– Chapter 6. Filter Difference between a Filter and a Point Operation is that a Filter utilizes a neighborhood of pixels from the input image to.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Image Enhancement in the Spatial Domain.
Environmental Remote Sensing GEOG 2021
Miguel Tavares Coimbra
Image Subtraction Mask mode radiography h(x,y) is the mask.
Basic Principles Photogrammetry V: Image Convolution & Moving Window:
Fundamentals of Spatial Filtering:
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
ECE 692 – Advanced Topics in Computer Vision
IMAGE PROCESSING INTENSITY TRANSFORMATION AND SPATIAL FILTERING
CS-565 Computer Vision Nazar Khan Lecture 4.
Histogram Histogram is a graph that shows frequency of anything. Histograms usually have bars that represent frequency of occuring of data. Histogram has.
Computer Vision Lecture 9: Edge Detection II
Image Enhancement in the Spatial Domain
Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
9th Lecture - Image Filters
Image Processing, Lecture #8
Digital Image Processing
Digital Image Processing
Image Processing, Lecture #8
Spatial operations and transformations
Image Segmentation Image analysis: First step:
Technique 6: General gray-level transformations
Digital Image Processing Week IV
Interesting article in the March, 2006 issue of Wired magazine
Morphological and Other Area Operations
Technique 6: General gray-level transformations
Lecture 1: Images and image filtering
Image Filtering with GLSL
Lecture 7 Spatial filtering.
Digital Filters.
Image Enhancement in Spatial Domain: Neighbourhood Processing
Presentation transcript:

Spatial operations and transformations Last chapter uses statistical measures This chapter combines previous operations with operations on single images that deal with pixels and their neighbors (spatial operations) Spatial filters (removing noise by reference to neighboring pixel values) Weighted averaging of pixel areas (convolution) Comparing areas on an image with known pixel area shapes so as to find shapes in images (correlation) Edge detection Detection of ‘interest points’ 09/10/62 240-373 Image Processing, Lecture #7

Spatially dependent transformations A spatially dependent transformation is the transformation that depends on its position in the image. The histogram of gray levels does not retain its original shape. The spatially dependent function is F(g,X,Y), for example An image was captured using a weak ambient light together with some sort of point light source giving the effect of a dark picture at the bottom right and a light picture at the top left. The function, discovered by inspection, was used to even out thee lighting: F(g,X,Y) = X/20 + Y/20 - 5 Use of threshold technique is unlikely to be as effective There are other techniques for removal of this kind of gradation. 09/10/62 240-373 Image Processing, Lecture #7

240-373 Image Processing, Lecture #7 Technique 1 & 2 Technique 1: Gradation removing by averaging USE: to remove gradual shading across a single image (not suitable for text image) OPERATION: 1. subdivide the picture into rectangles 2. Evaluate the mean for each rectangle and also for the whole picture 3. To each rectangle of pixels, add or subtract a constant so as to give the rectangles across the picture the same mean. Technique 2: Masking USE: to remove or negate part of an image so that that part is not visible. OPERATION: ANDing an image with a binary mask amounts to thresholding to zero at the maximum gray level for part of the picture, without any thresholding on the rest of the picture. 09/10/62 240-373 Image Processing, Lecture #7

Template and convolution Template operations are very useful as elementary image filters. They can be used to: enhance certain features, de-enhance others identifying edge smooth out noise discover known shapes in an image Technique 3: Convolution USE: widely used in many operations OPERATION: A template is an array of values. It is placed step by step over the image. At each step, creating a new window in the image the same size as the template Associating with each element in the template a corresponding pixel in the image Typically, the template element is multiplied by the corresponding image pixel gray level. The sum of these results, across the whole template, is recorded as a pixel gray level in a new image. This ‘shift, add, multiply’ operation is called the ‘CONVOLUTION’ of the template with the image. 09/10/62 240-373 Image Processing, Lecture #7

240-373 Image Processing, Lecture #7 Convolution: Cont’d If T(x,y) is the template (n x m) and I(X,Y) is the image (NxM), then the convolving of T with I is written as Often the template is not allowed to shift off the edge of the image, so the resulting image will be smaller than the original image. For example Template Image Result 1 1 3 3 4 2 5 7 6 * 1 0 1 1 4 4 3 2 4 7 7 * 0 1 2 1 3 3 3 3 2 7 7 * 1 1 1 4 4 * * * * * * = no value Here the 2x2 template is operating on a 4x5 image, giving a 3x4 result. The value 5 in the result is obtained from (1x1) + (0x3) + (0x1) + (1x4) 09/10/62 240-373 Image Processing, Lecture #7

240-373 Image Processing, Lecture #7 Common templates Low-pass filter (removing noise, blurring) template 1 1 1 1 template 2 (weighting with half of result is from the center pixel) 1 3 1 3 16 3 High-pass filter (remove gradual change, enhance sudden changes) Laplacian template (the sample sums to zero) 0 -1 0 -1 4 -1 09/10/62 240-373 Image Processing, Lecture #7

Example of low pass and high pass filtering Image After high pass after low pass 0 0 0 0 0 0 1 1 1 0 2 1 2 4 6 4 0 1 1 1 0 1 0 1 6 9 6 0 1 1 1 0 1 0 1 6 9 6 0 1 1 1 0 1 -5 1 11 14 11 0 1 6 1 0 -4 20 -4 11 14 11 0 1 1 1 0 2 -4 2 9 11 9 High-pass filter Low-pass filter 0 -1 0 1 1 1 -1 4 -1 1 1 1 09/10/62 240-373 Image Processing, Lecture #7