TeamCode/src/main/java/org/firstinspires/ftc/teamcode/libraries/CameraLib.java
public int[] scanlineValue(int y) {
            // scan the given horizontal line of the image for red, green, and blue strips and report
            // value
            int[] val = new int[cameraSize().width];
            for (int x=0; x<cameraSize().width; x++) {
                int pix = getPixel(x, y);
                int domVal = CameraLib.Pixel.value(pix);            // or, use hue(pix) instead ...
                val[x] = domVal;
            }
            return val;
        }
// return a string representation of the value along the given scanline
return a string representation of the value along the given scanline
return a string representation of the value along the given scanline
public int[] scanlineValue(int y) {
            int[] val = new int[cameraSize().width];
            for (int x=0; x<cameraSize().width; x++) {
                int pix = getPixel(x, y);
                int domVal = CameraLib.Pixel.value(pix);            
                val[x] = domVal;
            }
            return val;
        }
public int [ ] scanlineValue ( int y ) { int [ ] val = new int [ cameraSize ( ) . width ] ; for ( int x = 0 ; x < cameraSize ( ) . width ; x ++ ) { int pix = getPixel ( x , y ) ; int domVal = CameraLib . Pixel . value ( pix ) ; val [ x ] = domVal ; } return val ; }
return a string representation of the value along the given scanline
return a string representation of the value along the given scanline
// scan the given horizontal line of the image for red, green, and blue strips and report // value // or, use hue(pix) instead ...