![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/darktable.h"#include "common/gaussian.h"#include "develop/imageop.h"#include "develop/imageop_math.h"#include "develop/noise_generator.h"#include "iop/highlights/blur.h"#include "iop/highlights/chroma.h"#include "iop/highlights/coefficient_field.h"#include "iop/highlights/core.h"#include "iop/highlights/region.h"#include <math.h>#include <string.h>
Include dependency graph for region.c:Go to the source code of this file.
Functions | |
| static __DT_CLONE_TARGETS__ void | _region_gather (_hl_region_ctx_t *const ctx) |
| static __DT_CLONE_TARGETS__ void | _region_composite (_hl_region_ctx_t *const ctx) |
| void | _region_guided_filter (float *const restrict interp, const float *const restrict mask, const float *const restrict depth, const int width, const _hl_region_t *const region, const dt_dev_pixelpipe_t *pipe, const float solid_color, const int max_iter, const float noise_level) |
|
static |
Definition at line 81 of file region.c.
References DT_ALIGNED_ARRAY, dt_noise_generator_simd(), DT_NOISE_POISSONIAN, _hl_region_ctx_t::estimate, FALSE, flip, HL_PFOR, i, _hl_region_ctx_t::interp, _hl_region_ctx_t::mask, noise, _hl_region_ctx_t::noise_level, _hl_region_ctx_t::region, _hl_region_ctx_t::region_h, _hl_region_ctx_t::region_w, _hl_region_t::rx0, _hl_region_t::ry0, splitmix32(), state, TRUE, _hl_region_ctx_t::valid, width, _hl_region_ctx_t::width, x, and xoshiro128plus().
Referenced by _region_guided_filter().
|
static |
Definition at line 36 of file region.c.
References _hl_region_ctx_t::clip0, _hl_region_ctx_t::clip_depth, _hl_region_ctx_t::depth, _hl_region_ctx_t::estimate, HL_PFOR, i, _hl_region_ctx_t::interp, k, _hl_region_ctx_t::mask, _hl_region_ctx_t::region, _hl_region_ctx_t::region_h, _hl_region_ctx_t::region_pixels, _hl_region_ctx_t::region_w, _hl_region_t::rx0, _hl_region_t::ry0, _hl_region_ctx_t::valid, width, _hl_region_ctx_t::width, and x.
Referenced by _region_guided_filter().
| void _region_guided_filter | ( | float *const restrict | interp, |
| const float *const restrict | mask, | ||
| const float *const restrict | depth, | ||
| const int | width, | ||
| const _hl_region_t *const | region, | ||
| const dt_dev_pixelpipe_t * | pipe, | ||
| const float | solid_color, | ||
| const int | max_iter, | ||
| const float | noise_level | ||
| ) |
Definition at line 149 of file region.c.
References _aniso_chroma(), _cf_reconstruct(), _joint_core(), _region_composite(), _region_gather(), _selfdome(), dt_pixelpipe_cache_alloc_align, dt_pixelpipe_cache_alloc_align_float, dt_pixelpipe_cache_free_align, _hl_region_ctx_t::interp, MAX, _hl_region_t::rx0, _hl_region_t::rx1, _hl_region_t::ry0, _hl_region_t::ry1, void(), width, _hl_region_t::x0, _hl_region_t::x1, _hl_region_t::y0, and _hl_region_t::y1.
Referenced by _harmonic_reconstruct_host(), _region_guided_filter_cl_selftest(), process_harmonic_bayer(), and process_harmonic_xtrans().