#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "math_util.h"
#include "pnm.h"
#include "image_u8x3.h"
Go to the source code of this file.
|
static void | convolve (const uint8_t *x, uint8_t *y, int sz, const uint8_t *k, int ksz) |
|
image_u8x3_t * | image_u8x3_copy (const image_u8x3_t *in) |
|
image_u8x3_t * | image_u8x3_create (unsigned int width, unsigned int height) |
|
image_u8x3_t * | image_u8x3_create_alignment (unsigned int width, unsigned int height, unsigned int alignment) |
|
image_u8x3_t * | image_u8x3_create_from_pnm (const char *path) |
|
void | image_u8x3_destroy (image_u8x3_t *im) |
|
void | image_u8x3_draw_line (image_u8x3_t *im, float x0, float y0, float x1, float y1, uint8_t rgb[3], int width) |
|
void | image_u8x3_gaussian_blur (image_u8x3_t *im, double sigma, int ksz) |
|
int | image_u8x3_write_pnm (const image_u8x3_t *im, const char *path) |
|
◆ DEFAULT_ALIGNMENT_U8X3
#define DEFAULT_ALIGNMENT_U8X3 192 |
◆ convolve()
static void convolve |
( |
const uint8_t * |
x, |
|
|
uint8_t * |
y, |
|
|
int |
sz, |
|
|
const uint8_t * |
k, |
|
|
int |
ksz |
|
) |
| |
|
static |
◆ image_u8x3_copy()
◆ image_u8x3_create()
image_u8x3_t* image_u8x3_create |
( |
unsigned int |
width, |
|
|
unsigned int |
height |
|
) |
| |
◆ image_u8x3_create_alignment()
image_u8x3_t* image_u8x3_create_alignment |
( |
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
unsigned int |
alignment |
|
) |
| |
◆ image_u8x3_create_from_pnm()
image_u8x3_t* image_u8x3_create_from_pnm |
( |
const char * |
path | ) |
|
◆ image_u8x3_destroy()
◆ image_u8x3_draw_line()
void image_u8x3_draw_line |
( |
image_u8x3_t * |
im, |
|
|
float |
x0, |
|
|
float |
y0, |
|
|
float |
x1, |
|
|
float |
y1, |
|
|
uint8_t |
rgb[3], |
|
|
int |
width |
|
) |
| |
◆ image_u8x3_gaussian_blur()
void image_u8x3_gaussian_blur |
( |
image_u8x3_t * |
im, |
|
|
double |
sigma, |
|
|
int |
ksz |
|
) |
| |
◆ image_u8x3_write_pnm()
int image_u8x3_write_pnm |
( |
const image_u8x3_t * |
im, |
|
|
const char * |
path |
|
) |
| |