title: How to find phase spectrum of an image in opencv python
body: <p>I am trying to find the phase spectrum of an image after applying DFT in python, here is the code i have used.
  `</p>
  
  <pre><code>import numpy as np
  import cv2
  from matplotlib import pyplot as plt
  
  img=cv2.imread('/content/drive/My Drive/IP assg2/im1.jpg')
  
  img = cv2.cvtColor(sm1,cv2.COLOR_BGR2GRAY)
  
  dft = cv2.dft(np.float32(img),flags = cv2.DFT_COMPLEX_OUTPUT)
  </code></pre>
  
  <p>`</p>
  
  <p>I am not sure how to move on from here, as all the tutorials i have come across are related to MATLAB.</p>