mirror of https://github.com/AlexeyAB/darknet.git
Merge pull request #4773 from jing-vision/master
Expose crop_image and resize_min as LIB_API
This commit is contained in:
commit
61499b27a4
|
@ -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 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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue