gaussianblur
gaussianblur(img: np.ndarray, ksize: _Ksize = 3, sigmaX: int = 0, **kwargs) -> np.ndarray
-
Description: Apply Gaussian blur to the input image.
-
Parameters:
- img (
np.ndarray
): Input image to be blurred. - ksize (
Union[int, Tuple[int, int]]
): Size of the kernel used for blurring. If an integer value is provided, a square kernel of the specified size is used. If a tuple(k_height, k_width)
is provided, a rectangular kernel of the specified size is used. Default is 3. - sigmaX (
int
): Standard deviation of the Gaussian kernel in the X direction. Default is 0.
- img (
-
Returns:
- np.ndarray: Blurred image.
-
Example:
import docsaidkit as D
img = D.imread('lena.png')
blur_img = D.gaussianblur(img, ksize=5)