active contours snakes
Download
Skip this Video
Download Presentation
Active Contours - SNAKES

Loading in 2 Seconds...

play fullscreen
1 / 36

Active Contours - SNAKES - PowerPoint PPT Presentation


  • 475 Views
  • Uploaded on

CSci 8810 Image Processing. Active Contours - SNAKES. Meghana Viswanath March 19, 2009. Object Recognition… How?. Edge detectors. Works well for some images. Not so much for others. Too many spurious edges Linking edges belonging to the same object is difficult. Active Contours or Snakes.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Active Contours - SNAKES' - HarrisCezar


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
object recognition how
Object Recognition… How?
  • Edge detectors

Works well for some images

not so much for others
Not so much for others
  • Too many spurious edges
  • Linking edges belonging to the same object is difficult
active contours or snakes
Active Contours or Snakes
  • Results from the work of Kass et.al. in 1987
  • Snakes are shapes or curves that transform themselves to take the shape of an object in an image.
  • Snakes are energy minimizing splines
snake behavior
Snake Behavior
  • An initial curve/snake is defined near the object
  • The curve is iteratively refined to form the least energy contour
  • Snakes operate locally, thus one must provide an initial position for them
snake representation
Snake Representation
  • A snake is a contour in the image plane, defined by a set of ncontrol points.

vi = (xi, yi), i = 0, .... n-1

energy minimization
Energy Minimization

vi-1

vi

vi+1

snake

object boundary

Find the local minimum and move towards it.

snake energy
Snake Energy

The snake - v(s) = [x(s), y(s)], is defined as a function of a real variable s ϵ [0,1]

The energy of the snake is given by -

Esnake = 0∫1 (Eint + Eext)ds

internal energy
Internal Energy
  • Internal energy describes the manner in which the snake moves
  • It can be written as -

Eint = (α (v’)2 + β (v”)2)

  • α, β specify the amount of elasticity and stiffness of the snake, respectively
internal energy12
Internal Energy
  • First Term : α (v’)2
  • If you want the snake to shrink, then make Eint directly proportional to snake length
  • Instead,

Eint = Σα (distance b/w control pt. and left neighbour)2

  • This makes the control points to spread out evenly
internal energy13
Internal Energy
  • Second Term : β (v”)2
  • If you want the snake to be smooth, then make Eint directly proportional to the curvature
  • Instead, Eint = Σβ (curvature at control point)2
  • This makes the control points to move as a smooth curve
internal energy14
Internal Energy
  • A large positive value of α and/or β means that stretching(elasticity) and/or bending(smoothness) are tightly constrained as we search for an energy minimum
  • Making β = 0 i.e. second order discontinuous, makes the snake develop a corner (least stiff)
external energy
External Energy
  • External energy pulls the snake towards desirable features such as edges
  • Tells the snake where to stop
  • It is derived from the image
  • External energy – negative gradient

Eext = -|∇I(x,y)|2

external energy16
For a gray-scale image I(x,y),

Eext = -|∇ I(x,y)|2

Eext = -|∇ (Gσ(x,y) * I(x,y))|2

For a binary image

Eext = I(x,y)

Eext = Gσ(x,y) * I(x,y)

External Energy
euler equation
Euler Equation
  • A snake that minimizes E must satisfy the Euler equation –

α v”(s)- β v””(s) -∇Eext = 0

force balance equation
Force Balance Equation

Minimizing energy equation can be interpreted as a force balance equation

Fint + Fext = 0

where

Fint = α v” - β v””

and

Fext = −∇ Eext

The internal force Fint discourages stretching and bending while the external potential force Fext pulls the snake toward the desired image edges

problems with traditional snakes
Problems with traditional snakes
  • Low capture range
    • Initial snake position should be close to the object boundary
    • Reason - External force field is non-existent in uniform regions
  • Unable to move into boundary concavities
    • Reason – External force vectors are normal to the object boundary
traditional snakes
Traditional Snakes

(a)

(a)

(a)

(b)

(b)

(b)

(c)

(c)

  • Convergence of the snake
  • External Force Field
  • Close-up of the force field within the boundary concavity
gradient vector flow gvf snakes
Gradient Vector Flow (GVF) snakes

Both problems with traditional snakes are related to external force field.

Xu and Prince formulate a new type of static external force called Gradient Vector Flow.

Fext = v

edge map
Edge Map
  • For any gray-scale or binary image, let the edge map be defined such that it has large values near edges.

Eg.Eext =-|∇ I(x,y)|2

  • Properties of edge maps
    • Gradient vectors point toward and are normal to the edges
    • Gradients are large only in the immediate neighborhood of edges
    • In homogeneous regions, gradient is almost zero
how edge map properties affect traditional snake behavior
How edge map properties affect traditional snake behavior
  • Gradient vectors point toward and are normal to the edges

=> a snake initialized close to the edge will converge to a stable configuration near the edge

  • Gradients are large only in the immediate neighborhood of edges

=> small capture range

  • In homogeneous regions, gradient is almost zero

=> homogeneous regions will have no external forces

gvf approach
GVF Approach
  • Retain the highly desirable property of the gradients near the edges
  • But extend the gradient map farther away from the edges and into homogeneous regions using a computational diffusion process.
  • As an important benefit, the inherent competition of the diffusion process will also create vectors that point into boundary concavities.
gvf energy functional
GVF energy functional
  • We define the gradient vector flow field to be the vector fieldv(x,y)=(u(x,y),v(x,y)) that minimizes the energy functional

Ɛ = ∫ ∫ Ч(ux2+uy2+vx2+vy2)+|∇ f |2|v-∇ f |2dxdy

    • When ∇ f is low, the first term dominates yielding a slowly varying field
    • When ∇ f is high, the second term dominates and is minimized by setting v =∇ f.
gvf euler equations
GVF Euler equations
  • It can be shown that the GVF field can be found by solving the following Euler equations –
  • In homogeneous regions, second term = 0
  • u and v are determined only by the Laplace equation
  • v is determined from the region’s boundary
  • a kind if competition among boundary vectors

Therefore, GVF snakes can move into boundary concavities

gvf snakes
GVF Snakes

(a)

(b)

(c)

  • Convergence of the snake
  • External Force Field
  • Close-up of the force field within the boundary concavity
applications
Applications
  • Motion Tracking
  • Speech Analysis
  • Traffic monitoring
  • Surveillance
  • Actor-driven facial animation
  • Gait Analysis
traffic monitoring
Traffic Monitoring

By automatically tracking cars, the emergency services could obtain rapid warning of an accident or traffic jam.

surveillance
Surveillance

A computer vision system follows an intruder on a security camera

actor driven facial animation
Actor-driven facial animation

Tracked facial motions drive input channels to a cartoon cat, programmed with some exaggeration of expression

motion tracking
Motion Tracking

Tracking the articulated motion of a human body is applicable both to biometrics and clinical gait analysis and for actor-driven whole body animation

references
References

Books -

  • Computer Vision – L. Shapiro and G. Stockman
  • Active Contours – Blake and Isard

Technical papers -

  • Snakes: Active contour models - M. Kass, A. Witkin and D. Terzopoulos.
  • Snakes, Shapes, and Gradient Vector Flow - Chenyang Xu and Jerry L. Prince
ad