PatchedArray#

class patch_denoise.space_time.base.PatchedArray(array, patch_shape, patch_overlap, dtype=None, padding_mode='edge', **kwargs)[source]#

Bases: object

A container for accessing custom view of array easily.

Parameters:
  • array (np.ndarray)

  • patch_shape (tuple)

  • patch_overlap (tuple)

Methods

__init__

add2patch

Add to patch, in place.

get_patch

Get patch at linear index idx.

set_patch

Set patch at linear index idx with value.

Attributes

n_patches

Get number of patches.

add2patch(idx, value)[source]#

Add to patch, in place.

get_patch(idx)[source]#

Get patch at linear index idx.

property n_patches#

Get number of patches.

set_patch(idx, value)[source]#

Set patch at linear index idx with value.