python 图像灰度均值
Image Blurring refers to making the image less clear or distinct. The Mean Filter often used to remove noise from an image or signal.
图像模糊是指使图像不太清晰或鲜明。 均值滤波器通常用于去除图像或信号中的噪声。
In this program, we will be using two functions of OpenCV-python (cv2) module.. let's see their syntax and descriptions first:
在此程序中,我们将使用OpenCV-python(cv2)模块的两个功能。.让我们首先查看它们的语法和说明:
1) imread():
It takes an absolute path/relative path of your image file as an argument and returns its corresponding image matrix.
1)imread():
它以图像文件的绝对路径/相对路径作为参数,并返回其对应的图像矩阵。
If flag value is:
如果标志值为:
1: Loads a color image.
1 :加载彩色图像。
0: Loads image in grayscale mode.
0 :以灰度模式加载图像。
-1: Loads image as