-
基于C实现的采样复制的纹理图像修复方法_可去除遮罩物
资源描述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 &nbs
- 2022-02-01 13:35:37下载
- 积分:1
-
实现FFT变换的函数。调用形式为y=bianhuan(xr,n) 其中,xr为要进行傅立叶变换的采样信号为输入,y为输出,n为信号xr的长度。...
实现FFT变换的函数。调用形式为y=bianhuan(xr,n) 其中,xr为要进行傅立叶变换的采样信号为输入,y为输出,n为信号xr的长度。-A function of the realization of FFT transform. Call the form of y = bianhuan (xr, n) of them, xr Fourier transform in order to carry out the sampling signal for the input, y is output, n is the length of the signal xr.
- 2022-02-15 20:20:27下载
- 积分:1
-
气象数据计算超等许,能够计算在风厂中气象数据的票性诡计
气象数据计算超等许,能够计算在风厂中气象数据的票性诡计-meteorological data superfine promised to calculate the wind plant meteorological data of the votes sexual tricks
- 2022-02-14 05:17:23下载
- 积分:1
-
viterbi213 硬判决 c语言代码
viterbi 硬判决是指解调器根据其判决门限对接收到的信号波形直接进行判决后输出0或1,换句话说,就是解调器供给译码器作为译码用的每个码元只取0或1两个值,以序列之间的汉明距离作为度量进行译码,适用于二进制对称信道(BSC)
- 2022-10-21 21:35:03下载
- 积分:1
-
SpectralMatting
spectral matting算法,很经典的利用模板图进行抠图的算法,包含一个头文件和cpp文件,直接调用接口即可
- 2022-03-23 16:56:16下载
- 积分:1
-
用外推法求函数最优区间的程序
用外推法求函数最优区间的程序-use extrapolation method for the optimal function of the interval procedures
- 2022-01-26 03:55:35下载
- 积分:1
-
ECC加密算法的C语言实现
已知椭圆曲线E23(16,10): y 2 ≡ x3 +16x +10mod23和它上的一个点G=(5,10), 计算G 的所有倍点。相当于用C语言编程实现了该题
- 2022-04-12 06:29:38下载
- 积分:1
-
三维电阻率正演模拟软件!!!加工。有限差分法
电阻率3D正演软件!!!用有限差分方法编写-3D resistivity forward modeling software! ! ! The finite difference method to prepare
- 2023-07-20 00:55:05下载
- 积分:1
-
压缩感知SL0算法
SLl0算法是一种压缩感知稀疏重构的新算法,通过利用高斯函数等光滑函数来逼近压缩感知中的0范数优化问题,将NP问题转化为光滑凸优化问题。根据本人测试,SL0算法计算效率显著高于传统的OMP、BP等算法,同时具有较好的计算精度,不过对噪声的容忍度略差。
- 2022-02-02 17:50:44下载
- 积分:1
-
优化设计的程序,包括一位搜索,及无约束搜索方法
优化设计的程序,包括一位搜索,及无约束搜索方法-Optimal design procedures, including a search, and the unconstrained search method
- 2023-06-20 06:30:03下载
- 积分:1