Docsity

Lecture Slides on Segmentation | ECE 516, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
1
ECE516 / CS532 Computer Vision
Pradeep Sen Class 11 โ€“ March 2, 2009
ECE 516 / CS 532
Computer Vision
Pradeep Sen
Advanced Graphics Lab
Class 11
March 2, 2009
ECE516 / CS532 Computer Vision
Pradeep Sen Class 11 โ€“ March 2, 2009
Announcements
๎šƒHW 2 is due this Sunday
ECE516 / CS532 Computer Vision
Pradeep Sen Class 11 โ€“ March 2, 2009
Last time
๎šƒTexture
ECE516 / CS532 Computer Vision
Pradeep Sen Class 11 โ€“ March 2, 2009
Today
๎šƒSegmentation
ECE516 / CS532 Computer Vision
Pradeep Sen Class 11 โ€“ March 2, 2009
What is segmentation?
๎šƒWe want to design algorithms that can take
an input image and reason about the objects
depicted within
๎šƒFundamentally, our algorithms must be able
to decompose the pixels of the image into
groups that represent (e.g. this is a car, that
is a person), so that they can be analyzed
separately (e.g. โ€œwhat kind of car is it?โ€ or
โ€œwho is that person?โ€
๎šƒThis is known as segmentation or grouping
ECE516 / CS532 Computer Vision
Pradeep Sen Class 11 โ€“ March 2, 2009
Segmentation in the human visual system
๎šƒContext affects how things are perceived
๎šƒE.g. โ€œpixelsโ€ in our visual system are
grouped into semantic objects through
complex interactions with the surroundings
๎šƒThis led some psychologists to reject
experiments using individual stimuli but
instead focus on how we visually respond to
groups of objects
๎šƒThis is known as gestalt psychology
pf3
pf4
pf5

Partial preview of the text

Download Lecture Slides on Segmentation | ECE 516 and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

ECE 516 / CS 532

Computer Vision

Pradeep Sen Advanced Graphics Lab

Class 11 March 2, 2009

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

Announcements

ยƒ HW 2 is due this Sunday

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

Last time

ยƒ Texture

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

Today

ยƒ Segmentation

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

What is segmentation?

ยƒ We want to design algorithms that can take an input image and reason about the objects depicted within

ยƒ Fundamentally, our algorithms must be able to decompose the pixels of the image into groups that represent (e.g. this is a car, that is a person), so that they can be analyzed separately (e.g. โ€œwhat kind of car is it?โ€ or โ€œwho is that person?โ€

ยƒ This is known as segmentation or grouping

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

Segmentation in the human visual system

ยƒ Context affects how things are perceived ยƒ E.g. โ€œpixelsโ€ in our visual system are grouped into semantic objects through complex interactions with the surroundings ยƒ This led some psychologists to reject experiments using individual stimuli but instead focus on how we visually respond to groups of objects ยƒ This is known as gestalt psychology

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

Gestalt

ยƒ What do you see?

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

Gestalt

ยƒ What do you see?

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

Gestalt laws

ยƒ Law of proximity โ€“ tokens that are nearby are grouped together ยƒ Law of similarity โ€“ tokens that are similar are grouped together ยƒ Law of common fate โ€“ tokens that have similar motion are grouped ยƒ Law of common region โ€“ tokens that lie inside the same closed region tend to be grouped together ยƒ Law of parallelism โ€“ parallel curves or tokens are grouped ยƒ Law of closure โ€“ tokens that lead to closed curves are grouped ยƒ Law of symmetry โ€“ curves that lead to symmetric groups are grouped ยƒ Law of continuity โ€“ tokens that lead to continuous curves are grouped ยƒ Law of familiar configuration โ€“ tokens that, when grouped, form a familiar object tend to be grouped together ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

Examples

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

Examples

ยƒ Law of closure

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

Examples

ยƒ Law of proximity

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

A simple algorithm

ยƒ Observation that background is unchanging or changes slowly ยƒ Average frames together to create a โ€œbackground frameโ€ ยƒ Subtract this from images to extract foreground object ยƒ If background changes slowly, our average filter could be a moving window that only weights frames near the one we are processing ยƒ Gestalt equivalent: common fate

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

Example

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

Shot boundary detection

ยƒ A film is made up of different shots, which are sequences of continuous camera takes

ยƒ Interested in grouping the film into shots for browsing, etc.

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

A simple algorithm

ยƒ Basic idea is that shots change whenever the distance between frames is at a maximum ยƒ So find differences between frames and look for these large differences

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

A simple algorithm

for each frame in the image sequence compute a distance between this frame and the previous frame if the distance is larger than some threshold, classify the frame as a shot boundary end

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

Measuring distance between frames

ยƒ Frame differencing โ€“ take pixel-by-pixel differences and sum the square of the differences. ยƒ Histogram difference โ€“ compute the color histogram for the frames and measure the distance between the histogram ยƒ Block comparison โ€“ split the image into blocks and compare those across frames ยƒ Edge differencing โ€“ compute edge maps for each frame and count the number of corresponding edges

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

Clustering

ยƒ Process of building clusters , collections of data points that belong together

ยƒ Two simple clustering methods:

  • Divisive clustering โ€“ the data set is regarded as a single cluster and then clusters are recursively split
  • Agglomerative clustering โ€“ each data item is regarded as a cluster, and the clusters are recursively merged

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

Example

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

K-means clustering

ยƒ A simple algorithm can be developed if we assume that there are k clusters in the data for a fixed k ยƒ We want to minimize the distance of each point to the center of its cluster center ยƒ Start by randomly picking cluster centers ยƒ Bin elements into the right cluster based on the center of the cluster ยƒ Once all elements has been clustered, compute the new cluster centers, and redo ยƒ Process eventually converges to a local minimum

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

K-means clustering Choose k points to act as cluster centers Until the cluster centers are unchanged Allocate each data point to the cluster with the nearest center Ensure each cluster has at least one data point Replace the cluster centers with the mean of the elements in their clusters end

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

Example

original

ยƒ k-means segmentation assuming 5 clusters

using only intensity values using color values

ECE516 / CS532 Computer Vision Pradeep Sen Class 11 โ€“ March 2, 2009

Segmentation by graph clustering

ยƒ Clustering can be thought of as cutting a graph into disjoint graphs were the vertices within a subgraph are part of the same object