From 16d06ec0db241261d0d030722e440206ed8aad77 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Mon, 29 Feb 2016 21:54:12 +0000
Subject: [PATCH] stuff
---
src/image.h | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/src/image.h b/src/image.h
index c3e1a78..b4a7a23 100644
--- a/src/image.h
+++ b/src/image.h
@@ -8,6 +8,11 @@
#include <math.h>
#include "box.h"
+#ifdef OPENCV
+#include "opencv2/highgui/highgui_c.h"
+#include "opencv2/imgproc/imgproc_c.h"
+#endif
+
typedef struct {
int h;
int w;
@@ -25,8 +30,9 @@
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 low, int high, int size);
image resize_image(image im, int w, int h);
-image resize_image2(image im, int w, int h);
+image resize_min(image im, int min);
void translate_image(image m, float s);
void normalize_image(image p);
image rotate_image(image m, float rad);
@@ -53,11 +59,14 @@
#ifdef OPENCV
void save_image_jpg(image p, char *name);
+image get_image_from_stream(CvCapture *cap);
+image ipl_to_image(IplImage* src);
#endif
void print_image(image m);
image make_image(int w, int h, int c);
+image make_random_image(int w, int h, int c);
image make_empty_image(int w, int h, int c);
image float_to_image(int w, int h, int c, float *data);
image copy_image(image p);
--
Gitblit v1.10.0