| | |
| | | #include "box.h" |
| | | |
| | | typedef struct { |
| | | int h; |
| | | int w; |
| | | int w; |
| | | int h; |
| | | int c; |
| | | float *data; |
| | | } image; |
| | |
| | | void draw_label(image a, int r, int c, image label, const float *rgb); |
| | | void write_label(image a, int r, int c, image *characters, char *string, float *rgb); |
| | | void draw_detections(image im, int num, float thresh, box *boxes, float **probs, char **names, image **labels, int classes); |
| | | void draw_detections_v3(image im, detection *dets, int num, float thresh, char **names, image **alphabet, int classes); |
| | | void draw_detections_v3(image im, detection *dets, int num, float thresh, char **names, image **alphabet, int classes, int ext_output); |
| | | image image_distance(image a, image b); |
| | | void scale_image(image m, float s); |
| | | image crop_image(image im, int dx, int dy, int w, int h); |
| | | image random_crop_image(image im, int w, int h); |
| | | image random_augment_image(image im, float angle, float aspect, int low, int high, int size); |
| | | void random_distort_image(image im, float hue, float saturation, float exposure); |
| | | image resize_image(image im, int w, int h); |
| | | YOLODLL_API image resize_image(image im, int w, int h); |
| | | void fill_image(image m, float s); |
| | | void letterbox_image_into(image im, int w, int h, image boxed); |
| | | YOLODLL_API image letterbox_image(image im, int w, int h); |
| | |
| | | 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); |