
 
which are the nearby known pixels specified by the 
user. In 2000, Ruzon and Tomasi (Ruzon, 2000) 
have modelled the foreground and background as a 
mixture of un-oriented Gaussians. Furthermore, a 
Bayesian matting method has been proposed by Y 
Chang et al. (Chuang, 2001). In this framework, the 
foreground and background distributions are 
modelled using a mixture of oriented Gaussians and 
a maximum-likelihood criterion is used to estimate 
the final matte. 
2.1.2  Affinity based Image Matting 
In contrast of sampling-based methods, affinity 
based matting methods solve alpha values by 
defining various affinities between nearby pixels. 
The Poisson matting method proposed by (Sun, 
2004) solves the matte from its relative gradient 
field estimated from a given image. This work is 
based on the fact that an image can be modified by 
treating the gradient interactively or automatically 
and that the intensity changes in both the foreground 
and background are locally smooth. In 2005, Gragy 
(Grady, 2005) proposes the Random walks method 
which computes the alpha values based on the 
affinity between neighboring pixels. This affinity is 
calculated with the measurement of the color 
distances in the RGB channels by using a Local 
preserving projection (LPP). In 2007, Bai and Sapiro 
(Bai, 2007) have used weighted geodesic distances 
to estimate alpha values with a random walker 
technique. A recent affinity based method which 
offers both trimap and scribble based matting is 
Closed-Form matting has been proposed by Levin 
(Levin, 2006). To overcome the over smoothing 
problem in the closed form matting, Zhu (Zhu, 
2010) has introduced a new matting cost function by 
including a gradient constraint into the cost function 
and incorporating pixels from some special 
windows.  
However, semi-automatic matting methods are a 
time and memory consuming, so it is interesting to 
solve the alpha matte automatically without any user 
input. 
2.2 Automatic Image Matting 
The first automatic image matting method, known as 
Spectral Matting, has been proposed by Levin 
(Levin, 2008). This approach combines both spectral 
segmentation methods (Yu, 2003) with soft image 
matting. Based on analyzing the smallest 
eigenvectors of a defined Matting Laplacian matrix 
(Levin, 2006), a set of fuzzy matting components are 
automatically extracted. These components which 
are obtained by a linear transformation of the 
eigenvectors are then combined to form the final 
alpha matte based on minimizing a matte cost 
function. In this framework, a new mode of user 
control over the generated matte is proposed. The 
user can directly control the final result by 
presenting to him a various matting components to 
choose from. 
However, the spectral matting has some 
limitations and does not generate a high quality final 
alpha matte. Recently, modified spectral matting 
methods have been proposed to overcome some 
limitations and to obtain automatic and accurate 
alpha matte. Hu et al. (Hu, 2010) have introduced a 
spectral matting method based on the palette-based 
component classification. This type of classification 
allows classifying components as foreground 
regions, background regions or unknown regions.  
In 2012, Hu et al. (Hu, 2012) have proposed a 
spectral matting based on components-Hue-
Difference. Moreover, an improved spectral matting 
method by iterative K-means clustering and the 
modularity measure is proposed recently by Yu (Yu, 
2012).  
3  PROPOSED APPROACH 
Spectral matting (Levin, 2008) is based on some 
hypothesis which are sometimes not true in the case 
of natural images. Below, we identify some of these 
violations that lead to distort the quality of the final 
alpha matte: 
  Violation of the color-line model: in the case of 
complex intensity variation, the image data does not 
satisfy the color line model which is defined in next 
sub-section. 
  In real images, the affinity matrix that is used to 
define the matting Laplacian is rarely able to 
perfectly separate different pixel clusters or 
components.  
The proposed enhanced spectral matting solution 
based on the improvement of the matting Laplacian 
computation will be described below. 
3.1 Improved Spectral Matting 
Spectral matting relies on the evaluation of an 
affinity function between each pair of adjacent 
image pixels within small windows. Hence, pixels 
are implicitly described by their similarity to every 
other pixel in the input image. This similarity 
GradientColorTensorbasedApproachforSpectralMatting
427