dlpy.images.ImageTable.as_patches

ImageTable.as_patches(x=0, y=0, width=None, height=None, step_size=None, output_width=None, output_height=None, inplace=True)

Generate patches from the images in the ImageTable

Parameters
xint, optional

Specify the x location of the top-left corner of the first patches.

yint, optional

Specify the y location of the top-left corner of the first patches.

widthint, optional

Specify the width of the patches.

heightint, optional

Specify the width of the patches. If not specified, height will be set to be equal to width.

step_sizeint, optional

Specify the step size of the moving windows for extracting the patches. Default : None, meaning step_size=width.

output_widthint, optional

Specify the output width of the patches. If not equal to width, the patches will be resize to the output width. Default : None, meaning output_width=width.

output_heightint, optional

Specify the output height of the patches. If not equal to height, the patches will be resize to the output height. Default : None, meaning output_height=height.

inplacebool, optional

Specifies whether to update the original table, or create a new one.

Returns
ImageTable

If inplace=False

None

If inplace=True