load - Load tiff or .vsi / .ets videos

gpu_tracking.load(path, frames=None, channel=None)

Loads a tiff or .vsi / .ets a the provided path and returns it as a 3-dimensional numpy array.

Parameters:
  • path – The file path to the video to mean

  • frames – A sequence that specifies what frames from the video to load. For example, to only load the first 50 frames of a video, frames = range(50) can be supplied.

  • channel – In the case of .vsi / .ets files, the channel to mean.

Returns:

The numpy array containing the average of all frames in the video.

Return type:

video