Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
guided_filter.h File Reference
#include "common/darktable.h"
#include "common/opencl.h"
+ Include dependency graph for guided_filter.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  gray_image
 

Typedefs

typedef struct gray_image gray_image
 

Functions

static gray_image new_gray_image (int width, int height)
 
static void free_gray_image (gray_image *img_p)
 
static void copy_gray_image (gray_image img1, gray_image img2)
 
static int min_i (int a, int b)
 
static int max_i (int a, int b)
 
void guided_filter (const float *guide, const float *in, float *out, int width, int height, int ch, int w, float sqrt_eps, float guide_weight, float min, float max)
 

Typedef Documentation

◆ gray_image

typedef struct gray_image gray_image

Function Documentation

◆ copy_gray_image()

static void copy_gray_image ( gray_image  img1,
gray_image  img2 
)
inlinestatic

◆ free_gray_image()

static void free_gray_image ( gray_image img_p)
inlinestatic

References gray_image::data, and dt_free_align.

Referenced by ambient_light(), and process().

◆ guided_filter()

void guided_filter ( const float *  guide,
const float *  in,
float *  out,
int  width,
int  height,
int  ch,
int  w,
float  sqrt_eps,
float  guide_weight,
float  min,
float  max 
)

◆ max_i()

static int max_i ( int  a,
int  b 
)
inlinestatic

◆ min_i()

static int min_i ( int  a,
int  b 
)
inlinestatic

◆ new_gray_image()

static gray_image new_gray_image ( int  width,
int  height 
)
inlinestatic
Todo:
: the code consuming gray_image doesn't check if we actually allocated the buffer

References dt_alloc_align, height, and width.

Referenced by ambient_light(), and process().