Top Banner
Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1. Zero boundary condition 2. Periodic boundary condition (tiling images) Main point: Fourier transform is still valid with each condition and depends only Sampling function
26

Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.

Jan 04, 2016

Download

Documents

Andrew Snow
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.

Discrete Images (Chapter 7)

Fourier Transform on discrete and bounded domains.

Given an image:

1. Zero boundary condition

2. Periodic boundary condition (tiling images)

Main point: Fourier transform is still valid with each condition and depends only

Sampling function

Page 2: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.

Mathematics in Chapter 7 can look heavy at times….

But don’t get bogged down by the symbols and notations !!

For example, the Fourier transform of a periodic function is discrete.

Page 3: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.

Sampling Theorem

If the Fourier transform of a function is bandlimited, then, it can be reconstructed from samples on a regular grid.

If

Then f(u, v) can be recovered by knowing the values

for all k, l

Page 4: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.

Conversely

If the signal is known to be bandlimited with the wavelengh of the highest frequency present

Then the sampling interval should be less than

In particular, if is the sampling interval, then the signal

can contain frequencies only up to the Nyquist frequency

If it is to be faithfully reconstructed from Samples.

Page 5: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.

Edge and Edge Detection

February 6

Page 6: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.

Edges (or Edge points) are pixels at or around which the image values undergo a sharp variation.

Edge Detection: Given an image corrupted by acquisition noise, locate the edges most likely to be generated by scene elements, not by noise.

Page 7: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.

Edge Formation:1. Occluding Contours

1. Two regions are images of two different surfaces2. Discontinuity in surface orientation or reflectance properties

Page 8: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.

Mathematical Model of edges and noise

Page 9: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.

More Realistically, due to blurring and noise, we generally have

Page 10: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.

Image Gradients

The gradient of a differentiable function I gives the direction

in which the values of the function change most rapidly.

Its magnitude gives you the rate of change.

Page 11: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.

Approximating Derivatives

Page 12: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.

Approximating Derivatives

The discrete Laplacian is given as

1-41 1

1

Page 13: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.

Local Operators (Differential Operators) accentuate noise !! (why?)

Therefore, need smoothing before computing image gradients.

Motivation: Smoothing removes local intensity variation and what remains are the prominent edges.

Gaussian Smoothing with exponential kernel function

Page 14: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.
Page 15: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.

Examples

Page 16: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.
Page 17: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.

Three Steps of Edge Detection

1. Noise Smoothing: Suppress as much of the image noise as possible. In the absence of specific information, assume the noise white and Gaussian

2. Edge Enhancement: Designe a filter responding to edges. The filter’s output is large at edge pixels and low elsewhere. Edges can be located as the local maxima in the filters’ output.

3. Edge Localization: Decide which local maxima in the filter’s output are edges and which are just caused by noise.

1. Thinning wide edges to 1-pixel with (nonmaximum suppression);

2. Establishing the minimum value to declare a local maximum an edge (thresholding)

Page 18: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.

Edge Descriptors (The output of an edge detector)

1. Edge normal: The direction of the maximum intensity variation at the edge point.

2. Edge direction: The direction tangent to the edge.

3. Edge Position : The location of the edge in image

4. Edge strength: A measure of local image contrast. How significance the intensity variation is across the edge.

Page 19: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.
Page 20: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.

Canny Edge Detector (smoothing and enhancement)

CANNY_ENHANCER

1. Apply Gaussian Smoothing to I.

2. For each pixel (i, j):

1. Compute the gradient components

2. Estimate the edge strength

3. Estimate the orientation of the edge normal

Given image I

Page 21: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.

Canny Edge Detector (Nonmaximum suppression)

The input is the output of CANNY_ENHANCER. We need to thin the edges. Given Es, Eo, the edge strength and orientation images. For each pixel (i, j),

1. Find the direction best approximate the direction Eo(i, j).

2. If Es(i, j) is smaller than at least one of its two neighbors along this direction, suppress this pixel.

The output is an image of the thinned edge points after suppressing nonmaxima edge points.

Page 22: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.

Canny Edge Detector (Hysteresis Thresholding)

Performs edge tracking and reduces the probability of false contours.

Input I is the output of nonmaximum_suppression, Eo and two threshold parameters

Scan I in a fixed order:

1. Locate the next unvisited edge pixel (i, j) such that I(i, j)

2. Starting from (I, j), follow the chains of connected local maxima in both directions perpendicular to the edge normal as long as I

3. Marked all visited points and save a list of the locations of all points in the connected contour found.

Page 23: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.

Threshold Results

Page 24: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.
Page 25: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.

Using Second Derivatives

Page 26: Discrete Images (Chapter 7) Fourier Transform on discrete and bounded domains. Given an image: 1.Zero boundary condition 2.Periodic boundary condition.