MCPcopy Create free account
hub / github.com/ai4ce/RAP / normalize_kernel

Function normalize_kernel

utils/brisque.py:50–51  ·  view source on GitHub ↗
(kernel)

Source from the content-addressed store, hash-verified

48
49
50def normalize_kernel(kernel):
51 return kernel / np.sum(kernel)
52
53
54def gaussian_kernel2d(n, sigma):

Callers 1

gaussian_kernel2dFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected