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

Similar documents
Image analysis. CS/CME/BioE/Biophys/BMI 279 Oct. 31 and Nov. 2, 2017 Ron Dror

Image analysis. CS/CME/BioE/Biophys/BMI 279 Oct. 31 and Nov. 2, 2017 Ron Dror

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

Digital Image Processing

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

Filtering in the spatial domain (Spatial Filtering)

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

Filip Malmberg 1TD396 fall 2018 Today s lecture

Image Filtering. Median Filtering

Midterm Review. Image Processing CSE 166 Lecture 10

Image Processing for feature extraction

Digital Image Processing Labs DENOISING IMAGES

Non Linear Image Enhancement

An Efficient Noise Removing Technique Using Mdbut Filter in Images

CS534 Introduction to Computer Vision. Linear Filters. Ahmed Elgammal Dept. of Computer Science Rutgers University

Image Processing by Bilateral Filtering Method

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

Announcements. Image Processing. What s an image? Images as functions. Image processing. What s a digital image?

Image Enhancement using Histogram Equalization and Spatial Filtering

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

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

Chapter 3. Study and Analysis of Different Noise Reduction Filters

Lecture 3: Linear Filters

Image De-noising Using Linear and Decision Based Median Filters

Prof. Feng Liu. Winter /10/2019

Image Denoising Using Statistical and Non Statistical Method

ECC419 IMAGE PROCESSING

Chapter 6. [6]Preprocessing

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

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

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

MATLAB 6.5 Image Processing Toolbox Tutorial

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

COMPARITIVE STUDY OF IMAGE DENOISING ALGORITHMS IN MEDICAL AND SATELLITE IMAGES

Practical Image and Video Processing Using MATLAB

Computer Vision, Lecture 3

IMAGE ENHANCEMENT IN SPATIAL DOMAIN

IMAGE PROCESSING: AREA OPERATIONS (FILTERING)

More image filtering , , Computational Photography Fall 2017, Lecture 4

DIGITAL IMAGE DE-NOISING FILTERS A COMPREHENSIVE STUDY

Digital Image Processing

Introduction. Computer Vision. CSc I6716 Fall Part I. Image Enhancement. Zhigang Zhu, City College of New York

Image preprocessing in spatial domain

Noise and Restoration of Images

The Use of Non-Local Means to Reduce Image Noise

What is image enhancement? Point operation

On the evaluation of edge preserving smoothing filter

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

Antennas and Propagation. Chapter 6b: Path Models Rayleigh, Rician Fading, MIMO

A Spatial Mean and Median Filter For Noise Removal in Digital Images

Image Denoising using Filters with Varying Window Sizes: A Study

CSE 564: Scientific Visualization

FPGA IMPLEMENTATION OF RSEPD TECHNIQUE BASED IMPULSE NOISE REMOVAL

Literature Survey On Image Filtering Techniques Jesna Varghese M.Tech, CSE Department, Calicut University, India

CSCI 1290: Comp Photo

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

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

Control of Noise and Background in Scientific CMOS Technology

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

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

1.Discuss the frequency domain techniques of image enhancement in detail.

Chapter 2: Signal Representation

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

Computing for Engineers in Python

International Journal of Innovations in Engineering and Technology (IJIET)

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

Image Enhancement. DD2423 Image Analysis and Computer Vision. Computational Vision and Active Perception School of Computer Science and Communication

Digital Image Processing

Performance Analysis of Average and Median Filters for De noising Of Digital Images.

1. Introduction. 2. Filters

Frequency Domain Enhancement

International Journal of Innovative Research in Engineering Science and Technology APRIL 2018 ISSN X

Image Enhancement in the Spatial Domain

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

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

Stochastic Image Denoising using Minimum Mean Squared Error (Wiener) Filtering

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

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

Images and Filters. EE/CSE 576 Linda Shapiro

Image Enhancement contd. An example of low pass filters is:

Exercise Problems: Information Theory and Coding

EE482: Digital Signal Processing Applications

Vision Review: Image Processing. Course web page:

Computer Vision for HCI. Noise Removal. Noise in Images

Digital Image Processing

Noise Adaptive and Similarity Based Switching Median Filter for Salt & Pepper Noise

Multipath Delay-Spread Tolerance

FILTER FIRST DETECT THE PRESENCE OF SALT & PEPPER NOISE WITH THE HELP OF ROAD

Image filtering, image operations. Jana Kosecka

Prof. Vidya Manian Dept. of Electrical and Comptuer Engineering

Performance Comparison of Mean, Median and Wiener Filter in MRI Image De-noising

Chrominance Assisted Sharpening of Images

Interpolation of CFA Color Images with Hybrid Image Denoising

Digital Image Processing

Computer Vision. Howie Choset Introduction to Robotics

Image Denoising with Linear and Non-Linear Filters: A REVIEW

Digital Image Processing

Historical Document Preservation using Image Processing Technique

An Efficient Nonlinear Filter for Removal of Impulse Noise in Color Video Sequences

Survey Study of Image Denoising Techniques

Transcription:

