| | |
| | | #include "box.h" |
| | | |
| | | typedef struct { |
| | | int h; |
| | | int w; |
| | | int w; |
| | | int h; |
| | | int c; |
| | | float *data; |
| | | } image; |
| | |
| | | YOLODLL_API image load_image_color(char *filename, int w, int h); |
| | | image **load_alphabet(); |
| | | |
| | | 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); |
| | | void add_pixel(image m, int x, int y, int c, float val); |
| | | //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); |
| | | //void add_pixel(image m, int x, int y, int c, float val); |
| | | float bilinear_interpolate(image im, float x, float y, int c); |
| | | |
| | | image get_image_layer(image m, int l); |