Ask Your Question
0

Where do I find "EMD" method?

asked 2016-11-25 01:34:48 -0600

Sraw gravatar image

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

berak gravatar image

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-11-25 02:14:55 -0600

berak gravatar image

updated 2016-11-25 02:48:54 -0600

bad luck, cv::EMD() is not available in the python (or java) api.

ps: see here for the backstory.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-11-25 01:34:48 -0600

Seen: 927 times

Last updated: Nov 25 '16