-
基于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
-
大约有10种排序方法,如堆排序、快速排序、归并排序、插入排序、外壳排序、选择排序、早泡排序、线性排序、地址选择排序和基排序。我自己提出了一种简化的快速排序。...
大约有10种排序方法,如堆排序、快速排序、归并排序、插入排序、外壳排序、选择排序、早泡排序、线性排序、地址选择排序和基排序。我自己提出了一种简化的快速排序。-about 10 species of sequencing methods, such as heap sort, quick sort, merge, in order to insert sequencing, shell sort, select, in order of ranking as foam, linear ordering, sequencing and address choice-based ranking. I propose a simplified Quick Sort.
- 2022-11-06 10:35:04下载
- 积分:1
-
bp算法及改进bp算法,已测试,附带说明文档
bp算法及改进bp算法,已测试,附带说明文档-bp bp algorithm and improved algorithm, testing, documentation, collateral
- 2023-02-05 16:30:03下载
- 积分:1
-
简单算法程序
单纯型法程序算法-simple algorithm Act procedures
- 2022-01-26 02:39:26下载
- 积分:1
-
4个关于二维积分函数的C程序,以及示例,来自《C语言数值常用程序》,所以程序均经过本人测试可以正常使用!...
4个关于二维积分函数的C程序,以及示例,来自《C语言数值常用程序》,所以程序均经过本人测试可以正常使用!-four two-dimensional integral function of the C procedures, as well as examples from the "C language commonly used numerical procedures," and so I have to undergo testing can be used normally.
- 2023-04-07 09:55:03下载
- 积分:1
-
公有继承举例
公有继承的举例,派生类的声明,通过派生类对象访问基类的公有成员。
- 2022-02-16 04:06:40下载
- 积分:1
-
在GPU上实现数值模拟技术(线性方程组)的通用架构,
在GPU上实现数值模拟技术(线性方程组)的通用架构,-In the GPU to achieve numerical simulation techniques (linear equations) generic framework,
- 2022-03-23 05:23:41下载
- 积分:1
-
这是我学习数字信号处理时编写的程序!功能就是显示一些常用的函数的图形!并可以做FFT计算!...
这是我学习数字信号处理时编写的程序!功能就是显示一些常用的函数的图形!并可以做FFT计算!-This is what I have learned from digital signal processing to prepare the procedures! Function is to show that some of the functions commonly used graphics! And FFT calculation can be done!
- 2022-08-26 07:30:20下载
- 积分:1
-
长整数计算 用于计算长整数的加减乘除 如:100,000 ,000+200,000 ,000=300,000 ,...
长整数计算 用于计算长整数的加减乘除 如:100,000 ,000+200,000 ,000=300,000 ,-long integer calculations used in the calculation of long integer arithmetic such as : 100,000 ,000 300,000 ,000 200,000,000,000 =
- 2023-05-01 22:05:03下载
- 积分:1
-
An Optimized Formula for Alpha Blending Pixels
An Optimized Formula for Alpha Blending Pixels
- 2022-07-26 18:28:02下载
- 积分:1