darsia.EMD#
- class EMD(preprocess=None, **kwargs)[source]#
Bases:
objectClass to determine the EMD through cv2.
NOTE: EMD from cv2 suffers from strict memory limitations. Alternative algorithms are provided in the module :mod:wasserstein.
- Parameters:
- preprocess
callable(),optional Preprocessing routine.
- preprocess
Methods
distance_matrix(images)Compute the distance between each iteam of a list.
- distance_matrix(images)[source]#
Compute the distance between each iteam of a list.
- Parameters:
- images
listofimages N images.
- images
- Returns:
np.ndarrayN x N matrix with distances between images.