From 3000c3111f7caf9f658681f42f11346a00589aa6 Mon Sep 17 00:00:00 2001 From: vinjn Date: Wed, 29 Jan 2020 22:58:43 +0800 Subject: [PATCH] Expose crop_image and resize_min as LIB_API --- include/darknet.h | 2 ++ src/image.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/darknet.h b/include/darknet.h index c83e7690..50f108f7 100644 --- a/include/darknet.h +++ b/include/darknet.h @@ -928,6 +928,8 @@ LIB_API void rgbgr_image(image im); 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 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 LIB_API void free_layer_custom(layer l, int keep_cudnn_desc); diff --git a/src/image.h b/src/image.h index 58897794..904b87a8 100644 --- a/src/image.h +++ b/src/image.h @@ -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); 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 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); @@ -42,7 +42,7 @@ void random_distort_image(image im, float hue, float saturation, float exposure) void fill_image(image m, float s); void letterbox_image_into(image im, int w, int h, image boxed); //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); void translate_image(image m, float s); void normalize_image(image p);