| | |
| | | float *data; |
| | | } image; |
| | | |
| | | image image_distance(image a, image b); |
| | | void scale_image(image m, float s); |
| | | void add_scalar_image(image m, float s); |
| | | void normalize_image(image p); |
| | |
| | | image make_random_kernel(int size, int c, float scale); |
| | | image float_to_image(int h, int w, int c, float *data); |
| | | image copy_image(image p); |
| | | image load_image(char *filename); |
| | | image load_image(char *filename, int h, int w); |
| | | image ipl_to_image(IplImage* src); |
| | | |
| | | float get_pixel(image m, int x, int y, int c); |
| | | float get_pixel_extend(image m, int x, int y, int c); |
| | | void set_pixel(image m, int x, int y, int c, float val); |
| | | |
| | | |
| | | image get_image_layer(image m, int l); |
| | | |
| | | void two_d_convolve(image m, int mc, image kernel, int kc, int stride, image out, int oc, int edge); |