Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Markov random field: A brief introduction Tzu-Cheng Jen Institute of Electronics, NCTU 2007-03-28.

Similar presentations


Presentation on theme: "1 Markov random field: A brief introduction Tzu-Cheng Jen Institute of Electronics, NCTU 2007-03-28."— Presentation transcript:

1 1 Markov random field: A brief introduction Tzu-Cheng Jen Institute of Electronics, NCTU 2007-03-28

2 2 Outline Neighborhood system and cliques Markov random field Optimization-based vision problem Solver for the optimization problem

3 3 Neighborhood system and cliques

4 4 Prior knowledge In order to explain the concept of the MRF, we first introduce following definition: 1. i: Site (Pixel) 2. N i : The neighboring point of i 3. S: Set of sites (Image) 4. f i : The value at site i (Intensity) f1f1 f2f2 f3f3 f4f4 fifi f6f6 f7f7 f8f8 f9f9 A 3x3 imagined image

5 5 Neighborhood system The sites in S are related to one another via a neighborhood system. Its definition for S is defined as: where N i is the set of sites neighboring i. The neighboring relationship has the following properties: (1) A site is not neighboring to itself (2) The neighboring relationship is mutual f1f1 f2f2 f3f3 f4f4 fifi f6f6 f7f7 f8f8 f9f9

6 6 Neighborhood system: Example First order neighborhood system Second order neighborhood system Nth order neighborhood system

7 7 Neighborhood system: Example The neighboring sites of the site i are m, n, and f. The neighboring sites of the site j are r and x

8 8 Clique A clique C is defined as a subset of sites in S. Following are some examples

9 9 Clique: Example Take first order neighborhood system and second order neighborhood for example: Neighborhood systemClique types

10 10 Markov random field

11 11 Markov random field (MRF) View the 2D image f as the collection of the random variables (Random field) A random field is said to be Markov random field if it satisfies following properties Image configuration f f1f1 f2f2 f3f3 f4f4 fifi f6f6 f7f7 f8f8 f9f9

12 12 Gibbs random field (GRF) and Gibbs distribution A random field is said to be a Gibbs random field if and only if its configuration f obeys Gibbs distribution, that is: Image configuration f f1f1 f2f2 f3f3 f4f4 fifi f6f6 f7f7 f8f8 f9f9 U(f): Energy function; T: Temperature V i (f): Clique potential Design U for different applications

13 13 Markov-Gibbs equivalence Hammersley-Clifford theorem: A random field F is an MRF if and only if F is a GRF Proof(<=): Let P(f) be a Gibbs distribution on S with the neighborhood system N. f1f1 f2f2 f3f3 f4f4 fifi f6f6 f7f7 f8f8 f9f9 A 3x3 imagined image

14 14 Markov-Gibbs equivalence Divide C into two set A and B with A consisting of cliques containing i and B cliques not containing i: A 3x3 imagined image f1f1 f2f2 f3f3 f4f4 fifi f6f6 f7f7 f8f8 f9f9

15 15 Optimization-based vision problem

16 16 Denoising Noisy signal ddenoised signal f

17 17 MAP formulation for denoising problem The problem of the signal denoising could be modeled as the MAP estimation problem, that is, (Prior model) (Observation model)

18 18 MAP formulation for denoising problem Assume the observation is the true signal plus the independent Gaussian noise, that is Under above circumstance, the observation model could be expressed as U(d|f): Likelihood energy

19 19 MAP formulation for denoising problem Assume the unknown data f is MRF, the prior model is: Based on above information, the posteriori probability becomes

20 20 MAP formulation for denoising problem The MAP estimator for the problem is: ?

21 21 MAP formulation for denoising problem Define the smoothness prior: Substitute above information into the MAP estimator, we could get: Observation model (Similarity measure) Prior model (Reconstruction constrain)

22 22 Super-resolution Super-Resolution (SR): A method to reconstruct high- resolution images/videos from low-resolution images/videos

23 23 Super-resolution Illustration for super-resolution d (1) d (2) d (3) d (4) f (1) Use the low-resolution frames to reconstruct the high resolution frame

24 24 MAP formulation for super-resolution problem The problem of the super-resolution could be modeled as the MAP estimation problem, that is, (Prior model)(Observation model)

25 25 MAP formulation for super-resolution problem The conditional PDF can be modeled as the Gaussian distribution if the noise source is Gaussian noise We also assume the prior model is joint Gaussian distribution

26 26 MAP formulation for super-resolution problem Substitute above relation into the MAP estimator, we can get following expression: (Prior model)(Observation model)

27 27 Solver for the optimization problem

28 28 The solver of the optimization problem In this section, we will introduce different approaches for solving the optimization problem: 1. Brute-force search (Global extreme) 2. Gradient descent search (Local extreme, Usually) 3. Genetic algorithm (Global extreme) 4. Simulated annealing algorithm (Global extreme)

29 29 Gradient descent algorithm (1)

30 30 Gradient descent algorithm (2)

31 31 Simulation: SR by gradient descent algorithm Use 6 low resolution frames (a)~(f) to reconstruct the high resolution frame (g)

32 32 Simulation: SR by gradient descent algorithm

33 33 The problem of the gradient descent algorithm Gradient descent algorithm may be trapped into the local extreme instead of the global extreme

34 34 Genetic algorithm (GA) The GA includes following steps:

35 35 Simulated annealing (SA) The SA includes following steps:


Download ppt "1 Markov random field: A brief introduction Tzu-Cheng Jen Institute of Electronics, NCTU 2007-03-28."

Similar presentations


Ads by Google