Commit e8064ae4 authored by Rohan  Kumar's avatar Rohan Kumar
Browse files

some fixes

parent 519b7c83
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -136,8 +136,11 @@ public class ObjectSet {
    public void updateObjectSet(List<ArrayList<Point>> points) {
        // for each BoundingBox we have all points that fall within it

        for(ArrayList<Point> point : points) {
            Point[] pointArray = point.toArray(new Point[0]);
        for(ArrayList<Point> singleBoxPoints : points) {
            if(singleBoxPoints.isEmpty()){
                continue;
            }
            Point[] pointArray = singleBoxPoints.toArray(new Point[0]);
            int objIdx = makeObject(pointArray);

            // Compare the new object with all existing objects
@@ -147,6 +150,7 @@ public class ObjectSet {
                    continue;
                }
                if (compareObjects(objIdx, j)) {
                    System.out.println("COMBINING");
                    combineObjects(j, objIdx);
                    break;
                }