Remove divide by 1000

because t = (time.time() - t) will return seconds,  dividing by 1000 to obtain seconds will be incorrect.
This commit is contained in:
SchultzC 2019-06-03 18:18:40 -07:00
parent fa96507fe7
commit edb3337ead

View File

@ -69,7 +69,7 @@ def main(argv):
dst0 = sharpen(src) dst0 = sharpen(src)
t = (time.time() - t) / 1000 t = (time.time() - t)
print("Hand written function time passed in seconds: %s" % t) print("Hand written function time passed in seconds: %s" % t)
cv.imshow("Output", dst0) cv.imshow("Output", dst0)
@ -86,7 +86,7 @@ def main(argv):
# ddepth = -1, means destination image has depth same as input image # ddepth = -1, means destination image has depth same as input image
## [filter2D] ## [filter2D]
t = (time.time() - t) / 1000 t = (time.time() - t)
print("Built-in filter2D time passed in seconds: %s" % t) print("Built-in filter2D time passed in seconds: %s" % t)
cv.imshow("Output", dst1) cv.imshow("Output", dst1)