cellects.simulation.colonies
cellects.simulation.colonies
Generate synthetic colony growth videos.
This module provides a helper to synthesize a short video that mimics the
expansion of microbial colonies. The implementation creates an initial
binary frame with a few random seed points, repeatedly dilates the mask
with a circular structuring element to simulate growth, and finally maps
the binary masks to RGB colours using :func:colorize_mask.
Functions:
| Name | Description |
|---|---|
growing_colonies : Generate a colony‑like video by applying dilation |
operations and random colour filling. |
growing_colonies()
Generate a colony-like video by applying dilation operations and random color filling. This function creates a binary video with randomized initial frames, dilates the frames using a circular kernel to simulate colony growth over time, and then converts the binary video into a colored RGB video.
Returns:
| Name | Type | Description |
|---|---|---|
rgb_video |
ndarray
|
A video with shape |
Examples: