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.

Slides:



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

Spatial Filtering (Chapter 3)
Image Processing Lecture 4
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
1Ellen L. Walker ImageJ Java image processing tool from NIH Reads / writes a large variety of images Many image processing operations.
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
Face Recognition and Biometric Systems 2005/2006 Filters.
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.
2007Theo Schouten1 Enhancements Techniques for editing an image such that it is more suitable for a specific application than the original image. Spatial.
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.
Computational Photography: Image Processing Jinxiang Chai.
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.
CS 376b Introduction to Computer Vision 02 / 26 / 2008 Instructor: Michael Eckmann.
Chapter 10: Image Segmentation
Spatial-based Enhancements Lecture 3 prepared by R. Lathrop 10/99 updated 10/03 ERDAS Field Guide 6th Ed. Ch 5: ;
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.
Image Subtraction Mask mode radiography h(x,y) is the mask.
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.
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
Edge Detection Phil Mlsna, Ph.D. Dept. of Electrical Engineering Northern Arizona University.
Chapter 10 Image Segmentation
Image Pre-Processing in the Spatial and Frequent Domain
ECE 692 – Advanced Topics in Computer Vision
Digital Image Processing
- photometric aspects of image formation gray level images
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
Image Segmentation Image analysis: First step:
Digital Image Processing Week IV
Linear Operations Using Masks
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
Presentation transcript:

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 at that pixel

MSU CSE 803 Expressing linear operations on neighborhoods

MSU CSE 803 Images as functions

MSU CSE 803 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 Image processing examples Histogram equalization; gamma correction; median filtering

MSU CSE 803 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 Histogram equalization can darken a bright image, perhaps improving contrast

MSU CSE 803 Histogram equalization

MSU CSE 803 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 Smoothing an image by averaging neighbors (boxcar)

MSU CSE 803 Dot product of the input neighborhood and the mask

MSU CSE 803 Properties of smoothing masks

MSU CSE 803 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 Boxcar smoothing filter example So, reducing noise will also degrade the signal.

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

MSU CSE 803 Gaussian smoothing

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

MSU CSE 803 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 X(n)=aX(n1)+bX(n2) -> Y(n)=aY(n1)+bY(n2)

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

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

MSU CSE rows of intensity vs difference

MSU CSE 803 Caption for Prewitt image

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

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

MSU CSE 803 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 nd derivative using mask [-1, 2, -1] Response is zero on constant region and a “double whip” amplifies and locates the step edge.

MSU CSE nd 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 Estimating 2D image gradient

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

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

MSU CSE 803 Alternative masks for gradient

MSU CSE 803 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 Computational short cuts

MSU CSE 803 Properties of derivative masks

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