title: cv2.phase gives the angle in radian
body: <p>I'm trying to get the orientation of the gradient through the Sobel function in opencv python. The problem is when I provide the gradient in the x and y direction to the phase function, it always gives me the same result, no matter phase in degree is true or False. Here is the sample code:</p>
  
  <pre><code>img = cv2.imread('frameBB.jpg',0)
  sobelx = cv2.Sobel(img,cv2.CV_32F,1,0,ksize=3)
  sobely= cv2.Sobel(img,cv2.CV_32F,0,1,ksize=3)
  phase=cv2.phase(sobelx,sobely,True)
  </code></pre>
  
  <p>I then get the histogram of phase, and end up with the same result for the last argument of phase function being either True, or False. The histogram looks like this for both cases. <a href="https://i.stack.imgur.com/xpk4g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xpk4g.png" alt="enter image description here"></a></p>
  
  <p>this is how the original image and its gradient images look like:</p>
  
  <p><a href="https://i.stack.imgur.com/HH19l.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HH19l.png" alt="enter image description here"></a></p>
  
  <p>I am not sure what I am doing wrong here, and why I get the gradient angle in radian for both cases.</p>