Sequential Patching
Sequential patching functions.
extract_patches_sequential(arr, patch_size, target=None)
Generate patches from an array in a sequential manner.
Array dimensions should be SC(Z)YX, where S and C can be singleton dimensions. The patches are generated sequentially and cover the whole array.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arr
|
ndarray
|
Input image array. |
required |
patch_size
|
tuple[int]
|
Patch sizes in each dimension. |
required |
target
|
Optional[ndarray]
|
Target array, by default None. |
None
|
Returns:
| Type | Description |
|---|---|
tuple[ndarray, Optional[ndarray]]
|
Patches. |