mosaic_movie¶
-
seas.domains.mosaic_movie(domain_ROIs: numpy.ndarray, ROI_timecourses: numpy.ndarray, savepath: Optional[str] = None, t_start: Optional[int] = None, t_stop: Optional[int] = None, n_rotations: int = 0, colormap: Optional[numpy.ndarray] = None, resize_factor: int = 1, codec: Optional[str] = None, speed: int = 1, fps: int = 10)[source]¶ Creates a mosaic movie, where the original movie is played back as a series of domain timecourses, each displayed over its original domain.
- Parameters
domain_ROIs – The domain map built by get_domain_map.
ROI_timecourses – The time series of each ROI, built by get_domain_map if map_only is False, or reconstructed with ‘get_domain_rebuilt_timecourses’
savepath – Where to save the movie to. In most cases, should be an avi or mp4 file path.
t_start – Frame number to start the movie at. If not provided, movie starts at 0.
t_stop – Frame number to stop the movie at. If not provided, movie ends at last frame.
n_rotations – Number of CCW rotations to apply before saving.
colormap – The colormap to apply. If not provided, loads the default from the defaults config file.
resize_factor – The factor to resize by when writing the video.
- Returns
Nothing.