| | |
| | | #define DATA_H |
| | | #include <pthread.h> |
| | | |
| | | #if defined(_MSC_VER) && _MSC_VER < 1900 |
| | | #define inline __inline |
| | | #endif |
| | | |
| | | #include "matrix.h" |
| | | #include "list.h" |
| | | #include "image.h" |
| | | #include "tree.h" |
| | | |
| | | static inline float distance_from_edge(int x, int max) |
| | | { |
| | |
| | | image *im; |
| | | image *resized; |
| | | data_type type; |
| | | tree *hierarchy; |
| | | } load_args; |
| | | |
| | | typedef struct{ |
| | |
| | | data load_data_tag(char **paths, int n, int m, int k, int min, int max, int size, float angle, float aspect, float hue, float saturation, float exposure); |
| | | matrix load_image_augment_paths(char **paths, int n, int min, int max, int size, float angle, float aspect, float hue, float saturation, float exposure); |
| | | data load_data_super(char **paths, int n, int m, int w, int h, int scale); |
| | | data load_data_augment(char **paths, int n, int m, char **labels, int k, int min, int max, int size, float angle, float aspect, float hue, float saturation, float exposure); |
| | | data load_data_augment(char **paths, int n, int m, char **labels, int k, tree *hierarchy, int min, int max, int size, float angle, float aspect, float hue, float saturation, float exposure); |
| | | data load_go(char *filename); |
| | | |
| | | box_label *read_boxes(char *filename, int *n); |