6、 convert1Dto2D(inPixels); 3.for (int row = 0; row < height; row++) { 4. for (int col = 0; col < width; col++) { 5. int p = image_2d[row][col] & 0xff; 6. if(p == 0) continue; // which means background color 7. 8. // since we does
7、 not know the theta angle and r value, 9. // we have to calculate all hough space for each pixel point 10. // then we got the max possible theta and r pair. 11. // r = x * cos(theta) + y * sin(theta) 12. for(int cell=0; cell < hough_