Description: this HOUGH help you easier to understand how to apply hough transform to detect line. You only chang the name of the picture, you will have result. And change some parameters.
Good luck!
To Search:
File list (Check if you may need any files):
checkhough.m