Lines Matching refs:cv2
3 import cv2
57 im = cv2.imread(sys.argv[1])
59 im = cv2.imread('../data/baboon.jpg')
63 im = cv2.cvtColor(im, cv2.COLOR_BGR2GRAY)
69 dft_M = cv2.getOptimalDFTSize(w)
70 dft_N = cv2.getOptimalDFTSize(h)
78 cv2.dft(dft_A, dst=dft_A, nonzeroRows=h)
80 cv2.imshow("win", im)
83 image_Re, image_Im = cv2.split(dft_A)
86 magnitude = cv2.sqrt(image_Re**2.0 + image_Im**2.0)
89 log_spectrum = cv2.log(1.0 + magnitude)
96 cv2.normalize(log_spectrum, log_spectrum, 0.0, 1.0, cv2.NORM_MINMAX)
97 cv2.imshow("magnitude", log_spectrum)
99 cv2.waitKey(0)
100 cv2.destroyAllWindows()