views:

24

answers:

2

I'm using the Hough transform in OpenCV to detect lines. However, I know in advance that I only need lines within a very limited range of angles (about 10 degrees or so). I'm doing this in a very performance sensitive setting, so I'd like to avoid the extra work spent detecting lines at other angles, lines I know in advance I don't care about.

I could extract the Hough source from OpenCV and just hack it to take min_rho and max_rho parameters, but I'd like a less fragile approach (have to manually update my code w/ each OpenCV update, etc.).

What's the best approach here?

A: 

have you obtained a satisfying solution for this problem? i'm trying to do the same thing and am planning to hack the code too...

Denis
This isn't really an answer; probably should have been a comment. That said...I ended up just hacking the code myself. Wasn't terribly hard, but it is definitely ugly. I wish there were a better way, but I didn't find one.
Josh Bleecher Snyder
did you end up recompiling OpenCV's DLLs or did you just copy paste the code?
Denis