markov random fields in image segmentation

49 360 1
markov random fields in image segmentation

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Presented at SSIP 2008, Vienna, Austria Markov Random Fields in Image Segmentation Zoltan Kato Image Processing & Computer Graphics Dept University of Szeged Hungary Zoltan Kato: Markov Random Fields in Image Segmentation Overview Segmentation as pixel labeling Probabilistic approach Markov Random Field (MRF) Gibbs distribution & Energy function Energy minimization Simulated Annealing Markov Chain Monte Carlo (MCMC) sampling Example MRF model & Demo Parameter estimation (EM) More complex models Zoltan Kato: Markov Random Fields in Image Segmentation Segmentation as a Pixel Labelling Task Extract features from the input image Each pixel s in the image has a feature vector For the whole image, we have r f = { f s : s ∈ S} Define the set of labels Λ Each pixel s is assigned a label For the whole image, we have r fs ωs ∈ Λ ω = {ω s , s ∈ S} For an N×M image, there are |Λ|NM possible labelings Which one is the right segmentation? Zoltan Kato: Markov Random Fields in Image Segmentation Probabilistic Approach, MAP Define a probability measure on the set of all possible labelings and select the most likely one P (ω | f ) measures the probability of a labelling, given the observed feature f Our goal is to find an optimal labeling ω which ˆ maximizes P (ω | f ) This is called the Maximum a Posteriori (MAP) estimate: ˆ ω MAP = arg max P(ω | f ) ω∈Ω Zoltan Kato: Markov Random Fields in Image Segmentation Bayesian Framework likelihood prior By Bayes Theorem, we have P( f | ω ) P(ω ) P(ω | f ) = ∝ P ( f | ω ) P (ω ) P( f ) P ( f ) is constant We need to define P (ω ) and P ( f | ω ) in our model Zoltan Kato: Markov Random Fields in Image Segmentation 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 probabilistic model which captures such contextual constraints Well studied, strong theoretical background Allows MCMC sampling of the (hidden) underlying structure Simulated Annealing Zoltan Kato: Markov Random Fields in Image Segmentation What is MRF? To give a formal definition for Markov Random Fields, we need some basic building blocks Observation Field and (hidden) Labeling Field Pixels and their Neighbors Cliques and Clique Potentials Energy function Gibbs Distribution Zoltan Kato: Markov Random Fields in Image Segmentation Definition – Neighbors For each pixel, we can define some surrounding pixels as its neighbors Example : 1st order neighbors and 2nd order neighbors Zoltan Kato: Markov Random Fields in Image Segmentation Definition – MRF The labeling field X can be modeled as a Markov Random Field (MRF) if For all ω ∈ Ω : P ( Χ = ω ) > For every s ∈ S andω ∈ Ω : P(ω s | ω r , r ≠ s ) = P(ω s | ω r , r ∈ N s ) N s denotes the neighbors of pixel s Zoltan Kato: Markov Random Fields in Image Segmentation Hammersley-Clifford Theorem The Hammersley-Clifford Theorem states that a random field is a MRF if and only if P (ω ) follows a Gibbs distribution 1 P(ω ) = exp(−U (ω )) = exp(−∑ Vc (ω )) Z Z c∈C where Z = ∑ exp(−U (ω )) is a normalization constant ω ∈Ω This theorem provides us an easy way of defining MRF models via clique potentials 10 35 Zoltan Kato: Markov Random Fields in Image Segmentation JSEG (1.5 min) JSEG (Y Deng, B.S.Manjunath: PAMI’01): color quantization: colors are quantized to several representing classes that can be used to differentiate regions in the image spatial segmentation: A region growing method is then used to segment the image RJMCMC (17 min) 730 X 500 MRF+RJMCMC vs JSEG 36 Zoltan Kato: Markov Random Fields in Image Segmentation Benchmark results using the Berkeley Segmentation Dataset JSEG RJMCMC Zoltan Kato: Markov Random Fields in Image Segmentation Summary Design your model carefully Optimization is just a tool, not expect a good segmentation from a wrong model What about other than graylevel features Extension to color is relatively Can we segment images without user interaction? Yes, but you need to estimate model parameters automatically (EM algorithm) What if we not know |Λ|? Fully automatic segmentation requires Modeling of the parameters AND a more sophisticated sampling algorithm (Reversible jump MCMC) Can we segment more complex images? Yes but you need a more complex MRF model 37 Objectives Combine different segmentation cues: Color & Texture [ICPR2002,ICIP2003] Color & Motion [ACCV2006,ICIP2007] …? How humans it? Multiple cues are perceived simultaneously and then they are integrated 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 a Markovian framework 39 Zoltan Kato: Markov Random Fields in Image Segmentation 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 interaction strength MAP ⇔ Energy minimization (U(ω)) Hammersley - Clifford Theorem : exp(-U(ω )) = P(ω ) = Z exp(-∑ VC (ω )) C Z Texture Model ⇔ Definition of clique potentials Zoltan Kato: Markov Random Fields in Image Segmentation Texture Layer: MRF model We extract two type of texture features Gabor feature is good at discriminating strongordered textures MRSAR feature is good at discriminating weakordered (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 40 Zoltan Kato: Markov Random Fields in Image Segmentation Examples of Texture Features Gabor features: MRSAR features: 41 Zoltan Kato: Markov Random Fields in Image Segmentation Combined Layer: Labels A label on the combined layer consists of a pair of color and texture/motion labels such that η =< η ,η > c c η sm ∈ Λm where η s ∈ Λ and The number of possible classes is Lc × Lm The combined layer selects the most likely ones s c s m s 42 43 Zoltan Kato: Markov Random Fields in Image Segmentation Combined Layer: Singleton potential Controls the number of classes: ( Vs (η s ) = R (10 Nη s ) + P ( L) −3 ) is the percentage of labels belonging to classη s L is the number of classes present on the combined layer Nη s Unlikely classes have a few pixels they will be penalized and removed to get a lower energy P (L) is a log-Gaussian term: Mean value is a guess about the number of classes, Variance is the confidence Zoltan Kato: Markov Random Fields in Image Segmentation Combined Layer: Doubleton potential Preferences are set in this order: Similar color and motion/texture labels Different color and motion/texture labels Similar color (resp motion/texture) and different motion/texture (resp color) labels These are contours visible only at one feature layer ⎧− α ⎪ ⎪ δ (η s ,η r ) = ⎨ ⎪+ α ⎪ ⎩ if η sc = η rc ,η sm = η rm if η sc ≠ η rc ,η sm ≠ η rm if η sc ≠ η rc ,η sm = η rm or η sc = η rc ,η sm ≠ η rm 44 Zoltan Kato: Markov Random Fields in Image Segmentation Inter-layer clique potential Five pair-wise interactions between a feature and combined layer Potential is proportional to the difference of the singleton potentials at the corresponding feature layer Prefers ωs and ηs having the same label, since they represent the labeling of the same pixel Prefers ωs and ηr having the same label, since we expect the combined and feature layers to be homogenous 45 46 Zoltan Kato: Markov Random Fields in Image Segmentation Color Textured Segmentation color segmentation texture color segmentation texture 47 Zoltan Kato: Markov Random Fields in Image Segmentation Color Textured Segmentation Original Image Texture Segmentation Color Segmentation Multi-cue Segmentation Texture Layer Color Layer Combined Layer Result Result Result Original Image Texture Segmentation Color Segmentation Multi-cue Segmentation Texture Layer Color Layer Combined Layer Result Result Result Zoltan Kato: Markov Random Fields in Image Segmentation Color & Motion Segmentation 48 Zoltan Kato: Markov Random Fields in Image Segmentation References Visit http://www.inf.u-szeged.hu/~kato/ 49 ... Random Fields in Image Segmentation Simulated Annealing 20 Zoltan Kato: Markov Random Fields in Image Segmentation Temperature Schedule 21 Zoltan Kato: Markov Random Fields in Image Segmentation. .. Zoltan Kato: Markov Random Fields in Image Segmentation Color Textured Segmentation color segmentation texture color segmentation texture 47 Zoltan Kato: Markov Random Fields in Image Segmentation. .. JSEG 36 Zoltan Kato: Markov Random Fields in Image Segmentation Benchmark results using the Berkeley Segmentation Dataset JSEG RJMCMC Zoltan Kato: Markov Random Fields in Image Segmentation Summary

Ngày đăng: 24/04/2014, 13:13

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan