"""Base class of image viewer for image based visualization."""from__future__importannotationsfromvis4d.common.typingimportNDArrayUI8
[docs]classImageViewerBackend:"""Abstract interface that allows to show images."""
[docs]defshow_images(self,images:list[NDArrayUI8],blocking:bool=True)->None:"""Shows a list of images. Args: 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. """raiseNotImplementedError
[docs]defsave_images(self,images:list[NDArrayUI8],file_paths:list[str])->None:"""Saves a list of images. Args: images (list[NDArrayUI8]): Images to save. file_paths (list[str]): File paths to save the images to. """raiseNotImplementedError