{"action":"opened","issue":{"url":"https://api.github.com/repos/mshabunin/test2/issues/569","labels_url":"https://api.github.com/repos/mshabunin/test2/issues/569/labels{/name}","comments_url":"https://api.github.com/repos/mshabunin/test2/issues/569/comments","events_url":"https://api.github.com/repos/mshabunin/test2/issues/569/events","html_url":"https://github.com/mshabunin/test2/issues/569","id":91316070,"number":569,"title":"cv2.calcHist() not handling non uniform histogramming","user":{"login":"mshabunin","id":3304494,"avatar_url":"https://avatars.githubusercontent.com/u/3304494?v=3","gravatar_id":"","url":"https://api.github.com/users/mshabunin","html_url":"https://github.com/mshabunin","followers_url":"https://api.github.com/users/mshabunin/followers","following_url":"https://api.github.com/users/mshabunin/following{/other_user}","gists_url":"https://api.github.com/users/mshabunin/gists{/gist_id}","starred_url":"https://api.github.com/users/mshabunin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshabunin/subscriptions","organizations_url":"https://api.github.com/users/mshabunin/orgs","repos_url":"https://api.github.com/users/mshabunin/repos","events_url":"https://api.github.com/users/mshabunin/events{/privacy}","received_events_url":"https://api.github.com/users/mshabunin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mshabunin/test2/labels/Affected-None","name":"Affected-None","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/auto-transferred","name":"auto-transferred","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/Category-python_bindings","name":"Category-python_bindings","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/Priority-Normal","name":"Priority-Normal","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/Status-Open","name":"Status-Open","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/Target--","name":"Target--","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-26T17:36:43Z","updated_at":"2015-06-26T17:36:43Z","closed_at":null,"body":"Converted from http://code.opencv.org/issues/2749\r\n```\n|| by jean-philippe Andreu on 2013-01-31 14:53:00\n|| Status: Open\n|| Priority: Normal\n|| Affected: None\n|| Target: -\n|| Category: python bindings\n\ncv2.calcHist() not handling non uniform histogramming\n===========\nI tried to use cv2.calcHist() for non-uniform histograming but it\nreports the following error:   \n\"OpenCV Error: Assertion failed (csz 0 || csz dims) in unknown function,\nfile D:\\OpenCv2.4\\opencv\\modules\\imgproc\\src\\histogram.cpp, line 841\"   \n\"cv2.error: D:\\OpenCv2.4\\opencv\\modules\\imgproc\\src\\histogram.cpp:841:\nerror: (-215) csz 0 || csz dims\"\n\nLooking at the documentation it doesn't seem to one can set the\n'uniform' flag and by peeking at the C++ function (line 841 in\nhistogram.cpp) it looks like the binding is done with the uniform\nversion of cv::calcHist().\n\nWould be nice to have simple feature enabled under python...\n\n\nHistory\n=======\n\n```"}}