#include <assert.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>#include "common/image_u8.h"#include "common/pnm.h"#include "common/math_util.h"
Go to the source code of this file.
| Macros | |
| #define | DEFAULT_ALIGNMENT_U8 96 | 
| Functions | |
| static void | convolve (const uint8_t *x, uint8_t *y, int sz, const uint8_t *k, int ksz) | 
| void | image_u8_convolve_2D (image_u8_t *im, const uint8_t *k, int ksz) | 
| image_u8_t * | image_u8_copy (const image_u8_t *in) | 
| image_u8_t * | image_u8_create (unsigned int width, unsigned int height) | 
| image_u8_t * | image_u8_create_alignment (unsigned int width, unsigned int height, unsigned int alignment) | 
| image_u8_t * | image_u8_create_from_f32 (image_f32_t *fim) | 
| image_u8_t * | image_u8_create_from_pnm (const char *path) | 
| image_u8_t * | image_u8_create_from_pnm_alignment (const char *path, int alignment) | 
| image_u8_t * | image_u8_create_stride (unsigned int width, unsigned int height, unsigned int stride) | 
| void | image_u8_darken (image_u8_t *im) | 
| image_u8_t * | image_u8_decimate (image_u8_t *im, float ffactor) | 
| void | image_u8_destroy (image_u8_t *im) | 
| void | image_u8_draw_annulus (image_u8_t *im, float x0, float y0, float r0, float r1, int v) | 
| void | image_u8_draw_circle (image_u8_t *im, float x0, float y0, float r, int v) | 
| void | image_u8_draw_line (image_u8_t *im, float x0, float y0, float x1, float y1, int v, int width) | 
| void | image_u8_fill_line_max (image_u8_t *im, const image_u8_lut_t *lut, const float *xy0, const float *xy1) | 
| void | image_u8_gaussian_blur (image_u8_t *im, double sigma, int ksz) | 
| image_u8_t * | image_u8_rotate (const image_u8_t *in, double rad, uint8_t pad) | 
| int | image_u8_write_pnm (const image_u8_t *im, const char *path) | 
| #define DEFAULT_ALIGNMENT_U8 96 | 
Definition at line 40 of file image_u8.c.
| 
 | static | 
Definition at line 297 of file image_u8.c.
| void image_u8_convolve_2D | ( | image_u8_t * | im, | 
| const uint8_t * | k, | ||
| int | ksz | ||
| ) | 
Definition at line 317 of file image_u8.c.
| image_u8_t* image_u8_copy | ( | const image_u8_t * | in | ) | 
Definition at line 69 of file image_u8.c.
| image_u8_t* image_u8_create | ( | unsigned int | width, | 
| unsigned int | height | ||
| ) | 
Definition at line 54 of file image_u8.c.
| image_u8_t* image_u8_create_alignment | ( | unsigned int | width, | 
| unsigned int | height, | ||
| unsigned int | alignment | ||
| ) | 
Definition at line 59 of file image_u8.c.
| image_u8_t* image_u8_create_from_f32 | ( | image_f32_t * | fim | ) | 
Definition at line 185 of file image_u8.c.
| image_u8_t* image_u8_create_from_pnm | ( | const char * | path | ) | 
Definition at line 93 of file image_u8.c.
| image_u8_t* image_u8_create_from_pnm_alignment | ( | const char * | path, | 
| int | alignment | ||
| ) | 
Definition at line 98 of file image_u8.c.
| image_u8_t* image_u8_create_stride | ( | unsigned int | width, | 
| unsigned int | height, | ||
| unsigned int | stride | ||
| ) | 
Definition at line 42 of file image_u8.c.
| void image_u8_darken | ( | image_u8_t * | im | ) | 
Definition at line 288 of file image_u8.c.
| image_u8_t* image_u8_decimate | ( | image_u8_t * | im, | 
| float | ffactor | ||
| ) | 
Definition at line 436 of file image_u8.c.
| void image_u8_destroy | ( | image_u8_t * | im | ) | 
Definition at line 82 of file image_u8.c.
| void image_u8_draw_annulus | ( | image_u8_t * | im, | 
| float | x0, | ||
| float | y0, | ||
| float | r0, | ||
| float | r1, | ||
| int | v | ||
| ) | 
Definition at line 245 of file image_u8.c.
| void image_u8_draw_circle | ( | image_u8_t * | im, | 
| float | x0, | ||
| float | y0, | ||
| float | r, | ||
| int | v | ||
| ) | 
Definition at line 227 of file image_u8.c.
| void image_u8_draw_line | ( | image_u8_t * | im, | 
| float | x0, | ||
| float | y0, | ||
| float | x1, | ||
| float | y1, | ||
| int | v, | ||
| int | width | ||
| ) | 
Definition at line 265 of file image_u8.c.
| void image_u8_fill_line_max | ( | image_u8_t * | im, | 
| const image_u8_lut_t * | lut, | ||
| const float * | xy0, | ||
| const float * | xy1 | ||
| ) | 
Definition at line 503 of file image_u8.c.
| void image_u8_gaussian_blur | ( | image_u8_t * | im, | 
| double | sigma, | ||
| int | ksz | ||
| ) | 
Definition at line 346 of file image_u8.c.
| image_u8_t* image_u8_rotate | ( | const image_u8_t * | in, | 
| double | rad, | ||
| uint8_t | pad | ||
| ) | 
Definition at line 386 of file image_u8.c.
| int image_u8_write_pnm | ( | const image_u8_t * | im, | 
| const char * | path | ||
| ) | 
Definition at line 200 of file image_u8.c.