inpainting

所属分类:图形图像处理
开发工具:C/C++
文件大小:1742KB
下载次数:308
上传日期:2009-05-12 09:49:33
上 传 者mars_0705
说明:  基于C实现的采样复制的纹理图像修复方法。可去除遮罩物
(C based on the realization of the sample copy of the texture image restoration method. Mask material can be removed)

文件列表:
inpainting\bestexemplarhelper.c (2181, 2009-04-02)
inpainting\bestexemplarhelper.dsp (3543, 2009-03-30)
inpainting\bestexemplarhelper.dsw (561, 2009-04-02)
inpainting\bestexemplarhelper.ncb (33792, 2009-04-02)
inpainting\bestexemplarhelper.opt (48640, 2009-04-02)
inpainting\bestexemplarhelper.plg (2925, 2009-04-02)
inpainting\bungee0.png (146083, 2004-11-28)
inpainting\bungee1.png (122960, 2004-11-29)
inpainting\bungeeA.png (111352, 2004-11-29)
inpainting\bungeeP2.png (33537, 2004-11-29)
inpainting\bungeeP5.png (233955, 2004-11-29)
inpainting\bw0.png (1327, 2004-11-29)
inpainting\bw1.png (1819, 2004-11-29)
inpainting\bw2.png (1609, 2004-11-29)
inpainting\bwA.png (1327, 2004-11-29)
inpainting\bwP2.png (11889, 2004-11-29)
inpainting\bwP5.png (14368, 2004-11-29)
inpainting\Debug\bestexemplarhelper.pch (165408, 2009-04-02)
inpainting\Debug\vc60.idb (33792, 2009-04-02)
inpainting\Debug\vc60.pdb (36864, 2009-04-02)
inpainting\index.html (10667, 2004-11-29)
inpainting\inpaint.asv (6013, 2009-04-01)
inpainting\inpaint.m (6078, 2009-04-02)
inpainting\isophote.png (34114, 2004-11-29)
inpainting\plotall.m (580, 2004-11-29)
inpainting\slide.html (592, 2004-11-29)
inpainting\slide.png (308239, 2004-11-29)
inpainting\slide.ppt (411136, 2004-11-29)
inpainting\slidesmall.png (394123, 2004-11-29)
inpainting\Debug (0, 2009-04-02)
inpainting (0, 2009-04-02)

CS7495 Final Project Sooraj Bhat Object Removal by Exemplar-based Inpainting USING THE CODE Everything was done in Matlab and MEX (i.e. a C function callable from Matlab). First, the C code needs to be compiled. At the Matlab prompt, type: mex bestexemplarhelper.c You should then be able to run the following (which takes ~2mins on my 2GHz Pentium 4 laptop with 256MB of RAM): [i1,i2,i3,c,d,mov] = inpaint('bungee0.png','bungee1.png',[0 255 0]); A smaller run (~25 seconds) would be: [i1,i2,i3,c,d,mov] = inpaint('bw0.png','bw2.png',[0 255 0]); To visualize: plotall; close; movie(mov); SAMPLE IMAGES & RESULTS *0.png The original images ('bw' and 'bungee') *{1,2}.png The different fill region masks. *P2.png Plots of confidence and data terms. *P5.png Plots of original, fill region, inpainted images and confidence and data terms. Other images in the dir contain redundant information. I didn't include the movies since they are big, but they are available on my project page (AVI format).

近期下载者

相关文件


收藏者