Searched refs:timeit (Results 1 – 6 of 6) sorted by relevance
67 In [6]: %timeit res = cv2.medianBlur(img,49)76 In [9]: %timeit res = cv2.medianBlur(img,49)87 magic command %timeit to perform this. It runs the code several times to get more accurate results.91 x = 5; y = x\*x, x = np.uint8([5]); y = x\*x or y = np.square(x) ? We will find it with %timeit in96 In [11]: %timeit y=x**299 In [12]: %timeit y=x*x104 In [17]: %timeit y=z*z107 In [19]: %timeit y=np.square(z)122 In [35]: %timeit z = cv2.countNonZero(img)125 In [36]: %timeit z = np.count_nonzero(img)
31 import timeit34 t = timeit.Timer(statement, "from __main__ import " + statement)
42 timeit = False variable72 timeit = True variable91 if (timeit):
5 import timeit191 startClock = timeit.default_timer()210 return timeit.default_timer() - startClock
185 using IPython magic command %timeit.213 In [22]: %timeit fft1 = np.fft.fft2(img)215 In [23]: %timeit fft2 = np.fft.fft2(img,[nrows,ncols])220 In [24]: %timeit dft1= cv2.dft(np.float32(img),flags=cv2.DFT_COMPLEX_OUTPUT)222 In [27]: %timeit dft2= cv2.dft(np.float32(nimg),flags=cv2.DFT_COMPLEX_OUTPUT)
2987 int timeit = 0; in main() local3157 if (both) timeit = timeitm; in main()4010 if (timeit > 0) in main()4015 for (i = 0; i < timeit; i++) in main()4022 (((double)time_taken * 1000.0) / (double)timeit) / in main()4099 if (timeit > 0) in main()4104 for (i = 0; i < timeit; i++) in main()4114 (((double)time_taken * 1000.0) / (double)timeit) / in main()5699 if (timeit > 0) in main()5702 (((double)total_compile_time * 1000.0) / (double)timeit) / in main()[all …]