bruges.filters.kernels module

2D kernels for image processing.

copyright:2015 Agile Geoscience
license:Apache 2.0
bruges.filters.kernels.gaussian(size, size_y=None)[source]

2D Gaussian Kernel

Parameters:
  • size (int) – the kernel size, e.g. 5 for 5x5 (in a 2D arr). Should be odd, rounded up if not.
  • size_y (int) – similar to size. If not provided, uses size as default.

Returns: a Gaussian kernel.

bruges.filters.kernels.gaussian_kernel(size, size_y=None)

2D Gaussian Kernel

Parameters:
  • size (int) – the kernel size, e.g. 5 for 5x5 (in a 2D arr). Should be odd, rounded up if not.
  • size_y (int) – similar to size. If not provided, uses size as default.

Returns: a Gaussian kernel.