src – Input 8-bit 3-channel image.
dst – Output image with the same size and type as src .
templateWindowSize – Size in pixels of the template patch
searchWindowSize – Size in pixels of the window that is used to compute weighted average for given pixel.
h – Parameter regulating filter strength for luminance component.
hForColorComponents – The same as h but for color components.
Image Denoising
There are many methods whch support denoising in Python
Have look at one of them
cv2.fastNlMeansDenoisingColored(src[, dst[, h[, hColor[,
templateWindowSize[, searchWindowSize]]]]])
import numpy as np import cv2 from matplotlib import pyplot as plt img = cv2.imread('C:/Users/user/Desktop/python/fig1.jpg') dst = cv2.fastNlMeansDenoisingColored(img,None,10,10,7,21) plt.subplot(121),plt.imshow(img) plt.subplot(122),plt.imshow(dst) plt.show()