Image analysis CS/CME/BIOPHYS/BMI 279 Fall 2015 Ron Dror A two- dimensional image can be described as a function of two variables f(x,y). For a grayscale image, the value of f(x,y) specifies the brightness of the image pixel at position (x,y). (For a color image, the function specifies a red, green, and blue value for each position (x,y), but in this class, we ll be concerned primarily with grayscale images.) If an image is obtained by a real- world instrument such as a digital camera or microscope, then the image is never perfect; some random perturbations are introduced, due both to imperfections in the instrument and to physical laws that limit measurement accuracy. We refer to these random perturbations as noise. In the following sections, we will go through some basic techniques to reduce noise in images, and briefly introduce edge- finding and principal component analysis as an example of extracting information from images. Noise Reduction Noises in images may have different origins and therefore different characteristics. For instance, in Gaussian noise, a normally distributed random value is added to each pixel (fig. 1b). On the other hand, salt- and- pepper noise describes a situation where random pixels get replaced by extremely dark or bright values (fig. 1c). In an uncorrupted image, the values of neighboring pixels are expected to be correlated (because an object or surface generally spans multiple neighboring pixels). Noise in neighboring pixels, on the other hand, is often uncorrelated (this is the case for the Gaussian noise and salt- and- pepper noise added in fig. 1). The most basic way of reducing the noise in an image is thus by averaging neighboring pixels. Such methods are often referred to as filtering. Commonly used filters include mean filter (a.k.a. uniform filter), which replaces the value of a pixel by the mean value of an area centered at the pixel; Gaussian filter, which is similar to a mean filter but weighted in favor of pixels closer to the center; and median filter, which replaces the value of a pixel by the median of nearby pixels. Fig. 2 demonstrates the effects of these filters on image noise. The Gaussian noise may be reduced, but not completely removed, by any of the filters. A Gaussian filter typically yields the smoothest image, whereas a similarly sized mean or median filter typically leaves blocky traces. The salt- and- pepper noise, on the other hand, can be completely removed by a median filter (if it affects only a small fraction of the pixels in any given region), but not by a mean or Gaussian filter. Mathematically, applying a mean filter or Gaussian filter is equivalent to convolving the image with a window function; that window function is uniform over a small area in the case of a mean filter, or a Gaussian function in the case of a Gaussian filter. In order not to change the overall brightness of the image, the window functions are typically normalized such that their integrals evaluate to 1.

The Convolution Theorem states that the convolution between two functions in the real space is equivalent to their multiplication in Fourier space. Fig. 3 shows the window functions for a mean and Gaussian filter, along with their respective Fourier transforms. In Fourier space, both these functions have greater magnitudes (absolute values) at low frequencies and smaller magnitudes at high frequencies. The mean and Gaussian filters thus reduce the magnitudes of high- frequency components of the image while preserving ( passing ) the low- frequency components. They are thus referred to as low- pass filters. (A median filter is not a convolution, so relating it quantitatively to the Fourier components is difficult.) (a) (b) (c) Fig.1: (a) a noiseless image with 100x100 pixels, on top of which (b) Gaussian noise (c) salt- and- pepper noise were added

Noisy images Gaussian noise Salt- and- pepper noise 3x3 mean filter Gaussian filter with standard deviation σ = 1 3x3 median filter Fig. 2: Effects of mean, Gaussian and median filters on image noise. The mean and median filters shown here consider a 3x3 block of surrounding pixels when computing the denoised value for each pixel.

(a) (b) (c) (d) Fig. 3: (a) a Gaussian function with standard deviation σ = 3, (b) a 5x5 mean filter window function, and (c) & (d) their respective Fourier transforms High- pass filtering A high- pass filter preserves high frequency components while reducing the magnitude of low- frequency components. An easy way to high- pass filter an image is to subtract a low- pass filtered version of the image from the original image. Fig. 4 gives an example. High- pass filtering is useful for image sharpening (see lecture notes) and for highlighting edges in images. It will, however, tend to exacerbate noise.

Fig. 4: Image in fig. 1a after applying a high- pass filter (by subtracting from the original image a version of the image filtered using a Gaussian filter with a standard deviation of σ = 2. Principal Component Analysis Suppose we have a large set of images, each 100x100 pixels. Each image has 10,000 pixels, so we can think of each image as corresponding to a point in a 10,000- dimensional space. The high dimensionality of the space makes it difficult to classify images or to identify the most meaningful patterns of variation between them. These tasks become easier if we can map the images to a lower- dimensional space. Principal component analysis is one common way to do this (and it s used in many fields, not just image analysis). The basic idea of principal component analysis is to find a low- dimensional linear subspace (line, plane, etc.) that best fits the data points in the high- dimensional space. Then we can approximate each point in the high- dimensional space by the closest point in the low- dimensional linear subspace. The first principal component (together with the mean of all the data) specifies the line that best fits the data, in the sense that if we compute the distance from all data points to that line, the sum of the squares of these distances is minimal (fig. 5). It turns out this is equivalent to saying that if we project all the data points onto this line (by finding the point on the line closest to each data point), the variance of those projected points is maximal. Likewise, the first two principal components (together with the mean) specify the plane that best fits the data. One way to find the second principal component is to subtract from each point its projection onto the line specified by the first principal component. This gives us a new set of points, and the first principal component of the new set of points is the second principal component of the original data set.

In general, the first N principal components (together with the mean) specify the N- dimensional linear subspace that best fits the data. The principal component vectors will be orthogonal to one another. Fig. 5: The first principal component of this set of points is the vector specified by the longer arrow. The second principal component is specified by the shorter arrow. Image fromhttp://en.wikipedia.org/wiki/covariance_matrix.