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 the HOG features into n bins. |
|
Calculate the Histogram of Oriented Gradients (HOG) for a given image. |
|
Calculate the self-similarity and anisotropy of an image using HOG features. |
|
Plot the histogram of the binned HOG features. |
|
Open an image, convert it to LAB color space, split into L, a, and b channels, and calculate the gradient of each channel. |