Docsity

Improved Object Recognition: Pictorial Structures & Efficient Algorithms, Study notes of Computer Science

Partial preview of the text

Download Improved Object Recognition: Pictorial Structures & Efficient Algorithms and more Study notes Computer Science in PDF only on Docsity!

Pictorial Structures

for Object Recognition

Felzenszwalb and Huttenlocher

Presented by Stephen Krotosky

Pictorial Structures z^ Introduced by Fischler and Elschlager in 1973 z^ Objects are modeled by a collection of parts in adeformable configuration z^ Best match is found by minimizing function thatmeasures both individual match costs andconnection costs

Pictorial Structures Definitions

Undirected Graph:^ (^ ) ,...,^ , correspond to the{^ }^1 (^ ) {^ }^1

parts ,^ , for each pair of connected points,...,^ , configuration where

corresponds to

n i j n (^) Can simply be location or more complicated p

i^

i

v^ v^

n v^ v l^ l^

l^

v

G =^ V, EV =^ ∈ E = L^ (^ ) (^ ) (^

arameterization , is the degree of mismatch when

is placed at ,^ is the function measuring the degree of deformation of the modelwhen^ is placed at

and^ is at arg min^

i^ i^

i^ i

ij^ i^ j i^

i^ j^ j i^ i^ i j

i m^ l^ L

v^

l

d^ l l v^

l^ v^ l L^

m^ l^

d^ l =^

+^ (^

n lj^1 i =^ v v^ E∈(^ ),i^ j

^
^
^

∑^ ∑

z^ A collection of parts with connectionsbetween certain pairs. z^ Best match depends on how well eachpart matches at its location and how wellthe locations agree with the deformablemodel z^ Matching a pictorial structure does notinvolve making any decisions aboutlocation of individual parts z^ Find a global minimum of energy functionwithout any initialization!

Efficient AlgorithmRequirements z^ Graph G be acyclic, i.e. is a tree^ z^ Can correspond to skeletal structure^ z^ Star-graphs^ z^ Enables best match to be computed in polynomial time using Viterbialgorithm z^ Second restriction reduces search to essentially linear^ z^ d is a Mahalanobis distance between transformed locations^ (

)^

(^ )^ (

) (^

)^

(^ )^ (

) (^

)

(^ )^

(^ )

1

,, and are 1 to 1 and are represented as

positions on a

grid

They represent the ideal relative locations of the parts

and

The distance between the lo

T

i j^ i^ j^

ij^ i^ ji^ j^

ij^ ij^ i^

ji^ j

ij^ i^

ji^ j

i^ j

d^ l^ l^

T^ l^ T

l^ M

T^ l^

T^ l

T^ l^

T^ l

v^ v − =^

−^

−

1 cations, wei

ghted by

measures the

deformation of a "spring" connecting the two parts

−M ij

Statistical Framework z^ Θ^ – parameters of object model z^ I^ – is the image z^ L –^ is a configuration z^ p(I|L,

Θ)^ is the likelihood of seeing a particular image given thatan object is at some location z^ p(L|Θ

)^ is the prior probability that an object is at a givenlocation. Encodes information about the

relative

position of

parts, which can be informative and general z p(L|I,Θ

)^ is the of the configuration given the model parameters and the image z Using Bayes’ rule:

Statistical Framework z^ Things that can be characterized using framework:^ z^ MAP estimation: equivalent to energy estimate^ z^ Sampling from the posterior: provides a natural way to findmany good matches. Useful when model is imprecise^ z^ Model estimation: allows us to find

Θ^ that specifies a good

model for the object

(^ )^

(^ ) (^ ),

, 1 arg min^

, i^ j n i^ i^

i j^ i^ j L^ i^

v v^ E L^

m^ l^

d^ l^ l =^

∈ ^

^

=^

^

^

 ∑^

∑

Statistical Framework^ z^ Prior distribution is defined as a tree-structured Markov random field whereno preference is given to the absolute location of each part^ z^ The likelihood of a configuration given an Image and model parameters andis the same as original equation when multiplied by -log

Learning Model Parameters z^ Given independent example Images {

1 mI ,… , I^ }^ and corresponding {

1 m^ L,… , L^ }

z^ Want to estimate model parameters

θ

z^ Using maximum likelihood estimate: z^ The first part of the equation only depends on the appearance parameters z^ The second part depends only on the set of connections and the connectionparameters z^ Can be solved independently and implies that any kind of part model can beused as long as maximum likelihood can be computed for an individual part

Estimating the Dependencies z^ We can first estimate each possible connection before knowing a specific

E
z^ This maximum likelihood of the joint distribution of li and lj depends on the specific representation and itvaries with different modeling schemes z^ We can however, define a generic quality measure: z^ These quality measures can be used to estimate E as follows: z^ Since E is a tree, we can solve by finding the minimum spanning tree of the graph. This is a well knownproblem and can be efficiently solved for

Iconic Models z^ So far, haven’t specified how objects arerepresented. z^ Need to choose a specific model z^ This type of model has been popular in the contextof face detection

Spatial Relations z^ Connections modeled by a collection a springs between parts z^ Characterized by ideal relative location

s and full covariance matrix i,j^

Σi,j

z^ c= (sij^

,Σ)i,j i,j

z^ Model as Gaussian Distribution: z^ Ideally, location of

v is location of i^

v^ shifted by j^

si,j

z^ Since models are deformable, locations can vary depending on costassociated with covariance matrix z^ To show specific Mahalanobis distance write

Σ^ = UDU

T

Experiments z^ Five parts: eyes, nose, corners of mouth z^ 20 training images from Yale face database z^ More training examples made from scaling androtating by small amounts^ z^ Builds invariance into model z^ No information about which parts should beconnected is given. Model is learned from trainingdata z^ No “knobs” to turn z^ Few seconds to learn model z^ Less than 1 second to find face in image

Experimental Results

Occlusions