Docsity

Features Extraction, Edges - Lecture Notes - Image Processing | CMSC 426, Study notes of Computer Science

Partial preview of the text

Download Features Extraction, Edges - Lecture Notes - Image Processing | CMSC 426 and more Study notes Computer Science in PDF only on Docsity!

Feature Extraction: Edges

Images and Information

•^

“Vision is based on inference”

-^

What makes us see objects in an image?

-^

At one level

-^

Image is a matrix of numbers– Somehow we extract information from these– Obviously we do notuse all 10

5

to 10

6

numbers

•^

What makes us perceive objects in images?– Hypothesis: process images at low level– Extract “features”– Combine features with prior knowledge to classify objects in

the image at a high-level

•^

What features should (or do) we use?

Image Features

•^

Edges

-^

Corners and Junctions

-^

Texture

-^

Intensity gradients (distribution of ambient light)

-^

Correspondence of features across multiple images– Stereo– Flow

-^

First we will stay with features on a single image

-^

Goal: Define techniques that will “filter” out regions thathave these features, and allow us to ignore most of thepixels.

-^

Use these features in higher level vision

Edges for inference

•^

Edges in an image have many causes

-^

An edge presents an opportunity to infer

-^

Looking at edges reduces information required– Look at a few pixels in a binary image as opposed to all pixels

in a grayscale image

•^

Biological plausibility– initial stages of mammalian vision systems involve detection of

edges and local features

surface normal discontinuity depth discontinuitysurface color discontinuityillumination discontinuity

  • Derivative measures rate of change
    • High when there is a sudden change– When there is no change it is zero
      • Second derivative measures rate of change of

the rate of change– Zero at a maximum or a minimum of the function

Edge detection

  • How can you tell that a pixel is on an edge?

Profiles of image intensity

edges

Edgel detection

  • Difference operators• Parametric-model matchers

Edge is Where Change Occurs

  • Change is measured by derivative in 1D• Biggest change, derivative has maximum

magnitude

  • Or 2

nd

derivative is zero.

Image gradient

•^

The gradient of an image:

-^

The gradient points in the direction of most rapidchange in intensity

-^

The gradient direction is given by:

-^

how does this relate to the direction of the edge?

-^

The

edge strength

is given by the gradient

magnitude

The discrete gradient

  • How can we differentiate a

digital

image

f[x,y]?– Option 1: reconstruct a continuous image, then

take gradient

  • Option 2: take discrete derivative (finite

difference)

Threshholding and filtering

•^

Applying a “Sobel operator” to an image–

using the Sobel discrete operator, loop over all non-boundary pixels,

  • compute the derivatives in the

x

and

y

directions

  • Compute magnitude and direction of edges– If (magnitude > threshhold) -^

put a 1 in the edge-image

  • Else
    • Put a zero

•^

Resulting image is a “binary” edge image

Non-maxima suppression

  • Note that edges lie

in the midst of gentlergradients

  • So the Sobel operator

will return non-zero valueseven in regions where there is no edge

  • Threshholding can minimize “false-postives”,

and only pick local maxima

  • However it cannot account for noise