All Projects → mdelbra → rhf

mdelbra / rhf

Licence: AGPL-3.0 license
Ray Histogram Fusion

Programming Languages

C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language
Yacc
648 projects
DTrace
51 projects
python
139335 projects - #7 most used programming language
Makefile
30231 projects
LLVM
166 projects
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/>.
 
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].