HoughLines with theta greater than PI
According to OpenCV 3.0 docs cv::HoughLines can stablish min and max theta for searching:
min_theta – [...] Must fall between 0 and max_theta.
max_theta – [...] Must fall between min_theta and CV_PI.
Then, you can't set angle search over PI making impossible to search the PI to 2 PI half rect space.
I think there is something I am missing, or the polar representation in that Hough Transform is not like I think should be.
My goal is to search only near vertical or near horizontal lines. ¿Can I do that with min and max theta?
please use recent docs , not outdated 3.0-beta
Sorry, updated!
hough lines don't have an "orientation", so 10° is the same as 190°. it wraps around at 180° (pi).
admittedly, this is somewhat unfortunate in the case of "horizontal" lines, where you probably want +-10°.
Ok, that's my problem. Maybe it's possible to tweak that algorithm to accept negative starting angles.
i don't think that's possible (or even feasible)
use 2 passes, one for 0-10°, another for 170-180°