{"action":"created","issue":{"url":"https://api.github.com/repos/kyamagu/mexopencv/issues/191","labels_url":"https://api.github.com/repos/kyamagu/mexopencv/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/kyamagu/mexopencv/issues/191/comments","events_url":"https://api.github.com/repos/kyamagu/mexopencv/issues/191/events","html_url":"https://github.com/kyamagu/mexopencv/issues/191","id":105194026,"number":191,"title":"EMD crash when user cost function is used","user":{"login":"YanaiA","id":11625398,"avatar_url":"https://avatars.githubusercontent.com/u/11625398?v=3","gravatar_id":"","url":"https://api.github.com/users/YanaiA","html_url":"https://github.com/YanaiA","followers_url":"https://api.github.com/users/YanaiA/followers","following_url":"https://api.github.com/users/YanaiA/following{/other_user}","gists_url":"https://api.github.com/users/YanaiA/gists{/gist_id}","starred_url":"https://api.github.com/users/YanaiA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YanaiA/subscriptions","organizations_url":"https://api.github.com/users/YanaiA/orgs","repos_url":"https://api.github.com/users/YanaiA/repos","events_url":"https://api.github.com/users/YanaiA/events{/privacy}","received_events_url":"https://api.github.com/users/YanaiA/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-07T10:49:40Z","updated_at":"2015-10-11T19:41:58Z","closed_at":"2015-10-11T11:38:28Z","body":"for Earth Mover's Distance, openCV crashes if there is a user cost function and the lowerBound is expected as output.\r\n\r\nMy suggestion: replace \r\n    double d = EMD(signature1, signature2, distType, cost, &lowerBound, flow);\r\n\r\nwith:\r\n    double d;\r\n    if (distType==cv::DIST_USER\t)\r\n    {\r\n        d = EMD(signature1, signature2, distType, cost);\r\n    }\r\n    else\r\n    {\r\n        d = EMD(signature1, signature2, distType, cost, &lowerBound, flow);\r\n    }\r\n"},"comment":{"url":"https://api.github.com/repos/kyamagu/mexopencv/issues/comments/147238870","html_url":"https://github.com/kyamagu/mexopencv/issues/191#issuecomment-147238870","issue_url":"https://api.github.com/repos/kyamagu/mexopencv/issues/191","id":147238870,"user":{"login":"amroamroamro","id":83908,"avatar_url":"https://avatars.githubusercontent.com/u/83908?v=3","gravatar_id":"","url":"https://api.github.com/users/amroamroamro","html_url":"https://github.com/amroamroamro","followers_url":"https://api.github.com/users/amroamroamro/followers","following_url":"https://api.github.com/users/amroamroamro/following{/other_user}","gists_url":"https://api.github.com/users/amroamroamro/gists{/gist_id}","starred_url":"https://api.github.com/users/amroamroamro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amroamroamro/subscriptions","organizations_url":"https://api.github.com/users/amroamroamro/orgs","repos_url":"https://api.github.com/users/amroamroamro/repos","events_url":"https://api.github.com/users/amroamroamro/events{/privacy}","received_events_url":"https://api.github.com/users/amroamroamro/received_events","type":"User","site_admin":false},"created_at":"2015-10-11T19:41:58Z","updated_at":"2015-10-11T19:41:58Z","body":"sorry it took me so long to push my updates. Here's the PR #198 \r\n\r\nI still have some more changes for later when they're ready. I added new modules like: shape, superres, stitching, videostab.\r\n"}}