MCPcopy Create free account
hub / github.com/RylonW/DocNLC / kernelMatrix

Method kernelMatrix

utils/motionblur.py:303–317  ·  view source on GitHub ↗

[summary] Kernel matrix of motion blur of given intensity. [description] Once generated, it stays the same. Returns: numpy ndarray

(self)

Source from the content-addressed store, hash-verified

301
302 @property
303 def kernelMatrix(self) -> np.ndarray:
304 """[summary]
305 Kernel matrix of motion blur of given intensity.
306 [description]
307 Once generated, it stays the same.
308 Returns:
309 numpy ndarray
310 """
311
312 # generate kernel if needed
313 self._createKernel()
314 kernel = np.asarray(self.kernel_image, dtype=np.float32)
315 kernel /= np.sum(kernel)
316
317 return kernel
318
319 @kernelMatrix.setter
320 def kernelMatrix(self, *kargs):

Callers

nothing calls this directly

Calls 1

_createKernelMethod · 0.95

Tested by

no test coverage detected