CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - AT Sample code
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - AT Sample code - List
[
2D Graphic
]
inpainting
DL : 0
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
Date
: 2025-12-17
Size
: 1.69mb
User
:
majb
[
2D Graphic
]
MATHWORKS_MTF
DL : 0
This code can be used to measure the pre-sampled MTF of an image, which is a quantity that describes the resolution of linear imaging systems. The code is based on measuring the pre-sample MTF using a precision machined edge that is aligned - with respect to the columns or rows of an image - at an gle between 1-5 degrees. To learn more about the pre-sampled MTF consult the references at the end of this script. When you run this script your image containing the edge with appear with the cropping tool. Crop your image to the region containing only the edge. Double-click your cropped area for the script to continue. A Gaussian fitting tool has been used in this code. You can download this tool on the Matlab central website here: http://www.mathworks.com/matlabcentral/fileexchange/11733-gaussian-curve-fit-This code can be used to measure the pre-sampled MTF of an image, which is a quantity that describes the resolution of linear imaging systems. The code is based on measuring the pre-sample MTF using a precision machined edge that is aligned- with respect to the columns or rows of an image- at an angle between 1-5 degrees. To learn more about the pre-sampled MTF consult the references at the end of this script. When you run this script your image containing the edge with appear with the cropping tool. Crop your image to the region containing only the edge. Double-click your cropped area for the script to continue. A Gaussian fitting tool has been used in this code. You can download this tool on the Matlab central website here: http://www.mathworks.com/matlabcentral/fileexchange/11733-gaussian-curve-fit
Date
: 2025-12-17
Size
: 394kb
User
:
许仙
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.