Go to the source code of this file.
|
| __DT_CLONE_TARGETS__ void | dt_masks_extend_border (float *const restrict mask, const int width, const int height, const int border) |
| |
| void | _masks_blur_5x5_coeff (float *c, const float sigma) |
| |
| void | dt_masks_blur_9x9_coeff (float *c, const float sigma) |
| |
| void | dt_masks_blur_9x9 (float *const restrict src, float *const restrict out, const int width, const int height, const float sigma) |
| |
| void | _masks_blur_13x13_coeff (float *c, const float sigma) |
| |
| __DT_CLONE_TARGETS__ void | dt_masks_calc_rawdetail_mask (float *const restrict src, float *const restrict mask, float *const restrict tmp, const int width, const int height, const dt_aligned_pixel_t wb) |
| |
| static float | calcBlendFactor (float val, float threshold) |
| |
| void | dt_masks_calc_detail_mask (float *const restrict src, float *const restrict out, float *const restrict tmp, const int width, const int height, const float threshold, const gboolean detail) |
| |
◆ FAST_BLUR_5
Value: ( \
blurmat[0] * ((src[
i -
w2 - 1] + src[
i -
w2 + 1]) + (src[
i -
w1 - 2] + src[
i -
w1 + 2]) + (src[
i +
w1 - 2] + src[
i +
w1 + 2]) + (src[
i +
w2 - 1] + src[
i +
w2 + 1])) + \
blurmat[1] * (src[
i -
w2] + src[
i - 2] + src[
i + 2] + src[
i +
w2]) + \
blurmat[2] * (src[
i -
w1 - 1] + src[
i -
w1 + 1] + src[
i +
w1 - 1] + src[
i +
w1 + 1]) + \
blurmat[3] * (src[
i -
w1] + src[
i - 1] + src[
i + 1] + src[
i +
w1]) + \
const float i
Definition colorspaces_inline_conversions.h:440
#define w2
Definition lmmse.c:60
#define w1
Definition lmmse.c:59
◆ FAST_BLUR_9
Value: ( \
blurmat[12] * (src[
i -
w4 - 2] + src[
i -
w4 + 2] + src[
i -
w2 - 4] + src[
i -
w2 + 4] + src[
i +
w2 - 4] + src[
i +
w2 + 4] + src[
i +
w4 - 2] + src[
i +
w4 + 2]) + \
blurmat[11] * (src[
i -
w4 - 1] + src[
i -
w4 + 1] + src[
i -
w1 - 4] + src[
i -
w1 + 4] + src[
i +
w1 - 4] + src[
i +
w1 + 4] + src[
i +
w4 - 1] + src[
i +
w4 + 1]) + \
blurmat[10] * (src[
i -
w4] + src[
i - 4] + src[
i + 4] + src[
i +
w4]) + \
blurmat[9] * (src[
i -
w3 - 3] + src[
i -
w3 + 3] + src[
i +
w3 - 3] + src[
i +
w3 + 3]) + \
blurmat[8] * (src[
i -
w3 - 2] + src[
i -
w3 + 2] + src[
i -
w2 - 3] + src[
i -
w2 + 3] + src[
i +
w2 - 3] + src[
i +
w2 + 3] + src[
i +
w3 - 2] + src[
i +
w3 + 2]) + \
blurmat[7] * (src[
i -
w3 - 1] + src[
i -
w3 + 1] + src[
i -
w1 - 3] + src[
i -
w1 + 3] + src[
i +
w1 - 3] + src[
i +
w1 + 3] + src[
i +
w3 - 1] + src[
i +
w3 + 1]) + \
blurmat[6] * (src[
i -
w3] + src[
i - 3] + src[
i + 3] + src[
i +
w3]) + \
blurmat[5] * (src[
i -
w2 - 2] + src[
i -
w2 + 2] + src[
i +
w2 - 2] + src[
i +
w2 + 2]) + \
blurmat[4] * (src[
i -
w2 - 1] + src[
i -
w2 + 1] + src[
i -
w1 - 2] + src[
i -
w1 + 2] + src[
i +
w1 - 2] + src[
i +
w1 + 2] + src[
i +
w2 - 1] + src[
i +
w2 + 1]) + \
blurmat[3] * (src[
i -
w2] + src[
i - 2] + src[
i + 2] + src[
i +
w2]) + \
blurmat[2] * (src[
i -
w1 - 1] + src[
i -
w1 + 1] + src[
i +
w1 - 1] + src[
i +
w1 + 1]) + \
blurmat[1] * (src[
i -
w1] + src[
i - 1] + src[
i + 1] + src[
i +
w1]) + \
#define w4
Definition lmmse.c:62
#define w3
Definition lmmse.c:61
◆ _masks_blur_13x13_coeff()
| void _masks_blur_13x13_coeff |
( |
float * |
c, |
|
|
const float |
sigma |
|
) |
| |
- Todo:
- : are you for real ? managing arrays with loops and index shift much ?
References i, k, kernel(), and sigma.
◆ _masks_blur_5x5_coeff()
| void _masks_blur_5x5_coeff |
( |
float * |
c, |
|
|
const float |
sigma |
|
) |
| |
- Todo:
- : are you for real ? managing arrays with loops and index shift much ?
References i, k, kernel(), and sigma.
◆ calcBlendFactor()
| static float calcBlendFactor |
( |
float |
val, |
|
|
float |
threshold |
|
) |
| |
|
inlinestatic |
◆ dt_masks_blur_9x9()
| void dt_masks_blur_9x9 |
( |
float *const restrict |
src, |
|
|
float *const restrict |
out, |
|
|
const int |
width, |
|
|
const int |
height, |
|
|
const float |
sigma |
|
) |
| |
References __OMP_FOR_SIMD__, dt_masks_blur_9x9_coeff(), dt_masks_extend_border(), FAST_BLUR_9, height, i, out, row, sigma, w1, w2, w3, w4, and width.
Referenced by dt_masks_calc_detail_mask().
◆ dt_masks_blur_9x9_coeff()
| void dt_masks_blur_9x9_coeff |
( |
float * |
c, |
|
|
const float |
sigma |
|
) |
| |
◆ dt_masks_calc_detail_mask()
| void dt_masks_calc_detail_mask |
( |
float *const restrict |
src, |
|
|
float *const restrict |
out, |
|
|
float *const restrict |
tmp, |
|
|
const int |
width, |
|
|
const int |
height, |
|
|
const float |
threshold, |
|
|
const gboolean |
detail |
|
) |
| |
◆ dt_masks_calc_rawdetail_mask()
◆ dt_masks_extend_border()
| __DT_CLONE_TARGETS__ void dt_masks_extend_border |
( |
float *const restrict |
mask, |
|
|
const int |
width, |
|
|
const int |
height, |
|
|
const int |
border |
|
) |
| |