def getBackgroundLevel(img):
# seems to be best one according of no-ref bg comparison
# as done for SNR article in BEDRICH2016 JPV
# return median_filter(img[10:-10:10,10:-10:10],7).min() #lest approach -
# not good
return cdf(median_filter(img[10:-10:10, 10:-10:10], 3), 0.01)
# return cdf(img[10:-10:10,10:-10:10],0.02)
评论列表
文章目录