pyaesthetics.selfsimilarityΒΆ

This module is used to evaluate the self-similarity and anisotropy of an image. It is based on Braun, J., Amirshahi, S. A., Denzler, J., & Redies, C. (2013). Statistical image properties of print advertisements, visual artworks, and images of architecture. Frontiers in Psychology, 4, 808.

Created on Sat Aug 3 11:34:57 2024 Last edited on Fri Sep 13 16:30:43 2024

@author: Giulio Gabrieli (gack94@gmail.com)

Functions

bin_hog_features

Bin the HOG features into n bins.

calculate_hog

Calculate the Histogram of Oriented Gradients (HOG) for a given image.

get_self_similarity

Calculate the self-similarity and anisotropy of an image using HOG features.

plot_hog_histogram

Plot the histogram of the binned HOG features.

preprocess_image

Open an image, convert it to LAB color space, split into L, a, and b channels, and calculate the gradient of each channel.