dlpy.images.ImageTable.resize

ImageTable.resize(width=None, height=None, inplace=True, columns=None)

Resize the images in the ImageTable

Parameters:
width : int, optional

Specify the target width of the resized images.

height : int, optional

Specify the target height of the resized images. If not specified, height will be set to be equal to width.

inplace : bool, optional

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

columns : list, optional

Specifies a list of column names to be copied over to the resulting table.

Returns:
ImageTable

If inplace=False

None

If inplace=True

Examples

>>> from swat import CAS
>>> from dlpy.images import ImageTable
>>> s=CAS("cloud.example.com", 5570)
>>> img_tbl=ImageTable.load_files(s, "/path/to/images", caslib="CASUSER(user)")
>>> resized = img_tbl.resize(width=200, height=100, inplace=False)