Download presentation

Presentation is loading. Please wait.

Published byTheodore Banfield Modified over 3 years ago

1
Presenter ： Kuang-Jui Hsu Date ： 2011/5/12(Tues.)

2
Outline Introduction Image segmentation by graph cut The GrabCut segmentation alog. Transparency Results and conclusion

3
Introduction What is the GrabCuts?? The user drags a rectangle loosely around an object. The object is then extracted automatically.

4
Previous approaches to interactive matting Magic Wand Starts with a user-specified point or region Compute a region of connected pixels All the selected pixels fall within some adjustable tolerance of the colour statistics of the specified region.

5
Previous approaches to interactive matting Intelligent Scissors Allow a user to choose a minimum cost contour The minimum cost path from the cursor position back to the last seed If the computed path deviates from the desired one, addition user-specified seed points are needed.

6
Previous approaches to interactive matting Bayes Matting Models colour distribution probabilistically The user specifies a trimap T = { } Alpha values are computed over the region

7
Previous approaches to interactive matting Knockout 2 A proprietary plug-in for Photoshop which is driven from a user-defined trimap.

8
Previous approaches to interactive matting Graph Cut A powerful optimisation technique that can be used in a setting similar to Bayes Matting, including trimaps and probabilistic

9
Proposed system: GrabCut 1.Obtain a “hard segmentation using iterative graph cut. 2. Use by border matting, for the boundary. 3. Full transparency, other than at the border.

10
Image segmentation by graph Cut Make two enhancements to the graph cuts mechanism Iterative estimation Incomplete labelling This allows GrabCut to put light load on the user The user is indicating a region of background, and is free of any need to make foreground region Ideally, a matting tool should be able to produce continuous alpha values

11
Image segmentation Given an initial trimap T The image is an array z of grey values, indexed by the index n The segmentation of the image is expressed as an array of opacity values at each pixel. General, but for hard segmentation, with 0 for background and with 1 for foreground.

12
Image segmentation The parameter describe image foreground and background grey-level distribution. background foregroundhistograms of grey values The segmentation task is to infer the unknown opacity variables from the given image data z and the model

13
Segmentation by energy minimisation Energy function: Date term: Smoothness term: the indicator function taking values 0,1 the set of pairs of neighboring The Euclidean distance of neighboring pixels

14
Segmentation by energy minimisation denotes expectation over an image sample The choice of β ensures that the exponential term switches appropriately between high and low contrast Obtained as 50 By optimizing performance against truth ground over a training set of 15 images

15
Segmentation by energy minimisation Energy function: Minimisation is done using a standard minimum cut algorithm

16
The GrabCut segmentation algorithm This section will outline three development: 1.The monochrome image model is replaced for colour by a Gaussian Mixture Model(GMM) in place of histograms 2. Use iterative procedure that alternate between estimation and parameter learning 3. Users are relaxed by allowing incomplete labelling - only specify for the trimap

17
Colour data modeling Consider the pixels in RGB colour space Impractical to construct adequate colour space histograms Use 2 GMMs, one for the background and the other for the foreground. Taken to be a full-covariance Gaussian mixture with K components( typically k = 5) An addition vector k = is introduced, with, assigning to each pixel

18
Colour data modeling Energy function: Date term Smoothness term Gaussian probability distributionMixture weighting corfficients

19
Colour data modeling Gaussian probability distribution Using the multivariate Gaussian probability distribution

20
Colour data modeling For example, give a GMM component k in the foreground The mean μ(α, k) and Σ (α, k) is computed from the F(k) Smoothness term: Almost unchanged expect for the contrast term by using Euclidean distance in colour space

21
Segmentation by iterative energy minimization

24
Practical benefits of iterative minimisatation This is apparent in two ways: The degree of user editing required, after initialisation and optimisation, is reduced. The initial interaction can be simpler, for example by allowing incomplete labelling by the user.

25
Practical benefits of iterative minimisatation This is apparent in two ways: The degree of user editing required, after initialisation and optimisation, is reduced. The initial interaction can be simpler, for example by allowing incomplete labelling by the user.

