2018-03-20-how to reduce domain with OpenCV in python

when a ROI is given, how to set the grayvalue of the rest region as 0 in cv2. (just like reduce_domain in Halcon)


the idea is generate a black image

你可能感兴趣的:(2018-03-20-how to reduce domain with OpenCV in python)