pyaesthetics.selfsimilarity.get_self_similarity

pyaesthetics.selfsimilarity.get_self_similarity(image, methods=['ground', 'parent', 'neighbors', 'anisotropy'], resize=True, newsize=(512, 512))

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

Parameters:
  • image (numpy.ndarray) – Input image.

  • methods (list) – List of methods to calculate self-similarity. Options are ‘ground’, ‘parent’, ‘neighbors’, ‘anisotropy’.

Returns:

Dictionary of self-similarity measures.

Return type:

dict