![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "chart/thinplate.h"
#include "chart/deltaE.h"
#include "iop/svd.h"
#include <assert.h>
#include <float.h>
#include <stdlib.h>
#include <string.h>
Macros | |
#define | MAX(a, b) ((a) < (b) ? (b) : (a)) |
#define | MIN(a, b) ((a) > (b) ? (b) : (a)) |
Functions | |
static float | __attribute__ ((__unused__)) |
static double | thinplate_kernel (const double *x, const double *y) |
static double | compute_error (const tonecurve_t *c, const double **target, const double *residual_L, const double *residual_a, const double *residual_b, const int wd, double *maxerr) |
static int | solve (double *As, double *w, double *v, const double *b, double *coeff, int wd, int s, int S) |
int | thinplate_match (const tonecurve_t *curve, int dim, int N, const double *point, const double **target, int S, int *permutation, double **coeff, double *avgerr, double *maxerr) |
float | thinplate_color_pos (float L, float a, float b) |
#define MAX | ( | a, | |
b | |||
) | ((a) < (b) ? (b) : (a)) |
#define MIN | ( | a, | |
b | |||
) | ((a) > (b) ? (b) : (a)) |
|
inlinestatic |
References f().
Referenced by amaze_demosaic_RT(), and is_bigendian().
|
inlinestatic |
References dt_colorspaces_deltaE_2000(), MAX, and tonecurve_apply().
Referenced by thinplate_match().
|
inlinestatic |
Referenced by thinplate_match().
float thinplate_color_pos | ( | float | L, |
float | a, | ||
float | b | ||
) |
Referenced by encode_colorchecker().
References MAX.
Referenced by thinplate_match().
int thinplate_match | ( | const tonecurve_t * | curve, |
int | dim, | ||
int | N, | ||
const double * | point, | ||
const double ** | target, | ||
int | S, | ||
int * | permutation, | ||
double ** | coeff, | ||
double * | avgerr, | ||
double * | maxerr | ||
) |
References A, compute_error(), dot(), double(), MIN, N, permutation, S, solve(), and thinplate_kernel().
Referenced by process_data().