Skip to content

Commit 346a652

Browse files
committed
Initial commit
0 parents  commit 346a652

14 files changed

+2329
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.obj
2+
*.o

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2013 Sk Mohammadul Haque
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
patchmatch
2+
==========
3+
4+
BruteForce Image Patchmatch
5+
6+
This library is a partial implementation of the method proposed in the article "Symmetric Smoothing Filters from Global Consistency Constraints" (Sk. Mohammadul Haque, Gautam Pai, Venu Madhav Govindu), In IEEE Transactions on Image Processing, 2014.
7+
8+
9+
If you use this library, please cite the following article.
10+
11+
>
12+
@article{symm,
13+
author = "Haque, Sk. Mohammadul and Pai, Gautam and Govindu, Venu Madhav",
14+
title = "Symmetric Smoothing Filters from Global Consistency Constraints",
15+
journal = "IEEE Transactions on Image Processing",
16+
year = "2014",
17+
url = { http://www.ee.iisc.ernet.in/labs/cvl/papers/consistency.pdf }
18+
}
19+
>
20+
21+
22+
Visit https://mohammadul.github.io/patchmatch for more details.

make.m

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
function make()
2+
disp('Compiling...');
3+
p = input('Parallel?(Y/N)','s');
4+
if(strcmpi(p,'y')==1)
5+
if(exist('OCTAVE_VERSION'))
6+
disp('Compile: P');
7+
str = ' -D__PARALLEL__';
8+
else
9+
disp('Compile: P');
10+
str = ' -largeArrayDims CXXFLAGS="\$CXXFLAGS -fopenmp" LDFLAGS="\$LDFLAGS -fopenmp" -D__PARALLEL__';
11+
end
12+
else
13+
disp('Compile: NP');
14+
str = ' -largeArrayDims';
15+
end
16+
17+
eval(['mex patchmatch.cpp' str]);
18+
disp('Done.');
19+
end
20+

patchmatch.cbp

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2+
<CodeBlocks_project_file>
3+
<FileVersion major="1" minor="6" />
4+
<Project>
5+
<Option title="patchmatch" />
6+
<Option pch_mode="2" />
7+
<Option compiler="gcc" />
8+
<Build>
9+
<Target title="Debug">
10+
<Option output="bin/Debug/patchmatch" prefix_auto="1" extension_auto="1" />
11+
<Option object_output="obj/Debug/" />
12+
<Option type="3" />
13+
<Option compiler="gcc" />
14+
<Option createDefFile="1" />
15+
<Option createStaticLib="1" />
16+
<Compiler>
17+
<Add option="-g" />
18+
<Add option="-fopenmp" />
19+
<Add option="-fPIC" />
20+
</Compiler>
21+
<Linker>
22+
<Add option="-fopenmp" />
23+
</Linker>
24+
</Target>
25+
<Target title="Release">
26+
<Option output="bin/Release/patchmatch" prefix_auto="1" extension_auto="1" />
27+
<Option object_output="obj/Release/" />
28+
<Option type="3" />
29+
<Option compiler="gcc" />
30+
<Option createDefFile="1" />
31+
<Option createStaticLib="1" />
32+
<Compiler>
33+
<Add option="-O3" />
34+
<Add option="-fopenmp" />
35+
<Add option="-fPIC" />
36+
</Compiler>
37+
<Linker>
38+
<Add option="-s" />
39+
<Add option="-fopenmp" />
40+
</Linker>
41+
</Target>
42+
</Build>
43+
<Compiler>
44+
<Add option="-Wall" />
45+
<Add option="-fexceptions" />
46+
<Add directory="/usr/local/MATLAB/R2011a/extern/include" />
47+
</Compiler>
48+
<Unit filename="patchmatch.cpp" />
49+
<Extensions>
50+
<code_completion />
51+
<envvars />
52+
<debugger />
53+
<lib_finder disable_auto="1" />
54+
<DoxyBlocks>
55+
<comment_style block="0" line="0" />
56+
<doxyfile_project />
57+
<doxyfile_build />
58+
<doxyfile_warnings />
59+
<doxyfile_output />
60+
<doxyfile_dot />
61+
<general />
62+
</DoxyBlocks>
63+
</Extensions>
64+
</Project>
65+
</CodeBlocks_project_file>

0 commit comments

Comments
 (0)