dlpy.images.ImageTable.show¶
-
ImageTable.
show
(nimages=5, ncol=8, randomize=False, figsize=None, where=None, id=None)¶ Display a grid of images
Parameters: - nimages : int, optional
Specifies the number of images to be displayed. If nimage is greater than the maximum number of images in the table, it will be set to this maximum number.
Note: Specifying a large value for nimages can lead to slow performance.- ncol : int, optional
Specifies the layout of the display, determine the number of columns in the plots.
- randomize : bool, optional
Specifies whether to randomly choose the images for display.
- figsize : int, optional
Specifies the size of the fig that contains the image.
- where : string, optional
Specifies the SAS Where clause for selecting images to be shown. One example is as follows: my_images.show(nimages=2, where=’_id_ eq 57’)
- id : string, optional
Specifies the identifier column in the image table to be shown.
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)") >>> img_tbl.show(nimages=5)