low_pass

imagepypelines.low_pass(img, cut_off, filter_type='ideal', butterworth_order=1)[source]

calculates a lowpass filter for an input image

Parameters:
  • img (np.ndarray) – image to calculate filter for
  • cut_off (float) – cutoff frequency for this filter. units in #TODO
  • filter_type (str) – the type of filter to apply, ‘ideal’,’gaussian’, ‘butterworth’
  • butterworth_order (float) – butterworth order if butterworth filter is being used
Returns:

filter(np.ndarray) 2D filter