vis4d.vis.image.viewer

Viewer implementations to display images.

class ImageViewerBackend[source]

Abstract interface that allows to show images.

save_images(images, file_paths)[source]

Saves a list of images.

Parameters:
  • images (list[NDArrayUI8]) – Images to save.

  • file_paths (list[str]) – File paths to save the images to.

Return type:

None

show_images(images, blocking=True)[source]

Shows a list of images.

Parameters:
  • images (list[NDArrayUI8]) – Images to display.

  • blocking (bool, optional) – If the viewer should be blocking and wait for input after each image. Defaults to True.

Return type:

None

class MatplotlibImageViewer[source]

A image viewer using matplotlib.pyplot.

save_images(images, file_paths)[source]

Saves a list of images.

Parameters:
  • images (list[NDArrayUI8]) – Images to save.

  • file_paths (list[str]) – File paths to save the images to.

Return type:

None

show_images(images, blocking=True)[source]

Shows a list of images.

Parameters:
  • images (list[NDArrayUI8]) – Images to display.

  • blocking (bool) – If the viewer should be blocking and wait for human input after each image.

Return type:

None

Modules

vis4d.vis.image.viewer.base

Base class of image viewer for image based visualization.

vis4d.vis.image.viewer.matplotlib_viewer

Matplotlib based image viewer.