multi layer mrf
TRANSCRIPT
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 1/28
Energy MinimizationMethods in
Image SegmentationZoltan Kato
Institute of Informatics
University of Szeged
Hungary
Zoltan Kato has been partially supported by the Janos Bolyai Research Fellowship of the Hungarian Academy of Science, Hungarian Scientific
Research Fund - OTKA T046805, National University of Singapore: NUS research grant R252-000-085-112, CWI Amsterdam: ERCIM postdoctoral
fellowship, Hungarian – French Bilateral Fund
Presented at IIT Bombay, India (January 2006)
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 2/28
Overview
Probabilistic approachMarkov Random Field (MRF) models
Markov Chain Monte Carlo (MCMC) sampling
Variational approach
Shape priors for variational models
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 3/28
Why MRF Modelization?
In real images, regions are often homogenous;neighboring pixels usually have similar
properties (intensity, color, texture, …)
Markov Random Field (MRF) is a statisticalmodel which captures such contextual
constraints
Well studied, strong theoretical background
Allows MCMC sampling of the (hidden)
underlying structure.
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 4/28
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 5/28
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 6/28
Probability Measure, MAP
For an nXm image, there are (n·m)Λ possible labelings. Which one is the right segmentation?
Define a probability measure on the set of all possiblelabelings and select the most likely one.
measures the probability of a labelling, giventhe observed feature
Our goal is to find an optimal labeling which
maximizes This is called the Maximum a Posteriori (MAP) estimate:
ω ˆ
)|( f P ω f
)|( f P ω
)|(maxargˆ f P MAP
ω ω ω Ω∈=
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 7/28
Bayesian Framework
By Bayes Theorem, we have
is constant
We need to define and in our
model
)(
)()|()|(
f P
P f P f P
ω ω ω =
)( f P
)(ω P )|( ω f P
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 8/28
Definition – Neighbors
For each pixel, we can define some surroundingpixels as its neighbors.
Example : 1st order neighbors and 2nd order
neighbors
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 9/28
Definition – MRF
The labeling field X can be modeled as aMarkov Random Field (MRF) if
1. For all
2. For every and ,
denotes the neighbors of pixel s
0)(: >=ΧΩ∈ ω ω P
S s∈ Ω∈ω ),|(),|( sr sr s N r P sr P ∈=≠ ω ω ω ω
s N
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 10/28
Hammersley-Clifford Theorem
The Hammersley-Clifford Theorem states that arandom field is a MRF if and only if followsa Gibbs distribution.
where is a normalizationconstant
This theorem provides us an
easy way of defining MRF models via
clique potentials.
)(ω P
))(exp(1
))(exp(1
)(
∑∈−=−=
C c c
V Z
U Z
P ω ω ω
∑Ω∈
−=ω
ω ))(exp( U Z
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 11/28
Definition – Clique
A subset is called a clique if every pair of pixels in this subset are neighbors.
A clique containing i pixels is called i th order
clique, denoted by . The set of cliques in an image is denoted by
S C ⊆
iC
nC C C C UUU ...
21=
singleton doubleton
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 12/28
Definition – Clique Potential
For each clique c in the image, we can assign avalue which is called clique potential of c ,
where is the configuration of the labeling field
The sum of potentials of all cliques gives usenergy of the configuration
)(ω cV
)(ω U ω
...),()()()(2
2
1
1
),( ∑∑∑ ∈∈∈++==
C ji
jiC
C i
iC
C c
C V V V U ω ω ω ω ω
ω
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 13/28
Current work in MRF modeling
Multi-layer MRF model for combiningdifferent segmentation cues:
Color & Texture [ICPR2002,ICIP2003]
Color & Motion [HACIPPR2005, ACCV2006]
…?
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 14/28
Project Objectives
Multiple cues are perceivedsimultaneously and then they areintegrated by the human visual system
[Kersten et al. An. Rev. Psych. 2004]Therefore different image features has to be
handled in a parallel fashion.
We attempt to develop such a model in aMarkovian framework
Collaborators: Ting-Chuen Pong from HKUST – Hong Kong
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 15/28
Multi-Layer MRF Model:
Neighborhood & Interactions
ω is modeled as a MRF Layered structure “Soft” interaction
between features
P( ω | f) follows a
Gibbs distribution Clique potentials define
the local interactionstrength
MAP ⇔ Energyminimization (U( ω ))
Z Z
))(Vexp(-))exp(-U( )P(
:TheoremClifford-Hammersley
C C
∑==
ω ω ω ModelModel Definition of clique potentialsDefinition of clique potentials
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 16/28
Extract Color Feature
We adopt the CIE-L*u*v* color space because itis perceptually uniform. Color difference can be measured by Euclidean
distance of two color vectors.
We convert each pixel from RGB space to CIE-L*u*v* spaceWe have 3 color feature images
L* u* v*
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 17/28
Color Layer: MRF model Pixel classes are represented by
multivariate Gaussian distributions:
Intra-layer clique potentials: Singleton: proportional to the likelihood of
features given ω : log(P(f | ω )).
Doubleton: favours similar classes at
neighbouring pixels – smoothness prior
[+ Inter-layer potentials (later…)]
))()(2
1exp(
||)2(
1)|( 1 T
s sn
s s s s s
s
u f u f f P ω ω ω
ω π ω
rrrr−Σ−−
Σ= −
≠+
=−=
ji
ji
c if
if jiV
ω ω β
ω ω β ),(
2
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 18/28
Texture Layer: MRF model
We extract two type of texture featuresGabor feature is good at discriminating strong-
ordered textures
MRSAR feature is good at discriminating weak-
ordered (or random) textures The number of texture feature images depends on the
size of the image and other parameters.
Most of these doesn’t contain useful information
Select feature images with high discriminating power.
MRF model is similar to the color layer model.
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 19/28
Examples of Texture Features
MRSAR features:
Gabor features:
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 20/28
Combined Layer: Labels
A label on the combined layer consists of a pair of color and texture/motion labels such that
, where and
The number of possible classes is The combined layer selects the most likely ones.
>=< m
s
c
s s η η η , cc
s Λ∈η mm
s Λ∈η mc
L L ×
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 21/28
Combined Layer: Singleton potential
Controls the number of classes:
is the percentage of labels belonging to class L is the number of classes present on the combined
layer.
Unlikely classes have a few pixels
they willbe penalized and removed to get a lower energy
is a log-Gaussian term:Mean value is a guess about the number of classes,
Variance is the confidence.
s N η sη
)( L P
)()10()( 3 L P N RV s s s += −η η
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 22/28
Combined Layer: Doubleton potential
Preferences are set in this order:1. Similar color and motion/texture labels
2. Different color and motion/texture labels
3. Similar color (resp. motion/texture) and differentmotion/texture (resp. color) labels These are contours visible only at one feature layer.
≠=+
=≠+
≠≠
==−
=
m
r
m
s
c
r
c
s
m
r
m
s
c
r
c
s
m
r
m
s
c
r
c
s
m
r
m
s
c
r
c
s
r s
η η η η α
η η η η α
η η η η
η η η η α
η η δ
, if
, if
, if 0
, if
),(
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 23/28
Inter-layer clique potential
Five pair-wise interactions betweena feature and combined layer
Potential is proportional to thedifference of the singletonpotentials at the correspondingfeature layer. Prefers s and s having the same
label, since they represent thelabeling of the same pixel
Prefers s and r having the same
label, since we expect the combinedand feature layers to be homogenous
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 24/28
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 25/28
Color Textured SegmentationOriginal Image
Texture
Segmentation
Color
Segmentation
Multi-cue Segmentation
Texture LayerResult
Color LayerResult
Combined LayerResult
Original ImageTexture
Segmentation
Color
Segmentation
Multi-cue Segmentation
Texture LayerResult
Color LayerResult
Combined LayerResult
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 26/28
Motion Layer:
1. Flow-based model
Compute optical flow data which characterizes thevisual motion of the pixels Proesmans et al. [ECCV 1994]
2D vector field we have 2 motion feature images
Then a similar MRF model can be applied at themotion layer as for the color layer.
Note that the Gaussian likelihood implies atranslational motion model
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 27/28
Motion Layer:
2. Motion compensated model Each motion-label is modeled by an affine motion
model:
us gives the motion at s assuming label s
Given 2 successive frames F and F’ and
assuming brightness / color constancy
we have the singleton potential
||F(s)-F’(s+us)||2
A special label is assigned to occluded pixels
Occluded pixels will have a high color difference for anymotion label
occluded singleton potential is a constant penaltylower than these differences.
Doubleton potential is the usual smoothness prior .
[+ Inter-layer potentials]
321321ntranslatiomatrixaffinemotion
)()( s s s ω ω TAus +=F
F’
7/31/2019 Multi Layer Mrf
http://slidepdf.com/reader/full/multi-layer-mrf 28/28
Color & Motion Segmentation