Merge pull request #4773 from jing-vision/master

Expose crop_image and resize_min as LIB_API
This commit is contained in:
Alexey 2020-01-29 19:43:35 +03:00 committed by GitHub
commit 61499b27a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -929,6 +929,8 @@ LIB_API void rgbgr_image(image im);
LIB_API image make_image(int w, int h, int c); LIB_API image make_image(int w, int h, int c);
LIB_API image load_image_color(char *filename, int w, int h); LIB_API image load_image_color(char *filename, int w, int h);
LIB_API void free_image(image m); LIB_API void free_image(image m);
LIB_API image crop_image(image im, int dx, int dy, int w, int h);
LIB_API image resize_min(image im, int min);
// layer.h // layer.h
LIB_API void free_layer_custom(layer l, int keep_cudnn_desc); LIB_API void free_layer_custom(layer l, int keep_cudnn_desc);

View File

@ -33,7 +33,7 @@ void draw_detections(image im, int num, float thresh, box *boxes, float **probs,
void draw_detections_v3(image im, detection *dets, int num, float thresh, char **names, image **alphabet, int classes, int ext_output); 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); image image_distance(image a, image b);
void scale_image(image m, float s); void scale_image(image m, float s);
image crop_image(image im, int dx, int dy, int w, int h); // 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_crop_image(image im, int w, int h);
image random_augment_image(image im, float angle, float aspect, int low, int high, int size); 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); void random_distort_image(image im, float hue, float saturation, float exposure);
@ -42,7 +42,7 @@ void random_distort_image(image im, float hue, float saturation, float exposure)
void fill_image(image m, float s); void fill_image(image m, float s);
void letterbox_image_into(image im, int w, int h, image boxed); void letterbox_image_into(image im, int w, int h, image boxed);
//LIB_API image letterbox_image(image im, int w, int h); //LIB_API image letterbox_image(image im, int w, int h);
image resize_min(image im, int min); // image resize_min(image im, int min);
image resize_max(image im, int max); image resize_max(image im, int max);
void translate_image(image m, float s); void translate_image(image m, float s);
void normalize_image(image p); void normalize_image(image p);