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

some fixes

parent 9d184061
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -131,8 +131,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
@@ -142,6 +145,7 @@ public class ObjectSet {
                    continue;
                }
                if (compareObjects(objIdx, j)) {
                    System.out.println("COMBINING");
                    combineObjects(j, objIdx);
                    break;
                }