Kernel: Python 3 (system-wide)
In [1]:
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-1-52a25bba355e> in <module>
10 dft_shift = np.fft.fftshift(dft)
11
---> 12 magnitude_spectrum = 8 * np.log(cv2.magnitude(dft_shift[:,:,0], dft_shift[:,:,0.1]))
13
14 plt.figure(figsize = (30, 18))
IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices
In [0]: