Lab Program 10
Lab Program 10
4. Gaussian Filter
Gaussian Blur
Syntax:
cv2. GaussianBlur(image, kernelsize, sigmaX )
Image
The image you need to blur
kernelsize
• This parameter specifies the size of the Gaussian kernel
• It should be a tuple (width, height) specifying the kernel
size.
• Both width and height should be odd and positive
numbers.
5 x 5 Kernel
sigmaX
cv2.waitKey(0)
cv2.destroyAllWindows()
• The function cv2.destroyAllWindows() is used in
OpenCV (cv2) to close all the OpenCV windows that
were created with cv2.imshow().