Image Enhancement in the Spatial Domain Low and High Pass Filtering

Similar documents
Digital Image Processing. Digital Image Fundamentals II 12 th June, 2017

CSE 564: Scientific Visualization

Sharpening Spatial Filters ( high pass)

Digital Image Processing. Lecture 5 (Enhancement) Bu-Ali Sina University Computer Engineering Dep. Fall 2009

Image Enhancement in spatial domain. Digital Image Processing GW Chapter 3 from Section (pag 110) Part 2: Filtering in spatial domain

Chapter 3 Image Enhancement in the Spatial Domain. Chapter 3 Image Enhancement in the Spatial Domain

LAB MANUAL SUBJECT: IMAGE PROCESSING BE (COMPUTER) SEM VII

MatLab for biologists

Midterm is on Thursday!

MATLAB 6.5 Image Processing Toolbox Tutorial

Vision Review: Image Processing. Course web page:

Image Processing. Adam Finkelstein Princeton University COS 426, Spring 2019

Image filtering, image operations. Jana Kosecka

4 Enhancement. 4.1 Why perform enhancement? Enhancement via image filtering

Image Filtering. Median Filtering

Image restoration and color image processing

Digital Image Processing

Lecture 3: Linear Filters

Digital Image Processing Programming Exercise 2012 Part 2

TDI2131 Digital Image Processing (Week 4) Tutorial 3

Image Processing for feature extraction

Practical Image and Video Processing Using MATLAB

Prof. Vidya Manian Dept. of Electrical and Comptuer Engineering

CS 4501: Introduction to Computer Vision. Filtering and Edge Detection

Carmen Alonso Montes 23rd-27th November 2015

Spatial Domain Processing and Image Enhancement

What is image enhancement? Point operation

Images and Filters. EE/CSE 576 Linda Shapiro

Motion illusion, rotating snakes

Digital Image Processing

Image acquisition. Midterm Review. Digitization, line of image. Digitization, whole image. Geometric transformations. Interpolation 10/26/2016

Filtering Images in the Spatial Domain Chapter 3b G&W. Ross Whitaker (modified by Guido Gerig) School of Computing University of Utah

>>> from numpy import random as r >>> I = r.rand(256,256);

CIS581: Computer Vision and Computational Photography Homework: Cameras and Convolution Due: Sept. 14, 2017 at 3:00 pm

8.2 IMAGE PROCESSING VERSUS IMAGE ANALYSIS Image processing: The collection of routines and

Prof. Feng Liu. Winter /10/2019

IMAGE PROCESSING: AREA OPERATIONS (FILTERING)

INTRODUCTION TO IMAGE PROCESSING

Filtering in the spatial domain (Spatial Filtering)

Circular averaging filter (pillbox) Approximates the two-dimensional Laplacian operator. Laplacian of Gaussian filter

Table of contents. Vision industrielle 2002/2003. Local and semi-local smoothing. Linear noise filtering: example. Convolution: introduction

Computer Vision for HCI. Noise Removal. Noise in Images

Motivation: Image denoising. How can we reduce noise in a photograph?

CSE 564: Visualization. Image Operations. Motivation. Provide the user (scientist, t doctor, ) with some means to: Global operations:

Image Manipulation: Filters and Convolutions

Image Filtering in Spatial domain. Computer Vision Jia-Bin Huang, Virginia Tech

02/02/10. Image Filtering. Computer Vision CS 543 / ECE 549 University of Illinois. Derek Hoiem

Teaching Scheme. Credits Assigned (hrs/week) Theory Practical Tutorial Theory Oral & Tutorial Total

Robert Collins CSE486, Penn State. Lecture 3: Linear Operators

Filip Malmberg 1TD396 fall 2018 Today s lecture

Motivation: Image denoising. How can we reduce noise in a photograph?

Matlab (see Homework 1: Intro to Matlab) Linear Filters (Reading: 7.1, ) Correlation. Convolution. Linear Filtering (warm-up slide) R ij

Achim J. Lilienthal Mobile Robotics and Olfaction Lab, AASS, Örebro University

Digital Image Processing 3/e

>>> from numpy import random as r >>> I = r.rand(256,256);

CAP 5415 Computer Vision. Marshall Tappen Fall Lecture 1

IMAGE ENHANCEMENT IN SPATIAL DOMAIN

Non Linear Image Enhancement

Image processing in the spatial and frequency domain

Color Space 1: RGB Color Space. Color Space 2: HSV. RGB Cube Easy for devices But not perceptual Where do the grays live? Where is hue and saturation?

CoE4TN4 Image Processing. Chapter 3: Intensity Transformation and Spatial Filtering

Computing for Engineers in Python

Chapter 2 Image Enhancement in the Spatial Domain

Image Deblurring. This chapter describes how to deblur an image using the toolbox deblurring functions.

Midterm Examination CS 534: Computational Photography

Image analysis. CS/CME/BIOPHYS/BMI 279 Fall 2015 Ron Dror

Fourier analysis of images

CS6670: Computer Vision Noah Snavely. Administrivia. Administrivia. Reading. Last time: Convolution. Last time: Cross correlation 9/8/2009

Preparing Remote Sensing Data for Natural Resources Mapping (image enhancement, rectifications )

Lec 04: Image Filtering and Edge Features

