36#include "hdrl_combine.h"
38#include "hdrl_utils.h"
39#include "hdrl_sigclip.h"
79hdrl_imagelist_combine(
const cpl_imagelist * data,
80 const cpl_imagelist * errors,
81 hdrl_collapse_imagelist_to_image_t * method,
86 cpl_ensure_code(data && errors, CPL_ERROR_NULL_INPUT);
87 cpl_ensure_code(out && err && contrib, CPL_ERROR_NULL_INPUT);
88 cpl_ensure_code(cpl_imagelist_get_size(data) > 0, CPL_ERROR_ILLEGAL_INPUT);
89 cpl_ensure_code(cpl_imagelist_get_size(data) ==
90 cpl_imagelist_get_size(errors), CPL_ERROR_ILLEGAL_INPUT);
92 hdrl_collapse_imagelist_to_image_call(method, data, errors,
93 out, err, contrib, NULL);
95 return cpl_error_get_code();