matting
所属分类:图形图像处理
开发工具:matlab
文件大小:3253KB
下载次数:443
上传日期:2010-11-01 17:50:48
上 传 者:
troyhp
说明: 图像抠图是将图像的目标物体从背景图像分割出来的技术,这段代码是用MATLAB实现的一段抠图的代码
(Image matting is the image of the target object from the background image segmentation techniques, this code is implemented using MATLAB code section of matting)
文件列表:
matting\dandelion_clipped.bmp (133866, 2006-04-20)
matting\dandelion_clipped_m.bmp (133868, 2006-04-20)
matting\dandelion_clipped_res_alpha.bmp (45682, 2006-04-21)
matting\downSmpIm.m (300, 2006-04-20)
matting\fire.bmp (720054, 2006-04-20)
matting\fire_m.bmp (720056, 2006-04-20)
matting\fire_res_alpha.bmp (241078, 2006-04-21)
matting\getGMatByMask.m (2146, 2006-04-20)
matting\getLaplacian1.m (1710, 2006-04-20)
matting\getLinearCoeff.m (1192, 2006-04-20)
matting\imIndexToVect.m (137, 2006-04-20)
matting\kid1.bmp (338266, 2006-04-20)
matting\kid1_m.bmp (338240, 2006-04-20)
matting\kid1_res_alpha.bmp (114254, 2006-04-21)
matting\kid2.bmp (272538, 2006-04-20)
matting\kid2_m.bmp (272540, 2006-04-20)
matting\kid2_res_alpha.bmp (91906, 2006-04-21)
matting\KNhair.bmp (278442, 2006-04-20)
matting\KNhair_m.bmp (278444, 2006-04-20)
matting\peacock.bmp (720054, 2006-04-20)
matting\peacock_m.bmp (720056, 2006-04-20)
matting\peacock_res_alpha.bmp (241078, 2006-04-21)
matting\rabbit.bmp (465974, 2006-04-21)
matting\rabbit_m.bmp (465974, 2006-04-21)
matting\rabbit_res_alpha.bmp (157598, 2006-04-21)
matting\runMatting.m (751, 2006-04-20)
matting\runMatting_Dandelion.m (93, 2006-04-20)
matting\runMatting_Fire.m (98, 2006-04-20)
matting\runMatting_Hair.m (67, 2006-04-20)
matting\runMatting_Kid1.m (111, 2006-04-20)
matting\runMatting_Kid2.m (63, 2006-04-20)
matting\runMatting_Peacock.m (120, 2006-04-20)
matting\runMatting_Rabbit.m (127, 2006-04-20)
matting\runMatting_Teddy.m (114, 2006-04-20)
matting\runMatting_TeddyEar.m (123, 2006-04-20)
matting\solveAlpha.m (308, 2006-04-20)
matting\solveAlphaC2F.m (1089, 2006-04-20)
matting\solveFB.m (1112, 2006-04-20)
matting\teddy.bmp (607414, 2006-04-20)
... ...
This package contains an implementation of the matting algorithm described in
the CVPR2006 paper:
"A Closed Form Solution to Natural Image Matting"
by A.Levin D.Lischinski and Y.Weiss
Usage of this code is free for research purposes only.
Please refer to the above publication if you use this code.
Copyrights: The Hebrew University of Jerusalem, 2006.
All rights reserved.
Written by Anat Levin.
Please address comments/suggestions/bugs to alevin@cs.huji.ac.il
-------------------------------------------------------------------------------
To run the matting algorithm, use the runMatting script.
The scripts runMatting_*.m are example scripts, calling runMatting on the
images used in the paper.
simple examples to start with, could be:
runMatting_Kid2.m, runMatting_Hair.m, runMatting_Dandelion.m
The runMatting script uses the arguments described below.
Input arguments:
img_name - input image file
scribs_img_name - input image with black&white scribbles
Note that since the code uses a simple diff to find the
scribbled pixels, you should not place scribbles with fuzzy
boundaries. Photoshop users- use pencil tool, hard brushes.
Output arguments:
alpha, F,B - representing the alpha matte and the estimation of foreground
and background colors.
Additional (optional) input arguments: (if you don't define them a default
value will be used)
epsilon - regularization term (see eq 3 in the paper)
The default value is epsilon=0.1^7. For jpeg or noisy images use
epsilon=0.1^5.
win_size - size of the windows in which the linear model is used
(default is 3x3 windows)
For running matting using multi resolutions:
levels_num - number of levels to use
active_levels_num - use active_levels_num<=levels_num.
If active_levels_num
近期下载者:
相关文件:
收藏者: