Extract line segments based on Hough transform

extracts line segments in the image `lines`

= houghlines(`BW`

,`theta`

,`rho`

,`peaks`

)`BW`

associated with particular bins in a Hough transform.
`theta`

and `rho`

are
vectors returned by function `hough`

.
`peaks`

is a matrix returned by the
`houghpeaks`

function that contains the row
and column coordinates of the Hough transform bins to use in
searching for line segments. The return value
`lines`

contains information about the
extracted line segments.

uses name-value pair arguments to control various aspects of the
line extraction.`lines`

= houghlines(___,`Name,Value`

)