Create Patches

Node Icon

Extract patches with a user-defined shape from the input data, and return the patches in an output list.

Inputs

Input

Input image or mask.

Type: Mask, Image, Required, Single

Outputs

Output

Output list of patches.

Type: Mask, Image, List

Settings

Patch size Integers

If any dimension of the patch size is not divisible by the input spatial shape, the output shape and list size can be handled in 3 ways:
Exact: The last patch in each dimension will be smaller than the defined patch size.
Pad: The last patch in each dimension will be padded with a pad value, so that each patch is the defined size.
Crop: The last patches in each dimension will be discarded.

Values: Exact, Pad, Crop

Pad value Integer

Pad value that will be used if Pad is selected as the Match size criterion.

See also

Keywords: