grains.gala_light.hminima

grains.gala_light.hminima(a, thresh)[source]

Suppress all minima that are shallower than thresh.

Parameters
  • a (array) – The input array on which to perform hminima.

  • thresh (float) – Any local minima shallower than this will be flattened.

Returns

out (array) – A copy of the input array with shallow minima suppressed.