pysted.utils.array_unpadder

pysted.utils.array_unpadder(padded_base, laser)

Unpads an array according to the size of the secondary array being iterated over it.

Function used to unpad a padded array (padded_base) according to the size of the secondary array being iterated over it (laser).

Parameters:
  • padded_base – Padded Base array which we wish to unpad.

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

Returns:

An unpadded version of the padded_base.