def color_normalize(src, mean, std=None):
    'Normalize src with mean and std.\n\n    Parameters\n    ----------\n    src : NDArray\n        Input image\n    mean : NDArray\n        RGB mean to be subtracted\n    std : NDArray\n        RGB standard deviation to be divided\n\n    Returns\n    -------\n    NDArray\n        An `NDArray` containing the normalized image.\n    '
    if (mean is not None):
        src -= mean
    if (std is not None):
        src /= std
    return src
Normalize src with mean and std.

Parameters
----------
src : NDArray
    Input image
mean : NDArray
    RGB mean to be subtracted
std : NDArray
    RGB standard deviation to be divided

Returns
-------
NDArray
    An `NDArray` containing the normalized image.
def color_normalize(src, mean, std=None):
    'Normalize src with mean and std.\n\n    Parameters\n    ----------\n    src : NDArray\n        Input image\n    mean : NDArray\n        RGB mean to be subtracted\n    std : NDArray\n        RGB standard deviation to be divided\n\n    Returns\n    -------\n    NDArray\n        An `NDArray` containing the normalized image.\n    '
    if (mean is not None):
        src -= mean
    if (std is not None):
        src /= std
    return src