code: private void createHoughPixels( double[][][] houghValues, byte houghPixels[] ) {
          double d = -1D;
          for( int j = 0; j < height; j++ ) {
              for( int k = 0; k < width; k++ ) {
                  if (houghValues[k][j][0] > d) {
                      d = houghValues[k][j][0];
                  }
              }
          }
          for( int l = 0; l < height; l++ ) {
              for( int i = 0; i < width; i++ ) {
                  houghPixels[i + l * width] = (byte) Math.round((houghValues[i][l][0] * 255D) / d);
              }
          }
      }
docs: Convert Values in Hough Space to an 8-Bit Image Space.