Skip to content

Normalization

Normalization

Bases: ImageOnlyTransform

apply

apply(image: ndarray, **kwargs) -> np.ndarray

Apply image-level normalization to input image.

Parameters:

Name Type Description Default
image ndarray

Input image to be normalized. Shape (H, W, C)|(H, W).

required

Returns:

Type Description
ndarray

np.ndarray: Normalized image. Same shape as input. dtype: float32.

get_transform_init_args_names

get_transform_init_args_names()

Get the names of the transformation arguments.