patch_denoise.space_time.utils.get_patch_locs#

patch_denoise.space_time.utils.get_patch_locs(p_shape, p_ovl, v_shape)[source]#

Get all the patch top-left corner locations.

Parameters:
  • vol_shape (tuple) – The volume shape

  • patch_shape (tuple) – The patch shape

  • patch_overlap (tuple) – The overlap of patch for each dimension.

Returns:

All the patch top-left corner locations.

Return type:

numpy.ndarray

Notes

This is a legacy function, you probably want to use the PatchedArray class.