arrayfire / arrayfire/arrayfire

Add HDR Tone Mapping Function

Open
#804 2 comments 0 reactions 1 assignee Claimed by @9prady9 View on GitHub
CPU CUDA feature OpenCL
Dominant language
C++
Stars
4.9k
Forks
555
Avg merge
1h 24m
Merged PRs (30d)
1

Description

This enables `af::Window::image()` to render HDR images
that are loaded using `af::loadImage`

Tentative API looks as follows

```
af::array toneMap(const array& hdrImage, const ToneMapFunc mapFunc); // C++ API
af_err af_tone_map(af_array* out, const af_array hdrImage, const af_tone_map_t mp); // C API
```

where `ToneMapFunc`/`af_tone_map_t` will be an enum with values such as follows
- Linear
- Logarithmic

Please feel free to add any tone mapping methods (some type of text book equations that we can use in an Open Source library) to the above list. I am still exploring on what kind of tone mapping algorithms are available.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.