ImageSequence#

class ImageSequence(images: Any)[source]#

An in-memory sequence of Image objects with interactive display.

Parameters:

images (iterable of Image) – sequence of images

The sequence is materialised into a list on construction. Items are expected to be Image instances; a timestamp attribute (ROS nanosecond epoch) and topic attribute are used for the display overlay when present.

Example:

from machinevisiontoolbox import ROSBag, ImageSequence
bag = ROSBag("mybag.bag", msgfilter="Image")
seq = ImageSequence(bag)
seq.disp()                        # step through one frame at a time
seq.disp(animate=True, fps=5)     # timed playback
Seealso:

PointCloudSequence

Methods

disp

Display images from the source interactively.

tensor

Convert all images from this source into a single 4D PyTorch tensor.