dataeval.data.Images

class dataeval.data.Images(dataset)

Collection of image data from a dataset.

Images are accessed by index or slice and are loaded on-demand for memory-efficient processing of large datasets.

Parameters:
dataset : Dataset[tuple[T, ...]] or Dataset[T]

Dataset that provides image data for access and visualization.

None

All dataset access is handled through indexing operations.

plot(indices, images_per_row=3, figsize=(10, 10))

Display images in a grid layout.

Create matplotlib figure showing specified images arranged in a grid format for visual inspection and comparison.

Parameters:
indices : Sequence[int]

Dataset indices of images to display in the plot.

images_per_row : int, default 3

Number of images displayed per row in the grid. Default 3 provides a balanced layout for most screen sizes.

figsize : tuple[int, int], default (10, 10)

Figure dimensions as (width, height) in inches. Default (10, 10) accommodates typical grid layouts with readable detail.

Returns:

Matplotlib figure object containing the image grid display.

Return type:

Figure

to_list()

Convert entire dataset to a sequence of images.

Load all images from the dataset and return a single sequence in memory for batch processing or analysis.

Returns:

Complete sequence of all images in the dataset

Return type:

list[T]

Warning

Loading entire dataset into memory can consume significant resources for large image collections.