Twinklebear / oidn-rs

Rust bindings to Intel's OpenImageDenoise Library
MIT License
24 stars 12 forks source link

Support custom weights for RT #14

Open Delamare2112 opened 3 years ago

Delamare2112 commented 3 years ago

When using custom training data, I believe that the weights parameter needs to be set using the void oidnSetSharedFilterData(OIDNFilter filter, const char* name, void* ptr, size_t byteSize); call. Just like albedo and normal but with data instead of an image.

https://github.com/OpenImageDenoise/oidn/blob/v1.2.4/README.md#filter
https://github.com/OpenImageDenoise/oidn/blob/v1.2.4/README.md#rt

Twinklebear commented 3 years ago

This would be good to have in, I'll add it to the todo list.