https://github.com/liby99/fourierdepthoffield
My own implementation of C. Soler's 2009 Fourier Depth of Field Paper
https://github.com/liby99/fourierdepthoffield
Last synced: 3 months ago
JSON representation
My own implementation of C. Soler's 2009 Fourier Depth of Field Paper
- Host: GitHub
- URL: https://github.com/liby99/fourierdepthoffield
- Owner: Liby99
- Created: 2018-02-05T00:32:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-26T07:34:18.000Z (about 6 years ago)
- Last Synced: 2025-01-21T10:51:05.422Z (5 months ago)
- Language: C++
- Homepage:
- Size: 48.7 MB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fourier Depth of Field
My own implementation of the adaptive sampling method for defocus blur by
[Cyril Soler et al, Fourier Depth of Field, 2009](https://github.com/Liby99/FourierDepthOfField/blob/master/docs/paper/a18-soler.pdf).
This project itself contains a self-written path tracer and based on that we
added Fourier analysis to do adaptive sampling. Finally we are able to produce
some very interesting results.![header]
## Reports
- [Milestone Report](https://github.com/Liby99/FourierDepthOfField/blob/master/docs/milestone.md)
- [Final Report](https://github.com/Liby99/FourierDepthOfField/blob/master/docs/final.md)## Installation
First clone the repo recursively
``` bash
$ git clone --recursive https://github.com/Liby99/FourierDepthOfField.git
```Then use CMake and Make to build the program
``` bash
$ mkdir build
$ cd build
$ cmake ..
$ make
```Finally you can go to the test folder and run any test you want
``` bash
$ cd test
$ ./cubes_fdof
```## File Structures
```
docs/ <- Contains Documents
include/ <- GLM, Hierarchical Importance Sampling Libraries
res/ <- Resources: Models, Textures
script/ <- Other scripts for building and compilation
src/ <- Source code
- extern/ <- Header Files
- intern/ <- CPP Files
test/ <- Test code, will be compiled to test/ folder and include main() for each file
```## Disclaimer
We have also included the
[Victor et al, Hierarchical Importance Sampling, 2004](https://github.com/Liby99/FourierDepthOfField/blob/master/docs/paper/importancesampling.pdf)
paper and its source code (include/quasi_sampler), though we modified a little
bit to adapt it into our own structures.[header]: docs/res/final/header.png