Masters/src/main/java/org/firstinspires/ftc/masters/MultipleCameraCV.java
@Override
        public void init(Mat firstFrame) {

            topLeftPoints.add(new Point(20,1));
            bottomRightPoints.add(new Point(topLeftPoints.get(0).x + REGION_WIDTH, topLeftPoints.get(0).y + REGION_HEIGHT));

            int tempY = 0;
            int tempX = 20;
            for (int i = 1; i < 27; i++) {
                if (tempX == 500) {
                    tempX = 20;
                    tempY += REGION_HEIGHT;
                } else {
                    tempX += REGION_WIDTH/2;
                }
                topLeftPoints.add(new Point(tempX,tempY));
                bottomRightPoints.add(new Point(tempX + REGION_WIDTH, tempY + REGION_HEIGHT));
            }

            inputToLAB(firstFrame);


        }
//        just assign the top left and bottom right points for each region you desire.
just assign the top left and bottom right points for each region you desire.
just assign the top left and bottom right points for each region you desire .
@Override
        public void init(Mat firstFrame) {
            topLeftPoints.add(new Point(20,1));
            bottomRightPoints.add(new Point(topLeftPoints.get(0).x + REGION_WIDTH, topLeftPoints.get(0).y + REGION_HEIGHT));
            int tempY = 0;
            int tempX = 20;
            for (int i = 1; i < 27; i++) {
                if (tempX == 500) {
                    tempX = 20;
                    tempY += REGION_HEIGHT;
                } else {
                    tempX += REGION_WIDTH/2;
                }
                topLeftPoints.add(new Point(tempX,tempY));
                bottomRightPoints.add(new Point(tempX + REGION_WIDTH, tempY + REGION_HEIGHT));
            }
            inputToLAB(firstFrame);
        }
@ Override public void init ( Mat firstFrame ) { topLeftPoints . add ( new Point ( 20 , 1 ) ) ; bottomRightPoints . add ( new Point ( topLeftPoints . get ( 0 ) . x + REGION_WIDTH , topLeftPoints . get ( 0 ) . y + REGION_HEIGHT ) ) ; int tempY = 0 ; int tempX = 20 ; for ( int i = 1 ; i < 27 ; i ++ ) { if ( tempX == 500 ) { tempX = 20 ; tempY += REGION_HEIGHT ; } else { tempX += REGION_WIDTH / 2 ; } topLeftPoints . add ( new Point ( tempX , tempY ) ) ; bottomRightPoints . add ( new Point ( tempX + REGION_WIDTH , tempY + REGION_HEIGHT ) ) ; } inputToLAB ( firstFrame ) ; }
just assign the top left and bottom right points for each region you desire.
just assign the top left and bottom right points for each region you desire .