smpy.filters.processing.apply_filter_convolution

smpy.filters.processing.apply_filter_convolution(data, kernel)[source]

Apply a filter kernel via convolution.

Perform 2D convolution of data with the specified kernel using constant boundary conditions.

Parameters:
  • data (numpy.ndarray) – 2D input data array.

  • kernel (numpy.ndarray) – 2D convolution kernel.

Returns:

filtered_data – Convolved data array.

Return type:

numpy.ndarray