4 #ifndef __DENOISING_H__
5 #define __DENOISING_H__
17 #include <OpenImageIO/imageio.h>
81 const std::vector<string> &neighbor_channelnames);
111 bool load(
const string &in_filepath,
string &
error);
120 float *input_pixels);
123 float *input_pixels);
void read_pixels(const DenoiseImageLayer &layer, const BufferParams ¶ms, float *input_pixels)
bool parse_channels(const ImageSpec &in_spec, string &error)
vector< DenoiseImageLayer > layers
bool read_previous_pixels(const DenoiseImageLayer &layer, const BufferParams ¶ms, float *input_pixels)
bool load(const string &in_filepath, string &error)
unique_ptr< ImageInput > in_previous
bool load_previous(const string &in_filepath, string &error)
bool save_output(const string &out_filepath, string &error)
DenoiserPipeline * denoiser
DenoiseTask(Device *device, DenoiserPipeline *denoiser, int frame)
bool load_input_pixels(int layer)
std::unique_ptr< Denoiser > denoiser
DenoiserPipeline(DeviceInfo &device_info, const DenoiseParams ¶ms)
#define CCL_NAMESPACE_END
static void error(const char *str)
vector< int > previous_output_to_image_channel
vector< int > input_to_image_channel
bool match_channels(const std::vector< string > &channelnames, const std::vector< string > &neighbor_channelnames)
bool detect_denoising_channels()
vector< int > output_to_image_channel
vector< string > channels
vector< int > layer_to_image_channel