基于C实现的采样复制的纹理图像修复方法_可去除遮罩物
暂无评分
资源描述CS7495FinalProject SoorajBhat
ObjectRemovalbyExemplar-basedInpainting USINGTHECODE
EverythingwasdoneinMatlabandMEX(i.e.aCfunctioncallablefrom
Matlab). First,theCcodeneedstobecompiled. AttheMatlab
prompt,type:
mexbestexemplarhelper.c
Youshouldthenbeabletorunthefollowing(whichtakes~2minsonmy
2GHzPentium4laptopwith256MBofRAM):
[i1,i2,i3,c,d,mov]=inpaint('bungee0.png','bungee1.png',[02550]);
Asmallerrun(~25seconds)wouldbe:
[i1,i2,i3,c,d,mov]=inpaint('bw0.png','bw2.png',[02550]);
Tovisualize:
plotall;
close;movie(mov);
SAMPLEIMAGES&RESULTS
*0.png Theoriginalimages('bw'and'bungee')
*{1,2}.png Thedifferentfillregionmasks.
*P2.png &nbs