utils/data_utils.py
def compute_image_laplacian(img):
    """
    Function to compute the laplacian of an image using Laplacian filter
    :param img: CxHxW Tensor
    :return: CxHxW Tensor
    """
    img = laplacian(img.unsqueeze(0), 3, normalized=False)  # adding 1 dimension required by kornia library
    return img[0]

    Function to compute the laplacian of an image using Laplacian filter
    :param img: CxHxW Tensor
    :return: CxHxW Tensor
    
Function to compute the laplacian of an image using Laplacian filter
Function to compute the laplacian of an image using Laplacian filter
def compute_image_laplacian(img):
    img = laplacian(img.unsqueeze(0), 3, normalized=False)  
    return img[0]
def compute_image_laplacian ( img ) : img = laplacian ( img . unsqueeze ( 0 ) , 3 , normalized = False ) return img [ 0 ]
Function to compute the laplacian of an image using Laplacian filter
Function to compute the laplacian of an image using Laplacian filter
"""
    Function to compute the laplacian of an image using Laplacian filter
    :param img: CxHxW Tensor
    :return: CxHxW Tensor
    """ # adding 1 dimension required by kornia library
None
img
None