forked from mdelbra/rhf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
99 lines (75 loc) · 2.7 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
Ray Histogram Fusion
======================================================================
Version 1.3 - November 20, 2015
by Mauricio Delbracio <[email protected]>
Pablo Muse
Antoni Buades
Jean-Michel Morel
Introduction
-----------
RHF is a multi-scale filter that accelerates Monte Carlo renderers.
Each pixel in the image is characterized by the colors of the rays
that reach its surface. The RHF algorithm uses a statistical
distance to compare with each other the ray color distributions
associated with different pixels, at each scale. Based on this
distance, it decides whether two pixels can share their rays or not.
Files
-----
COPYING
Makefile
README.txt
VERSION
exrcrop.cpp
exrdiff.cpp
exrtopng.cpp
io_exr.cpp
io_exr.h
io_png.c
io_png.h
libauxiliar.cpp
libauxiliar.h
libdenoising.cpp
libdenoising.h
rhf.cpp
extras/pbrt-v2-rhf (A modified version of PBRT-v2)
Requirements
------------
- OpenEXR for reading EXR images
Compilation
-----------
Simply use the provided makefile, with the command `make`. You need to set
the directory where the libraries: openEXR have the respective
header and libraries files.
In case OpenMP is available, you can compile with OpenMP
support with the command `make OMP=1`.
Running
-------
Usage: ./rhf [options] <input file> <output file>
Only EXR images are supported.
Options:
-h <hist> The filename with the histogram
-d <float> Max-distance between patchs
-k <int> Minimum number of similar patchs (default: 2)
-b <int> Half the block size (default: 6)
-w <int> Half the windows size (default: 1)
-s <int> Number of Scales - Multi-Scale (default: 2)
A running Example
./rhf toasters_00256.exr -h toasters_00256_hist.exr -d 0.8 toasters_filt.exr
Please report bugs in RHF to <[email protected]>.
Copyright and License
---------------------
RHF - Ray Histogram Fusion
Copyright (c) 2014, A. Buades <[email protected]>,
M. Delbracio <[email protected]>,
J-M. Morel <[email protected]>,
P. Muse <[email protected]>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.