https://docs.opencv.org/master/d2/de8/group__core__array.html#ga87eef7ee3970f86906d69a92cbf064bd
python
image = cv2.normalize(image, None, 0, 255, norm_type=cv2.NORM_MINMAX, dtype=cv2.CV_8UC3)
c++
cv::normalize(filledSrcImage, filledSrcImage, 0, 255, cv::NORM_MINMAX, CV_8UC1);