API#
prototype_lib: a tiny stand-in library with the shape of the real ones.
It has a Roi-like value type, one numpy kernel, and one deliberately lazy import so the import-time benchmark has something to catch.
- class prototype_lib.Roi(offset, shape)#
- contains(point)#
- Return type:
bool
- property end: tuple[int, ...]#
- offset: tuple[int, ...]#
- shape: tuple[int, ...]#
- prototype_lib.label_components(mask)#
Connected components of a boolean array, 1-connectivity. Returns an int array.