mmcv.image.imnormalize¶
- mmcv.image.imnormalize(img, mean, std, to_rgb=True)[source]¶
Normalize an image with mean and std.
- Parameters
img (ndarray) – Image to be normalized.
mean (ndarray) – The mean to be used for normalize.
std (ndarray) – The std to be used for normalize.
to_rgb (bool) – Whether to convert to rgb.
- Returns
The normalized image.
- Return type
ndarray