cellects.display.video
cellects.display.video
This script contains functions display videos
movie(video, increase_contrast=True)
Summary
Processes a video to display each frame with optional contrast increase and resizing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
video
|
ndarray
|
The input video represented as a 3D NumPy array. |
required |
increase_contrast
|
bool
|
Flag to increase the contrast of each frame (default is True). |
True
|
Other Parameters:
| Name | Type | Description |
|---|---|---|
keyboard |
int
|
Key to wait for during the display of each frame. |
increase_contrast |
bool
|
Whether to increase contrast for the displayed frames. |
Returns:
| Type | Description |
|---|---|
None
|
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Notes
This function uses OpenCV's imshow to display each frame. Ensure that the required
OpenCV dependencies are met.
Examples:
>>> movie(video)
Processes and displays a video with default settings.
>>> movie(video, keyboard=0)
Processes and displays a video waiting for the SPACE key between frames.
>>> movie(video, increase_contrast=False)
Processes and displays a video without increasing contrast.