protected int[] dummyColorInscribedDataCircleFromYuvImage(ImageProxy img,int subsample){
  logWrapper("RUNNING DUMMY dummyColorInscribedDataCircleFromYuvImage");
  int w=img.getWidth() / subsample;
  int h=img.getHeight() / subsample;
  int r=inscribedCircleRadius(w,h);
  int len=r * r * 4;
  int[] colors=new int[len];
  for (int i=0; i < len; i++) {
    int x=i % (2 * r);
    int y=i / (2 * r);
    colors[i]=(255 << 24) | ((x & 255) << 16) | ((y & 255) << 8);
  }
  return colors;
}

protected int [ ] dummyColorInscribedDataCircleFromYuvImage ( ImageProxy img , int subsample ) { logWrapper ( "RUNNING DUMMY dummyColorInscribedDataCircleFromYuvImage" ) ; int w = img . getWidth ( ) / subsample ; int h = img . getHeight ( ) / subsample ; int r = inscribedCircleRadius ( w , h ) ; int len = r * r * 4 ; int [ ] colors = new int [ len ] ; for ( int i = 0 ; i < len ; i ++ ) { int x = i % ( 2 * r ) ; int y = i / ( 2 * r ) ; colors [ i ] = ( 255 << 24 ) | ( ( x & 255 ) << 16 ) | ( ( y & 255 ) << 8 ) ; } return colors ; }
debug image function converts an android image to a inscribed circle bitmap , currently wired to the test pattern . will subsample and optimize the image given a target resolution .
