Linear Operations Using Masks

Slides:



Advertisements
Similar presentations
3-D Computer Vision CSc83020 / Ioannis Stamos  Revisit filtering (Gaussian and Median)  Introduction to edge detection 3-D Computater Vision CSc
Advertisements

Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
Spatial Filtering (Chapter 3)
Image Filtering. Outline Outline Concept of image filter  Focus on spatial image filter Various types of image filter  Smoothing, noise reductions 
EDGE DETECTION ARCHANA IYER AADHAR AUTHENTICATION.
Sliding Window Filters and Edge Detection Longin Jan Latecki Computer Graphics and Image Processing CIS 601 – Fall 2004.
CS 4487/9587 Algorithms for Image Analysis
Digital Image Processing
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
6/9/2015Digital Image Processing1. 2 Example Histogram.
Image Filtering CS485/685 Computer Vision Prof. George Bebis.
EE663 Image Processing Edge Detection 2 Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
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.
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.
CS 376b Introduction to Computer Vision 02 / 27 / 2008 Instructor: Michael Eckmann.
Edge Detection Phil Mlsna, Ph.D. Dept. of Electrical Engineering
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.
MSU CSE 803 Linear Operations Using Masks Masks are patterns used to define the weights used in averaging the neighbors of a pixel to compute some result.
Computational Photography: Image Processing Jinxiang Chai.
Image Filtering. Problem! Noise is a problem, even in images! Gaussian NoiseSalt and Pepper Noise.
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
University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell Image processing.
Filtering and Enhancing Images. Major operations 1. Matching an image neighborhood with a pattern or mask 2. Convolution (FIR filtering)
Lecture 03 Area Based Image Processing Lecture 03 Area Based Image Processing Mata kuliah: T Computer Vision Tahun: 2010.
AdeptSight Image Processing Tools Lee Haney January 21, 2010.
Chapter 10, Part I.  Segmentation subdivides an image into its constituent regions or objects.  Image segmentation methods are generally based on two.
Chapter 5: Neighborhood Processing
Digital Image Processing (Digitaalinen kuvankäsittely) Exercise 2
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Spatial Filtering.
Intelligent Vision Systems ENT 496 Image Filtering and Enhancement Hema C.R. Lecture 4.
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.
Lecture 04 Edge Detection Lecture 04 Edge Detection Mata kuliah: T Computer Vision Tahun: 2010.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Computer Vision Image Features Instructor: Dr. Sherif Sami Lecture 4.
Instructor: Mircea Nicolescu Lecture 7
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
CSE 185 Introduction to Computer Vision Image Filtering: Spatial Domain.
Grauman Today: Image Filters Smooth/Sharpen Images... Find edges... Find waldo…
Digital Image Processing CSC331
Sliding Window Filters Longin Jan Latecki October 9, 2002.
1 Edge Operators a kind of filtering that leads to useful features.
Non-linear filtering Example: Median filter Replaces pixel value by median value over neighborhood Generates no new gray levels.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Image Enhancement in the Spatial Domain.
Miguel Tavares Coimbra
Image Subtraction Mask mode radiography h(x,y) is the mask.
Edge Detection Phil Mlsna, Ph.D. Dept. of Electrical Engineering Northern Arizona University.
Chapter 10 Image Segmentation
Digital Image Processing CSC331
Image Pre-Processing in the Spatial and Frequent Domain
ECE 692 – Advanced Topics in Computer Vision
Filtering – Part I Gokberk Cinbis Department of Computer Engineering
Digital Image Processing
- photometric aspects of image formation gray level images
Image Processing - in short
Dr. Chang Shu COMP 4900C Winter 2008
CIS 350 – 3 Image ENHANCEMENT SPATIAL DOMAIN
Image Enhancement in the Spatial Domain
Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
a kind of filtering that leads to useful features
a kind of filtering that leads to useful features
Image Segmentation Image analysis: First step:
Digital Image Processing Week IV
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
Image Enhancement in the Spatial Domain
Presentation transcript:

Linear Operations Using Masks Masks are patterns used to define the weights used in averaging the neighbors of a pixel to compute some result at that pixel MSU CSE 803 Stockman

