运行结果:
(1)原图:
(2)暗通道图:
(3)去雾图:
import cv2 as cv
import numpy as np
import matplotlib.pyplot as pyplot
def darkchannel():
for i in range(0,rows-1):
for j in range(0,cols-1):
min_rgb = i
运行结果:
(1)原图:
(2)暗通道图:
(3)去雾图:
import cv2 as cv
import numpy as np
import matplotlib.pyplot as pyplot
def darkchannel():
for i in range(0,rows-1):
for j in range(0,cols-1):
min_rgb = i