title: Houghlines2 with pixelated line
body: <p>I am trying to detect a line with houghlines2, but my line is pixelated, and therefore houghlines2 cannot recognize it as a line. What happens is I detect part of the line, but not the full line - as illustrated with the red lines filling more and more of the line</p>
  
  <p><img src="https://i.stack.imgur.com/7vF5u.jpg" alt="enter image description here"></p>
  
  <p>I have tried to blur the line a bit, but so far no luck.</p>
  
  <p>Code: <a href="http://pastebin.com/zmsCFucM" rel="nofollow noreferrer">http://pastebin.com/zmsCFucM</a></p>
  
  <p>Does anyone have any idea how to fix this? I have worked with canny with no luck either.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>When I measure then line in paint, let's say it's 30. (I do this by sqrt(lengthx^2 + lengthy^2)). Then the minLength in houghlines2 probalistic has to be waaaay shorter. I think this is my problem, and I have no idea why it has to be way shorter. Any ideas?</p>