-
inpainting
image inpainting
(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 di)
- 2010-06-19 21:00:49下载
- 积分:1
-
ding
选取windows系统自带的ding.wav信号作为分析对象,在Matlab软件平台下,利用函数wavread对音频信号进行采样,记住采样频率和采样点数,听一下原始声音sound(y, fs, bits)。
(2)音频信号的频谱分析,先画出音频信号的时域波形;然后对音频号进行快速傅里叶变换fft(y,N),N取32768,画出信号的频谱特性,加深对频谱特性的理解。
(3)根据频谱,反演时域特性,画出时域波形。寻找幅值最大的两个频率,此频率除以fft点数在乘以采样频率就是信号的主频,即可合成信号的时域图形,听一下声音。
(4)对原音频信号进行1024点的分段付立业分析meshgrid
(5)根据主要频线合成音频,并画出时域图形,试听合成效果。
(6)采用线性插值(linspace)和傅立业反变换(fliplr, ifft)分别合成音频,并画出时域图形,试听效果。
(err)
- 2009-01-13 16:23:47下载
- 积分:1
-
sgl_lib
VC与matlab混合编程方面的书籍,介绍全面,适用,是一本不错的书(英文)(VC and matlab mixing programming books, introduced comprehensively, applicable, is a good book (English))
- 2010-09-11 13:34:32下载
- 积分:1
-
filter
本资料含有低通/高通带通等matlab程序,程序简短但经典(This information contains a low pass/high pass band-pass and so on matlab program, the program short but classic)
- 2010-03-05 14:35:09下载
- 积分:1
-
BUCK-DC
DC MOTOR SPEED CONTROL USING BUCK CHOPPER
- 2012-12-30 18:46:48下载
- 积分:1
-
IncCond_MPPT
光伏电池最大功率点跟踪方法的扰动观察法的s函数(S function of the method of maximum power point tracking of photovoltaic cells perturbation and observation method)
- 2013-04-16 10:46:50下载
- 积分:1
-
wls_guji
求电力系统状态估计ieee9节点 的雅阁比矩阵
依次类推可以求多个节点的雅阁比矩阵(Seeking power system state estimation Accord than ieee9 node matrix)
- 2012-10-31 21:50:37下载
- 积分:1
-
wave-simulation-
说明: 此程序用来实现双相介质中波场的有限差分方法的数值模拟。(This process used to achieve the two-phase media finite difference method for wave field numerical simulation.
)
- 2011-03-04 14:05:01下载
- 积分:1
-
chapter2_9MatlabForModernCommunicationSystem
电子工业出版社出版的国外电子与通信教材系列一书:现代通信系统(MATLAB版)(第二版)中的脚本文件与M文件(第二章--九章)
(Electronics Industry Publishing House of foreign electronic communications materials and a series of books : Modern communication system (MATLAB) (2nd edition), the script file and M (Chapter II-- 1109))
- 2007-05-30 18:52:38下载
- 积分:1
-
Routines-in-C-C-plus-and-Matlab
This Ebook includes a number of examples of parabolic PDEs solved by programmes written in either C, C++, Fortran, or Matlab.
- 2013-03-28 09:16:04下载
- 积分:1