pyaesthetics.utils.calculate_gradient

pyaesthetics.utils.calculate_gradient(image)

Calculate the gradient of an image using the Sobel operator.

Parameters:

image – Input image (single channel).

Returns:

Gradient magnitude of the image.