play

seas.video.play(array: numpy.ndarray, textsavepath: Optional[str] = None, min_max: Optional[Tuple[float, float]] = None, preprocess: bool = True, overlay: Optional[numpy.ndarray] = None, min_max_toolbars: bool = False, rescale_movie: bool = True, cmap: numpy.ndarray = 'default', loop: bool = True)None[source]

Play movie in opencv after normalizing display range.

Parameters
  • array – The (x,y,t or x,y,c,t) array to play as a movie.

  • textsavepath – An output to save time points to.

  • min_max – A specific min max value to scale the video to.

  • preprocess – Whether to preprocess the video, or calculate ranges dynamically.

  • overlay – An overlay frame to put on top of the video.

  • min_max_toolbars – Whether to display min/max slider toolbars for adjusting color range.

  • rescale_movie – Whether to rescale the movie.

  • cmap – The color map to apply.

  • loop – Whether to loop the video.

Returns

None.

Note: if preprocess is set to true, the array normalization is done in place, thus the array will be rescaled outside scope of this function.