python opencv 修改某像素点值

#coding=utf-8
#修改某像素点值
import cv2
import numpy as np

img=cv2.imread('./o.jpg')
print img.item(10,10,2)
img.itemset((10,10,2),100)
print img.item(10,10,2)

你可能感兴趣的:(opencv,python)