pyaesthetics.selfsimilarity.preprocess_image¶
- pyaesthetics.selfsimilarity.preprocess_image(image_path)¶
Open an image, convert it to LAB color space, split into L, a, and b channels, and calculate the gradient of each channel. Then merge the gradients by taking the maximum value for each pixel from the three gradients.
- Parameters:
image_path – Path to the input image.
- Returns:
Merged gradient image.