Expressing linear operations on neighborhoods MSU CSE 803 Stockman

Images as functions Render with scanalyze???? MSU CSE 803 Stockman

Neighborhood operations Average neighborhood to remove noise or high frequency patterns Detect boundaries at points of contrast using gradient computation Can use median filtering to smooth while keeping boundaries sharp MSU CSE 803 Stockman

Image processing examples Histogram equalization; gamma correction; median filtering MSU CSE 803 Stockman

Histogram equalization Left image does not use all available gray levels. Image is recoded so that all gray levels are used and such that each gray level occurs in roughly the same number of pixels of the recoded image. (See algorithm in text, xv.) MSU CSE 803 Stockman

Histogram equalization can darken a bright image, perhaps improving contrast MSU CSE 803 Stockman

Can define mapping of input gray level to output level (xv) Gamma correction: boost all gray levels Boost low levels and reduce high MSU CSE 803 Stockman

Smoothing an image by averaging neighbors (boxcar) MSU CSE 803 Stockman

Output pixel is the dot product of the input neighborhood and the mask MSU CSE 803 Stockman

Properties of smoothing masks MSU CSE 803 Stockman

Types of ideal edges (in 1D) These types are also present in 2D and 3D images and are complicated by orientation variations. MSU CSE 803 Stockman

Boxcar smoothing filter example So, reducing noise will also degrade the signal. MSU CSE 803 Stockman

Linear smoothing smoothes noise and blurs signal Blur: step is now ramp Input image Row after 5x5 mean filter MSU CSE 803 Stockman

Gaussian smoothing MSU CSE 803 Stockman

Median filter replaces center with neighborhood median, not mean Median filter smoothes signal and preserves sharp boundary Mean filtering smoothes signal and ramps the boundary Noisy row of checkers image MSU CSE 803 Stockman

Median filter is not linear Algorithm requires comparisons and is more expensive than using mask Can sort all NxN pixel values and pick middle Do not need totally sorted data: O(N) algorithm exists MSU CSE 803 Stockman

Scratches removed by using a median filter Thin artifact removed, sharp boundaries preserved. MSU CSE 803 Stockman

Finding boundary pixels Computing derivatives or gradients to locate region change. MSU CSE 803 Stockman

2 rows of intensity vs difference MSU CSE 803 Stockman

Differencing used to estimate 1st and 2nd derivatives Masks represent the first and 2nd differences First differences 2nd differences MSU CSE 803 Stockman

Step edges X mask [-1, 0, +1] Step edge is detected well, but edge location imprecise. MSU CSE 803 Stockman

Ramp and impulse X mask [-1, 0, +1] Ramp edge now yields a broad weak response. Impulse response is a “whip”, first up and then down. MSU CSE 803 Stockman

2nd derivative using mask [-1, 2, -1] Response is zero on constant region and a “double whip” amplifies and locates the step edge. MSU CSE 803 Stockman

2nd derivative using mask [-1, 2, -1] Weak response brackets the ramp edge. Bright impulse yields a double whip with gain of 3X original contrast. MSU CSE 803 Stockman

Estimating 2D image gradient MSU CSE 803 Stockman

Gradient from 3x3 neighborhood Estimate both magnitude and direction of the edge. MSU CSE 803 Stockman

Prewitt versus Sobel masks Sobel mask uses weights of 1,2,1 and -1,-2,-1 in order to give more weight to center estimate. The scaling factor is thus 1/8 and not 1/6. MSU CSE 803 Stockman

Computational short cuts MSU CSE 803 Stockman

Alternative masks for gradient MSU CSE 803 Stockman

Computational shortcuts Use MAX operation on 1D row and column derivatives. Use OR operation on thresholded row and column derivatives. MSU CSE 803 Stockman

2 rows of intensity vs difference MSU CSE 803 Stockman

Caption for Prewitt image MSU CSE 803 Stockman

Properties of derivative masks MSU CSE 803 Stockman

Next set of related slides Interpret the properties of masks using the theory of vectors and dot products. MSU CSE 803 Stockman