摘要:
#计算灰度级别的累加概率,然后:当前像素值 = 当前像素的累加概率 * 255import cv2import numpy as npimg = cv2.imread('D:/pythonob/imageinpaint/img/flower.jpg',1)imgInfo = img.shapeheight = imgInfo[0]width = imgInfo[1]gray = cv2.cvtCo... 阅读全文
posted @ 2019-09-07 14:34
Bambo0
阅读(364)
评论(0)
推荐(0)
摘要:
原理:和灰度直方图一样,只是将一个灰度通道换成了三个的RGB通道import cv2import numpy as npimport matplotlib.pyplot as pltimg = cv2.imread('D:/pythonob/imageinpaint/img/flower.jpg',1)imgInfo = img.shapeheight = imgInfo[0]width = im... 阅读全文
posted @ 2019-09-07 14:27
Bambo0
阅读(440)
评论(0)
推荐(0)
摘要:
原理:统计每个像素灰度出现的概率import cv2import numpy as npimport matplotlib.pyplot as pltimg = cv2.imread('D:/pythonob/imageinpaint/img/flower.jpg',1)imgInfo = img.shapeheight = imgInfo[0]width = imgInfo[1]gray = c 阅读全文
posted @ 2019-09-07 12:58
Bambo0
阅读(880)
评论(0)
推荐(0)

浙公网安备 33010602011771号