def histMatch(img,ref):
out = np.zeros_like(img)
_, _, colorChannel = img.shape
for i in range(colorChannel):
# get the histogram
hist_img
python图片匀色算法(直方图匹配)
最新推荐文章于 2024-01-17 23:30:53 发布
这段代码实现了一个颜色直方图匹配的功能。通过计算输入图像(img)和参考图像(ref)的每个颜色通道的直方图,然后找到最小的累积分布函数差值,将输入图像的颜色映射到参考图像的色彩空间。

&spm=1001.2101.3001.5002&articleId=128117963&d=1&t=3&u=7ddbe94ab8794df59c096baf837a7a8a)
2083

被折叠的 条评论
为什么被折叠?



