spectral_unmixing.max_z_projectο
- spectral_unmixing.max_z_project(stack, *, zrange=None)[source]ο
Compute a maximum-intensity projection over the Z axis while preserving
TandC.- Parameters:
stack (array-like) β Input stack in canonical
TZCYXorder, or a simplerZYX/YXarray.zrange (tuple[int, int] or None, optional) β Optional half-open Z range
(start, stop)used for the projection. If the provided bounds fall outside the stack, they are clamped to the valid Z extent. IfNone, the full Z range is used.
- Return type:
ndarray- Returns:
np.ndarray β The returned stack stays in canonical
TZCYXorder with a singleton Z dimension.