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`

is
a structure array whose length equals the number of merged line segments
found.

extracts
line segments in the image `lines`

= houghlines(___,`Name,Value`

,...)`BW`

, where named parameters
affect the operation.