apply_colormap¶
-
seas.colormaps.apply_colormap(video: numpy.ndarray, colormap: Optional[numpy.ndarray] = None)[source]¶ Save a plt colorbar with a given scale to a specified path. Accepts plt or cv2 colormap objects.
- Parameters
video – The video to apply the colormap to. Should be in format (t,x,y)
colormap – Which colormap to apply Should be a cv2 colormap object. If left as None, the default colormap will be loaded.
- Returns
The video with colormap applied, in format (t,x,y,c)
- Return type
video_color
- Raises
AssertionError – The colormap was invalid.