MATLAB Answers

0

How to change the conventional theta values from [-90,89] to [0,359] ?

Hi with reference to the Hough lines, I would like to know how to use the theta values which are from [0,359] instead of the default one.

  0 Comments

Sign in to comment.

1 Answer

Answer by Matt J
on 12 Jan 2014
Edited by Matt J
on 12 Jan 2014
 Accepted Answer

lines = houghlines(BW, ...);
shiftedTheta=num2cell([lines.theta]+180);
[lines.theta]=deal(shiftedTheta{:});

  1 Comment

Sign in to comment.