#include <assert.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "math_util.h"
#include "image_f32.h"
Go to the source code of this file.
|
static void | convolve (const float *x, float *y, int sz, const float *k, int ksz) |
|
image_f32_t * | image_f32_create (int width, int height) |
|
image_f32_t * | image_f32_create_from_u8 (const image_u8_t *im) |
|
image_f32_t * | image_f32_create_stride (int width, int height, int stride) |
|
void | image_f32_destroy (image_f32_t *im) |
|
void | image_f32_gaussian_blur (image_f32_t *im, double sigma, int ksz) |
|
void | image_f32_normalize (image_f32_t *im) |
|
int | image_f32_write_pnm (const image_f32_t *im, const char *path) |
|
static float | sqf (float v) |
|
static void convolve |
( |
const float * |
x, |
|
|
float * |
y, |
|
|
int |
sz, |
|
|
const float * |
k, |
|
|
int |
ksz |
|
) |
| |
|
static |
image_f32_t* image_f32_create |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
image_f32_t* image_f32_create_stride |
( |
int |
width, |
|
|
int |
height, |
|
|
int |
stride |
|
) |
| |
void image_f32_gaussian_blur |
( |
image_f32_t * |
im, |
|
|
double |
sigma, |
|
|
int |
ksz |
|
) |
| |
int image_f32_write_pnm |
( |
const image_f32_t * |
im, |
|
|
const char * |
path |
|
) |
| |
static float sqf |
( |
float |
v | ) |
|
|
inlinestatic |