In the first part of the code I tried implementing Hough transform to identify a line. Later I used 'HoughLines',an inbuilt function of OpenCV to detect a new line. I expected both to give similar results as both code's output is the line of the
strongest edge. I did not get similar lines and am not able to understand why. Could anyone explain?