From 6553b3f0e3e55fc30a99c7d4b5798aa86d18a114 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Mon, 30 Mar 2015 02:31:47 +0000
Subject: [PATCH] no comment

---
 src/data.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/data.c b/src/data.c
index 7069248..c1167da 100644
--- a/src/data.c
+++ b/src/data.c
@@ -66,6 +66,7 @@
 typedef struct box{
     int id;
     float x,y,w,h;
+    float left, right, top, bottom;
 } box;
 
 box *read_boxes(char *filename, int *n)
@@ -83,6 +84,10 @@
         boxes[count].y = y;
         boxes[count].h = h;
         boxes[count].w = w;
+        boxes[count].left   = x - w/2;
+        boxes[count].right  = x + w/2;
+        boxes[count].top    = y - h/2;
+        boxes[count].bottom = y + h/2;
         ++count;
     }
     fclose(file);

--
Gitblit v1.10.0