Computer Graphics (Fall 2011) Outline. CS 184 Guest Lecture: Sampling and Reconstruction Ravi Ramamoorthi

Anna University, Chennai B.E./B.TECH DEGREE EXAMINATION, MAY/JUNE 2013 Seventh Semester

CEE598 - Visual Sensing for Civil Infrastructure Eng. & Mgmt.

Image processing for gesture recognition: from theory to practice. Michela Goffredo University Roma TRE

Last Lecture. photomatix.com

EE482: Digital Signal Processing Applications

Retinal blood vessel extraction

Image Filtering Josef Pelikán & Alexander Wilkie CGG MFF UK Praha

Image Enhancement using Histogram Equalization and Spatial Filtering

INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET

Study And Analysis Of Enhancement And Edge Detection Method For Human Bone Fracture X-Ray Image

Templates and Image Pyramids

CS/ECE 545 (Digital Image Processing) Midterm Review

A DEVELOPED UNSHARP MASKING METHOD FOR IMAGES CONTRAST ENHANCEMENT

Raster Based Region Growing

COMBINING LAPLACIAN AND SOBEL GRADIENT FOR GREATER SHARPENING

Image Processing COS 426

Digital Image Processing

y-intercept remains constant?

To Do. Advanced Computer Graphics. Image Compositing. Digital Image Compositing. Outline. Blue Screen Matting

CSCI 1290: Comp Photo

Introduction to MATLAB and the DIPimage toolbox 1

Digital Image Processing Question Bank UNIT -I

Templates and Image Pyramids

This content has been downloaded from IOPscience. Please scroll down to see the full text.

Part I Feature Extraction (1) Image Enhancement. CSc I6716 Spring Local, meaningful, detectable parts of the image.

Solution for Image & Video Processing

International Journal of Advance Engineering and Research Development

Image Enhancement. Image Enhancement

CSC 320 H1S CSC320 Exam Study Guide (Last updated: April 2, 2015) Winter 2015

Transcription:

Image Enhancement in the Spatial Domain Low and High Pass Filtering

Topics Low Pass Filtering Averaging Median Filter High Pass Filtering Edge Detection Line Detection

Low Pass Filtering Low pass filters block high frequency content of the image High frequency content correspond to boundaries of the objects

Image Averaging Image averaging is obtained by finding the average of K images. It is applied in de-noising the images. A noisy image is defined by: Assuming that the noise is uncorrelated with zero mean

Image Averaging

De-noised Images

Image averaging in MATLAB Open the first image file im1 = imread( test1.bmp ); Open the second image file im2 = imread( test2.bmp ); Open the third image file im3 = imread( test3.bmp ); Find the average imavg = (im1 + im2 + im3 )/3; Display the image imshow(imavg)

De-noising Effect on Histogram

Spatial Filters To work on pixels in the neighborhood of a pixel, a sub-image is defined. The operation on the sub-image pixels is defined using a mask or filter with the same dimensions. Applying the operation to the image is referred to as convolution

Spatial Masks

Convolving Mask with Image Convolving mask with image is carried out by sliding the mask over the image, multiplying mask values with the pixel values falling beneath them and obtaining the sum. The sum is used as the value for the position of the center of the mask over the image

Mean or Average Filter

The Effect of Average Filter

Mean Filter in MATLAB I = imread( test.tif ); H = fspecial( average, 3); I2 = imfilter( I, H ); imshow( I), title( Original Image ) figure, imshow(i2), title( Filtered image )

Averaging Filter with Thresholding

Median Filter Median filter replaces the pixel at the center of the filter with the median value of the pixels falling beneath the mask. Median filter does not blur the image but it rounds the corners.

Median Filter Effect

Median Filter in MATLAB img = imread( test.tif ); imsmoothed = medfilt2(img, [3 3]); [ 3 3 ] defines the dimension of the filter

High-pass or Sharpening Filters High pass filters let the high frequency content of the image pass through the filter and block the low frequency content. High pass filters can be modeled by first order derivative as : A second order derivative can also be used for extracting high frequency data

Use of First Derivative - Gradient Gradient is a vector which points in the direction of the greatest rate of increase of the scalar field, and whose magnitude is the greatest rate of change.

Edge Detection Filters

Edge Detection Example

Edge Image Example

Edge Image Example

Edge Detection in MATLAB Img = imread( test.tif ); edgeimg = edge( Img, sobel ); imshow(edgeimg)

Line Detection Filters

Is local Processing Adequate? Local processing gives information about the local neighborhood of pixels. The global characteristics of the pixels cannot be determined from their local characteristics. E.g. Line detection using gradient operator can provide the probability of a pixel being on a line but it cannot group the pixels into line segments.

Global Processing Example: Hough Transform

Line Detection using Hough Transform Define the line using its parametric equation y=mx+c m is the slope of the line, c in the intersection with y axis Define a buffer (M, C) and initialize it to zero For all edge pixels Do For all combination of m and c values Do If the pixel satisfies y=m i x+c i the increment the value of the corresponding buffer location (m i, c i )

Exercise Apply Hough transform to an image and draw the detected lines on the original image Use http://www.mathworks.com/help/toolbox/images/ref/ hough.html

Questions?

Assignment Use MATLAB to design a high and a low pass filter. Apply the filters to some sample images. Apply the high pass filter after low pass filter and then low pass after high pass filter. Discuss the results