https://github.com/ichlubna/doffromdepthmap
A tool for post-processing depth-of-field effect using an input image and corresponding depth map.
https://github.com/ichlubna/doffromdepthmap
depth-map depth-of-field dof opencl refocusing
Last synced: 2 months ago
JSON representation
A tool for post-processing depth-of-field effect using an input image and corresponding depth map.
- Host: GitHub
- URL: https://github.com/ichlubna/doffromdepthmap
- Owner: ichlubna
- License: mit
- Created: 2024-10-10T13:04:42.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-10-17T08:16:34.000Z (8 months ago)
- Last Synced: 2024-10-19T11:08:28.305Z (8 months ago)
- Topics: depth-map, depth-of-field, dof, opencl, refocusing
- Language: C++
- Homepage:
- Size: 148 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Depth-of-field from depth map
This program can be used to compute the depth of field from a depth map. The input is an image and a corresponding depth map plus focusing parameters. The result is the image with applied depth-of-field blur according to the depth and focusing. Use `--help` for the description of the parameters. The program uses OpenCL for GPU acceleration. Make sure to have the `kernel.cl` code in the same directory as the binary.Example:
```
./DoFFromDepthMap -i inputImage.png -d depthMap.hdr -s 9 -f 0.5 -b 0.1 -o blurred.png
```