opencv - Is EarthMoverDistance with signatures having 1 column supported? -


it documented if want use emd weights stored columns in signatures can given give user defined cost matrix. well, problem doesn't work, function crashes if try that. sure is indeed supported? here pseudcode if interested.

if (weightsonly) {  signature1.create(h,1,cv_32fc1) signature1.create(h,1,cv_32fc1) //fill in signature 1 //fill in signature 2 emd = emd(signature1, signature2, mp[metricspace], cost_mat, 0, flow); } 

this crashes function.

this stupid question ask :)

it works, passing wrong metric, given want use cost matrix need specify metric cv_dist_user


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -