kernels.maximum
kernels.maximum(arr, *, validate=True)Return the NaN-aware maximum along the stack axis.
Parameters
arr : (ndarray, shape(N, *spatial))-
Image stack. Accepted dtypes are
uint8,uint16,int16,int32,float32, andfloat64. Integer inputs are promoted to the package’s floating workspace whenvalidateisTrue. Inputs with more than 3 dimensions are flattened internally; output shapes match the trailing spatial dimensions of the input. validate : bool = True-
If
True, check dimensionality and normalize dtype/contiguity before entering the Rust kernel. IfFalse, callers must provide inputs that satisfy the compiled kernel assumptions.
Returns
maximum : (ndarray, shape(*spatial))-
Per-pixel maximum of finite values. All-NaN output elements return
NaN.