First time here? Check out the FAQ!

Ask Your Question
0

Where do I find "EMD" method?

asked Nov 25 '16

Sraw gravatar image

updated Nov 25 '16

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.

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Nov 25 '16

berak gravatar image

updated Nov 25 '16

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

ps: see here for the backstory.

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Nov 25 '16

Seen: 1,020 times

Last updated: Nov 25 '16