cs 223-b l11 segmentation

Upload: khawarbashir

Post on 08-Apr-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/6/2019 CS 223-B L11 Segmentation

    1/15

    1

    Lecture 11Lecture 11

    Segmentation and GroupingSegmentation and Grouping

    Gary BradskiGary Bradski

    Sebastian ThrunSebastian Thrun

    http://robots.stanford.edu/cs223b/index.html* Pictures from Mean Shift: A Robust Approach toward Feature Space Analysis, by D. Comaniciu and P. Meer http://www.caip.rutgers.edu/~comanici/MSPAMI/msPamiResults.htm

    *

  • 8/6/2019 CS 223-B L11 Segmentation

    2/15

    2

    Outline Segmentation Intro

    What and why Biological

    Segmentation: By learning the background By energy minimization

    Normalized Cuts

    By clustering Mean Shift (perhaps the best technique to date)

    By fitting optional, but projects doing SFM should read.

    Reading source: Forsyth Chapters in segmentation, available (at least this term)

    http://www.cs.berkeley.edu/~daf/new-seg.pdf

  • 8/6/2019 CS 223-B L11 Segmentation

    3/15

    3

    Intro: Segmentation and Grouping

    Motivation:

    not for recognition

    for compression

    Relationship ofsequence/set of

    tokens

    Always for a goal or

    application

    Currently, no real

    theory

    What: Segmentation breaks an image into groups over space and/or time

    Why:

    Tokens are

    The things that are grouped

    (pixels, points, surface elements,

    etc., etc.)

    top down segmentation tokens grouped because they lie

    on the same object

    bottom up segmentation

    tokens belong togetherbecause of some local

    affinity measure

    Bottom up/Top Dowon

    need not be mutually

    exclusive

  • 8/6/2019 CS 223-B L11 Segmentation

    4/15

    4

    Biological:

    Segmentation in Humans

  • 8/6/2019 CS 223-B L11 Segmentation

    5/15

  • 8/6/2019 CS 223-B L11 Segmentation

    6/15

    6

    Biological:For humans at least, Gestalt psychology identifies several properties that result

    In grouping/segmentation:

  • 8/6/2019 CS 223-B L11 Segmentation

    7/15

    7

    Consequence:

    Groupings by Invisible Completions

    * Images from Steve Lehars Gestalt papers: http://cns-alumni.bu.edu/pub/slehar/Lehar.html

    Stressing the invisible groupings:

  • 8/6/2019 CS 223-B L11 Segmentation

    8/15

    8

    Consequence:

    Groupings by Invisible Completions

    * Images from Steve Lehars Gestalt papers: http://cns-alumni.bu.edu/pub/slehar/Lehar.html

  • 8/6/2019 CS 223-B L11 Segmentation

    9/15

    9

    Consequence:

    Groupings by Invisible Completions

    * Images from Steve Lehars Gestalt papers: http://cns-alumni.bu.edu/pub/slehar/Lehar.html

  • 8/6/2019 CS 223-B L11 Segmentation

    10/15

    10

    Why do these tokens belong together?

    Here, the 3D nature of grouping is apparent:

    Corners and creases in 3D, length is interpreted differently:

    In

    Out

    The (in) line at the far

    end of corridor mustbe longer than the (out)

    near line if they measure

    to be the same size

  • 8/6/2019 CS 223-B L11 Segmentation

    11/15

    11

    And the famous invisible dog eating

    under a tree:

  • 8/6/2019 CS 223-B L11 Segmentation

    12/15

    12

    Background Subtraction

  • 8/6/2019 CS 223-B L11 Segmentation

    13/15

    13

    Background Subtraction

    1. Learn model of the background

    By statistics ( , ); mixture of Gaussians; Adaptive filter, etc

    1. Take absolute difference with current frame Pixels greater than a threshold are candidate foreground

    1. Use morphological open operation to clean up point

    noise.2. Traverse the image and use flood fill to measure size of

    candidate regions. Assign as foreground those regions bigger than a set value.

    Zero out regions that are too small.

    1. Track 3 temporal modes:(1) Quick regional changes are foreground (people, moving cars);

    (2) Changes that stopped a medium time ago are candidatebackground (chairs that got moved etc);

    (3) Long term statistically stable regions are background.

  • 8/6/2019 CS 223-B L11 Segmentation

    14/15

    14

    Background Subtraction ExampleBackground Subtraction Example

  • 8/6/2019 CS 223-B L11 Segmentation

    15/15

    15

    Background Subtraction PrinciplesAt ICCV 1999, MS Research presented a study, Wallflower: Principles and Practice

    of Background Maintenance, by Kentaro Toyama, John Krumm, Barry Brumitt, BrianMeyers. This paper compared many different background subtraction techniques

    and came up with some principles:

    P1:

    P2:

    P3:

    P4:

    P5: