Convert an image of arbitrary channels (CHW) to a single-channel uint8 grayscale image (HW).
Uses color-space-aware heuristics.
- Parameters:
- image : NDArray
Input array in CHW format
- Returns:
2D grayscale array (HW) of type np.uint8
- Return type:
NDArray[np.uint8]