I am Writing a code for Hough Transform. I have tried to map the pixels from edge extracted image to hough space but there is some error in the code and I cannot figure out why.