Opencv让一张图的所有像素值+1,不超过255,如何操作
img1=cv.imread()img2 = np.clip(img1+1 , 0 , 255 ) #给img1设置最值0和255show(img2)