26
User interaction and incomplete trimaps Incomplete trimaps Further user editing

27
Incomplete trimaps Incomplete labelling becomes more feasible and more convenient for users. Only specify the background, and let the foreground Iterative minimiastion deals with this incompleteness by allowing provisional labels on some pixels (in the foreground ) which can subsequently retracted In this paper, the initial is determined by the user as a strip of pixels around the outside of marketed rectangle

28
Segmentation by iterative energy minimization alog.

29
Transparency A matting tool should be able to produce continuous alpha values Hard segmentation can be augment by “border matting” In border matting, the full transparency is allowed in a narrow strip around the hard segmentation Deal with the problem of matting in the presence of blur and mixed along smooth object boundaries The technical issue: Estimating an alpha value for the strip without generating artefacts Recovering the foreground colour, free of colour bleeding form the backound

30
Border matting Begin with a closed contour C, obtained by fitting a polyline to the boundary The yellow one A new trimap is computed is the set of pixels in a ribbon of width pixels either side of C The goal is to compute the map, and in order to do this robustly, a strong model is assumed for the shape of α- profile with With two important additions : 1.Regularisation to enhance the quality of estimated α-map 2.A dynamic programming (DP) algorithm for estimating α throughout

31
Border matting Let t = 1, …, T be a parameterization of contour C, periodic with period T, as curve is cloesed. An index t(n) is assigned to each pixel t(n)t(n) The α-profile is taken to be a soft step- function g: Distance from pixel n to contour C Determine the centre and width respectively of the transition from 0 to 1 in α-profile Assume that all pixels with the same index t share values of the parameter

32
Border matting Parameter values are estimated by minimizing the following energy function using DP over t : Where is a smoothing regularizer: Its role is to encourage α-values to vary smooth as t increase, along curve C 50 1000 If the contour C is closed, minimization cannot be done exactly using single-pass DP, and approximate by using two complete passes of DP, assuming that the first pass gives the optimal profile for t = T / 2 Date term: denotes a Gaussian probability density for z with mean μ and covariance Σ

33
Border matting Date term: : size pixels centred on on the boundary C at t

34
Foreground estimation Estimate foreground pixel colour without bleeding in from the background of the source image. Bleeding occur with Bayes matting because of the probabilistic algorithm used which cannon do so precisely Avoid this by stealing pixels from the foreground itself

35
Foreground estimation First, the bayes matte algorithm is applied to obtain an estimate of foreground colour on a pixel Second, from the neighbourhood as defined above, the pixel colour that is mose similar to is stolen to form the foreground colour Finally, the combined results of border matting, using both regularised alpha computation and foreground stealing

36
Foreground estimation result

37
Results and conclusion Regions of low contrast at the foreground to background

38
Results and conclusion Camouflage, in which the true foreground and background distributions overlap partially in the colour space

39
Results and conclusion Background material inside the user rectangle happens not to adequately represented in the background

40
Results and conclusion Demonstrates that the border matting method can cope with moderately difficult alpha mattes

41
Results and conclusion For difficult alpha mattes, the matting brush is needed

42
Results and conclusion A target rectangle of size pixels requires 0.9 sec for initial segmentation and 0.12 sec after each brush stroke on a 2.5 GHz CPU with 512 MB RAM

Similar presentations

OK

Carolina Galleguillos, Brian McFee, Serge Belongie, Gert Lanckriet Computer Science and Engineering Department Electrical and Computer Engineering Department.

Carolina Galleguillos, Brian McFee, Serge Belongie, Gert Lanckriet Computer Science and Engineering Department Electrical and Computer Engineering Department.

© 2018 SlidePlayer.com Inc.

All rights reserved.

Ads by Google

Ppt on power sector in india Ppt on teacher's day card Ppt on land resources and development Ppt on fdi in india download Ppt on different model of atoms Ppt on condition monitoring training Ppt on case study of tqm Ppt on school management system Seminar ppt on 5 pen pc technology Using ppt on mac