小编use*_*362的帖子

计算对比图

我正在尝试计算窗口中每个像素周围的对比度NxN,并将结果保存在新图像中,其中新图像中的每个像素是旧图像中其周围区域的对比度。从另一篇文章我得到了这个:

1) Convert the image to say LAB and get the L channel
2) Compute the max for an NxN neighborhood around each pixel
3) Compute the min for an NxN neighborhood around each pixel
4) Compute the contrast from the equation above at each pixel.
5) Insert the contrast as a pixel value in new image.
Run Code Online (Sandbox Code Playgroud)

目前我有以下内容:

1) Convert the image to say LAB and get the L channel
2) Compute the max for an NxN neighborhood …
Run Code Online (Sandbox Code Playgroud)

python opencv image-processing contrast

2
推荐指数
1
解决办法
915
查看次数

标签 统计

contrast ×1

image-processing ×1

opencv ×1

python ×1