pysted.utils.array_padder

pysted.utils.array_padder(base, laser, pad_value=0)

Function used to pad an array (base) according to the size of the secondary array being iterated over it (laser).

Parameters:
  • base – Base array on which we wish to iterate another array.

  • laser – Secondary array which will be iterated over the base array. Axes have to be of odd lengths in order for it to have a well defined single pixel center.

  • pad_value – Value of the padded region.

Returns:

Padded version of the base array, along with the number of added rows and columns