The relationship between filter kernel size and code execution time

61 Views Asked by At

I want to find the relationship between filter window size and filter code execution time in python. As I increased the size of the kernel, the time increased in the same proportion, but from a certain point on, the time remained almost constant. What could be the reason?

kernel = np.ones((g,g), np.float32)/(g*g)
image_filtered = cv2.filter2D(image ,-1, kernel)

Filter Size & Time:

Filter Size & Time

0

There are 0 best solutions below