{"action":"opened","issue":{"url":"https://api.github.com/repos/mshabunin/test2/issues/1368","labels_url":"https://api.github.com/repos/mshabunin/test2/issues/1368/labels{/name}","comments_url":"https://api.github.com/repos/mshabunin/test2/issues/1368/comments","events_url":"https://api.github.com/repos/mshabunin/test2/issues/1368/events","html_url":"https://github.com/mshabunin/test2/issues/1368","id":96119925,"number":1368,"title":"CLAHE Lacks Support for Other Image Types","user":{"login":"opencv-pushbot","id":2051563,"avatar_url":"https://avatars.githubusercontent.com/u/2051563?v=3","gravatar_id":"","url":"https://api.github.com/users/opencv-pushbot","html_url":"https://github.com/opencv-pushbot","followers_url":"https://api.github.com/users/opencv-pushbot/followers","following_url":"https://api.github.com/users/opencv-pushbot/following{/other_user}","gists_url":"https://api.github.com/users/opencv-pushbot/gists{/gist_id}","starred_url":"https://api.github.com/users/opencv-pushbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencv-pushbot/subscriptions","organizations_url":"https://api.github.com/users/opencv-pushbot/orgs","repos_url":"https://api.github.com/users/opencv-pushbot/repos","events_url":"https://api.github.com/users/opencv-pushbot/events{/privacy}","received_events_url":"https://api.github.com/users/opencv-pushbot/received_events","type":"User","site_admin":false},"labels":[{"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:%20imgproc","name":"category: imgproc","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/category:%20video","name":"category: video","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/feature","name":"feature","color":"84b6eb"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/priority:%20normal","name":"priority: normal","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-20T17:50:01Z","updated_at":"2015-07-20T17:50:01Z","closed_at":null,"body":"Transferred from http://code.opencv.org/issues/3749\r\n```\n|| Nathan Jackson on 2014-06-11 20:23\n|| Priority: Normal\n|| Affected: None\n|| Category: imgproc, video\n|| Tracker: Feature\n|| Difficulty: \n|| PR: \n|| Platform: None / None\n```\n\nCLAHE Lacks Support for Other Image Types\n-----------\n```\nSome of the data I work with is 16-bit grayscale.  I need to implement an algorithm that uses CLAHE, but the datatype is not supported.  From what I can tell, only 8-bit images are supported.  It would be extremely useful to be able to work with images of other datatypes than 8-bit grayscale.\n```\n\nHistory\n-------\n##### Nathan Jackson on 2014-06-18 18:45\n```\nI've begun work on this.  Currently working on getting 16-bit images to work.\r\n\r\nSee: https://github.com/nathanjackson/opencv/tree/clahe_datatypes\n-   Assignee set to Nathan Jackson\n```\n##### Nathan Jackson on 2014-06-18 18:45\n```\n-   Status changed from New to Open\n```\n##### Daniil Osokin on 2014-07-07 16:41\n```\nHi Nathan, looking forward to your contribution!\n-   Category set to imgproc, video\n```\n##### Nathan Jackson on 2014-08-02 19:52\n```\nI've resumed work on this since my summer semester is over.\n```\n##### Nathan Jackson on 2014-08-03 00:22\n```\nIn my work, I'm referencing some code from here: http://tog.acm.org/resources/GraphicsGems/gemsiv/clahe.c\r\n\r\nI'm not sure if targetting 3.0-alpha is correct, someone may be able to better advise me on that.\r\n\r\n16-bit images appear to be working and I've pushed the code into my repository.  I'm comparing my results using an ImageJ and a CLAHE plugin (http://rsbweb.nih.gov/ij/plugins/clahe/index.html).  The results from both implementations (OpenCV's and the ImageJ plugin) are the same.\r\n\r\nPlease feel free to test: https://github.com/nathanjackson/opencv/tree/clahe_datatypes\r\n\r\nI want to further test the other datatypes.  I've only worked with 16-bit images so far as the data that I work with is 16-bit.\n-   Target version set to 3.0-alpha\n```\n##### Nathan Jackson on 2014-08-03 23:02\n```\nA pull request has been made for the non-OpenCL version: https://github.com/Itseez/opencv/pull/3033\n-   % Done changed from 0 to 30\n```\n##### Nathan Jackson on 2014-08-12 11:44\n```\nCLAHE now supports 16-bit images in mainline OpenCV, my pull request was merged.  I'm keeping this marked at 30% as I'd like to work on the OpenCL and CUDA implementations.\r\n\r\nOnly 16-bit images will be supported because the maintainers don't want to bloat the OpenCV binaries.\n```\n##### Maksim Shabunin on 2015-04-27 09:11\n```\n-   Target version changed from 3.0-alpha to 3.0\n```"}}