Ask Your Question

Revision history [back]

Where do I find "EMD" method?

I'm using cv2 in python3.5, and all I need is to calculate EMD distance between two n*n matrix. But I have search the whole cv2:

for i in dir(cv2):
if re.match(r'.*emd|EMD.*',i):
    print(i)

And get nothing. So, the problem is, where could I find it? I have read the document and there is an c code implementation.

click to hide/show revision 2
retagged

updated 2016-11-25 03:21:42 -0600

berak gravatar image

Where do I find "EMD" method?

I'm using cv2 in python3.5, and all I need is to calculate EMD distance between two n*n matrix. But I have search the whole cv2:

for i in dir(cv2):
if re.match(r'.*emd|EMD.*',i):
    print(i)

And get nothing. So, the problem is, where could I find it? I have read the document and there is an c code implementation.