dataeval.utils.preprocessing.normalize_image_shape

dataeval.utils.preprocessing.normalize_image_shape(image)

Normalizes the image shape into (C,H,W) format.

Parameters:
image : NDArray

Input image array

Returns:

Image in CHW format

Return type:

NDArray

Raises:

ValueError – If image has less than 2 dimensions