#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <glib/gstdio.h>
Go to the source code of this file.
|
| static elem_type | kth_smallest (elem_type a[], int n, int k) |
| |
| static float * | read_pfm (const char *filename, int *wd, int *ht) |
| |
| static float * | read_histogram (const char *filename, int *bins) |
| |
| static void | invert_histogram (const float *const hist, float *const inv_hist, const int bins) |
| |
| static float | clamp (float f, float m, float M) |
| |
| int | compare_llhh (const void *a, const void *b) |
| |
| int | main (int argc, char *arg[]) |
| |
◆ ELEM_SWAP
| #define ELEM_SWAP |
( |
|
a, |
|
|
|
b |
|
) |
| { elem_type t=(a);(a)=(b);(b)=t; } |
◆ median
◆ dt_aligned_pixel_t
| typedef float dt_aligned_pixel_t[4] |
◆ elem_type
◆ clamp()
| static float clamp |
( |
float |
f, |
|
|
float |
m, |
|
|
float |
M |
|
) |
| |
|
inlinestatic |
◆ compare_llhh()
| int compare_llhh |
( |
const void * |
a, |
|
|
const void * |
b |
|
) |
| |
◆ invert_histogram()
| static void invert_histogram |
( |
const float *const |
hist, |
|
|
float *const |
inv_hist, |
|
|
const int |
bins |
|
) |
| |
|
static |
◆ kth_smallest()
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
arg[] |
|
) |
| |
- Todo:
- : test if file with replaced ext exists
- Todo:
- : add a callback to set the bpp without going through the config
- Todo:
- : have a parameter in command line to get the export presets
Definition at line 171 of file noiseprofile.c.
References clamp(), compare_llhh(), d, f, i, invert_histogram(), k, max, median, N, out, read_histogram(), read_pfm(), write_pfm(), and x.
◆ read_histogram()
| static float * read_histogram |
( |
const char * |
filename, |
|
|
int * |
bins |
|
) |
| |
|
static |
◆ read_pfm()
| static float * read_pfm |
( |
const char * |
filename, |
|
|
int * |
wd, |
|
|
int * |
ht |
|
) |
| |
|
static |