{"action":"created","comment":{"url":"https://api.github.com/repos/Itseez/opencv_contrib/pulls/comments/65058542","id":65058542,"diff_hunk":"@@ -0,0 +1,69 @@\n+/*M///////////////////////////////////////////////////////////////////////////////////////\n+//\n+//  IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.\n+//\n+//  By downloading, copying, installing or using the software you agree to this license.\n+//  If you do not agree to this license, do not download, install,\n+//  copy or use the software.\n+//\n+//\n+//                           License Agreement\n+//                For Open Source Computer Vision Library\n+//\n+// Copyright (C) 2015, University of Ostrava, Institute for Research and Applications of Fuzzy Modeling,\n+// Pavel Vlasanek, all rights reserved. Third party copyrights are property of their respective owners.\n+//\n+// Redistribution and use in source and binary forms, with or without modification,\n+// are permitted provided that the following conditions are met:\n+//\n+//   * Redistribution's of source code must retain the above copyright notice,\n+//     this list of conditions and the following disclaimer.\n+//\n+//   * Redistribution's in binary form must reproduce the above copyright notice,\n+//     this list of conditions and the following disclaimer in the documentation\n+//     and/or other materials provided with the distribution.\n+//\n+//   * The name of the copyright holders may not be used to endorse or promote products\n+//     derived from this software without specific prior written permission.\n+//\n+// This software is provided by the copyright holders and contributors \"as is\" and\n+// any express or implied warranties, including, but not limited to, the implied\n+// warranties of merchantability and fitness for a particular purpose are disclaimed.\n+// In no event shall the Intel Corporation or contributors be liable for any direct,\n+// indirect, incidental, special, exemplary, or consequential damages\n+// (including, but not limited to, procurement of substitute goods or services;\n+// loss of use, data, or profits; or business interruption) however caused\n+// and on any theory of liability, whether in contract, strict liability,\n+// or tort (including negligence or otherwise) arising in any way out of\n+// the use of this software, even if advised of the possibility of such damage.\n+//\n+//M*/\n+\n+#ifndef __OPENCV_FUZZY_F0_MATH_H__","path":"modules/img_hash/include/opencv2/img_hash/img_hash_base.hpp","position":null,"original_position":42,"commit_id":"60eae39f8425e2b3e76cb158211129012028fb3d","original_commit_id":"fbac0c8418ccfe77a77a2075005811580694a91b","user":{"login":"stereomatchingkiss","id":1801914,"avatar_url":"https://avatars.githubusercontent.com/u/1801914?v=3","gravatar_id":"","url":"https://api.github.com/users/stereomatchingkiss","html_url":"https://github.com/stereomatchingkiss","followers_url":"https://api.github.com/users/stereomatchingkiss/followers","following_url":"https://api.github.com/users/stereomatchingkiss/following{/other_user}","gists_url":"https://api.github.com/users/stereomatchingkiss/gists{/gist_id}","starred_url":"https://api.github.com/users/stereomatchingkiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stereomatchingkiss/subscriptions","organizations_url":"https://api.github.com/users/stereomatchingkiss/orgs","repos_url":"https://api.github.com/users/stereomatchingkiss/repos","events_url":"https://api.github.com/users/stereomatchingkiss/events{/privacy}","received_events_url":"https://api.github.com/users/stereomatchingkiss/received_events","type":"User","site_admin":false},"body":"@berak Thanks for pointing this defect out","created_at":"2016-05-30T11:20:42Z","updated_at":"2016-05-30T11:20:42Z","html_url":"https://github.com/Itseez/opencv_contrib/pull/688#discussion_r65058542","pull_request_url":"https://api.github.com/repos/Itseez/opencv_contrib/pulls/688","_links":{"self":{"href":"https://api.github.com/repos/Itseez/opencv_contrib/pulls/comments/65058542"},"html":{"href":"https://github.com/Itseez/opencv_contrib/pull/688#discussion_r65058542"},"pull_request":{"href":"https://api.github.com/repos/Itseez/opencv_contrib/pulls/688"}}},"pull_request":{"url":"https://api.github.com/repos/Itseez/opencv_contrib/pulls/688","id":71822169,"html_url":"https://github.com/Itseez/opencv_contrib/pull/688","diff_url":"https://github.com/Itseez/opencv_contrib/pull/688.diff","patch_url":"https://github.com/Itseez/opencv_contrib/pull/688.patch","issue_url":"https://api.github.com/repos/Itseez/opencv_contrib/issues/688","number":688,"state":"open","locked":false,"title":"Implement image hash modules","user":{"login":"stereomatchingkiss","id":1801914,"avatar_url":"https://avatars.githubusercontent.com/u/1801914?v=3","gravatar_id":"","url":"https://api.github.com/users/stereomatchingkiss","html_url":"https://github.com/stereomatchingkiss","followers_url":"https://api.github.com/users/stereomatchingkiss/followers","following_url":"https://api.github.com/users/stereomatchingkiss/following{/other_user}","gists_url":"https://api.github.com/users/stereomatchingkiss/gists{/gist_id}","starred_url":"https://api.github.com/users/stereomatchingkiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stereomatchingkiss/subscriptions","organizations_url":"https://api.github.com/users/stereomatchingkiss/orgs","repos_url":"https://api.github.com/users/stereomatchingkiss/repos","events_url":"https://api.github.com/users/stereomatchingkiss/events{/privacy}","received_events_url":"https://api.github.com/users/stereomatchingkiss/received_events","type":"User","site_admin":false},"body":"I intend to implement different image hashing algorithms and port the image hashing algorithms of [PHash library](http://www.phash.org/docs/) to opencv.  there are three algorithms already implemented by this pull request, they are \"average hash\", \"phash\" and \"Marr-Hildreth Operator Based Hash\".\r\n\r\nTest case of average mean and phash are based on golden models(calculated by hand), test case of Marr-Hildreth Operator is based on the golden model compare with origin implementation(I make sure the steps of fillBlocks and createHash generate same value as PHash did).\r\n\r\nIn the future, I will port another algorithms from PHash library, like Radial Variance based Hash and block Mean Value Based Hash. ","created_at":"2016-05-29T09:08:14Z","updated_at":"2016-05-30T11:20:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"016bcacf8bcdf929f627f69e5e239b457df70e7b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Itseez/opencv_contrib/pulls/688/commits","review_comments_url":"https://api.github.com/repos/Itseez/opencv_contrib/pulls/688/comments","review_comment_url":"https://api.github.com/repos/Itseez/opencv_contrib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Itseez/opencv_contrib/issues/688/comments","statuses_url":"https://api.github.com/repos/Itseez/opencv_contrib/statuses/60eae39f8425e2b3e76cb158211129012028fb3d","head":{"label":"stereomatchingkiss:img_hash","ref":"img_hash","sha":"60eae39f8425e2b3e76cb158211129012028fb3d","user":{"login":"stereomatchingkiss","id":1801914,"avatar_url":"https://avatars.githubusercontent.com/u/1801914?v=3","gravatar_id":"","url":"https://api.github.com/users/stereomatchingkiss","html_url":"https://github.com/stereomatchingkiss","followers_url":"https://api.github.com/users/stereomatchingkiss/followers","following_url":"https://api.github.com/users/stereomatchingkiss/following{/other_user}","gists_url":"https://api.github.com/users/stereomatchingkiss/gists{/gist_id}","starred_url":"https://api.github.com/users/stereomatchingkiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stereomatchingkiss/subscriptions","organizations_url":"https://api.github.com/users/stereomatchingkiss/orgs","repos_url":"https://api.github.com/users/stereomatchingkiss/repos","events_url":"https://api.github.com/users/stereomatchingkiss/events{/privacy}","received_events_url":"https://api.github.com/users/stereomatchingkiss/received_events","type":"User","site_admin":false},"repo":{"id":51511014,"name":"opencv_contrib","full_name":"stereomatchingkiss/opencv_contrib","owner":{"login":"stereomatchingkiss","id":1801914,"avatar_url":"https://avatars.githubusercontent.com/u/1801914?v=3","gravatar_id":"","url":"https://api.github.com/users/stereomatchingkiss","html_url":"https://github.com/stereomatchingkiss","followers_url":"https://api.github.com/users/stereomatchingkiss/followers","following_url":"https://api.github.com/users/stereomatchingkiss/following{/other_user}","gists_url":"https://api.github.com/users/stereomatchingkiss/gists{/gist_id}","starred_url":"https://api.github.com/users/stereomatchingkiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stereomatchingkiss/subscriptions","organizations_url":"https://api.github.com/users/stereomatchingkiss/orgs","repos_url":"https://api.github.com/users/stereomatchingkiss/repos","events_url":"https://api.github.com/users/stereomatchingkiss/events{/privacy}","received_events_url":"https://api.github.com/users/stereomatchingkiss/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stereomatchingkiss/opencv_contrib","description":"Repository for OpenCV's extra modules","fork":true,"url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib","forks_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/forks","keys_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/teams","hooks_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/hooks","issue_events_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/issues/events{/number}","events_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/events","assignees_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/assignees{/user}","branches_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/branches{/branch}","tags_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/tags","blobs_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/git/refs{/sha}","trees_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/statuses/{sha}","languages_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/languages","stargazers_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/stargazers","contributors_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/contributors","subscribers_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/subscribers","subscription_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/subscription","commits_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/commits{/sha}","git_commits_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/git/commits{/sha}","comments_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/comments{/number}","issue_comment_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/issues/comments{/number}","contents_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/contents/{+path}","compare_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/merges","archive_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/downloads","issues_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/issues{/number}","pulls_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/pulls{/number}","milestones_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/milestones{/number}","notifications_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/labels{/name}","releases_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/releases{/id}","deployments_url":"https://api.github.com/repos/stereomatchingkiss/opencv_contrib/deployments","created_at":"2016-02-11T11:40:41Z","updated_at":"2016-02-11T11:40:46Z","pushed_at":"2016-05-30T11:07:20Z","git_url":"git://github.com/stereomatchingkiss/opencv_contrib.git","ssh_url":"git@github.com:stereomatchingkiss/opencv_contrib.git","clone_url":"https://github.com/stereomatchingkiss/opencv_contrib.git","svn_url":"https://github.com/stereomatchingkiss/opencv_contrib","homepage":null,"size":116045,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Itseez:master","ref":"master","sha":"ba1d3ef99cf5e67241c5a31dbd9c344d12a2f7c5","user":{"login":"Itseez","id":1786446,"avatar_url":"https://avatars.githubusercontent.com/u/1786446?v=3","gravatar_id":"","url":"https://api.github.com/users/Itseez","html_url":"https://github.com/Itseez","followers_url":"https://api.github.com/users/Itseez/followers","following_url":"https://api.github.com/users/Itseez/following{/other_user}","gists_url":"https://api.github.com/users/Itseez/gists{/gist_id}","starred_url":"https://api.github.com/users/Itseez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Itseez/subscriptions","organizations_url":"https://api.github.com/users/Itseez/orgs","repos_url":"https://api.github.com/users/Itseez/repos","events_url":"https://api.github.com/users/Itseez/events{/privacy}","received_events_url":"https://api.github.com/users/Itseez/received_events","type":"Organization","site_admin":false},"repo":{"id":12756992,"name":"opencv_contrib","full_name":"Itseez/opencv_contrib","owner":{"login":"Itseez","id":1786446,"avatar_url":"https://avatars.githubusercontent.com/u/1786446?v=3","gravatar_id":"","url":"https://api.github.com/users/Itseez","html_url":"https://github.com/Itseez","followers_url":"https://api.github.com/users/Itseez/followers","following_url":"https://api.github.com/users/Itseez/following{/other_user}","gists_url":"https://api.github.com/users/Itseez/gists{/gist_id}","starred_url":"https://api.github.com/users/Itseez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Itseez/subscriptions","organizations_url":"https://api.github.com/users/Itseez/orgs","repos_url":"https://api.github.com/users/Itseez/repos","events_url":"https://api.github.com/users/Itseez/events{/privacy}","received_events_url":"https://api.github.com/users/Itseez/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Itseez/opencv_contrib","description":"Repository for OpenCV's extra modules","fork":false,"url":"https://api.github.com/repos/Itseez/opencv_contrib","forks_url":"https://api.github.com/repos/Itseez/opencv_contrib/forks","keys_url":"https://api.github.com/repos/Itseez/opencv_contrib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Itseez/opencv_contrib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Itseez/opencv_contrib/teams","hooks_url":"https://api.github.com/repos/Itseez/opencv_contrib/hooks","issue_events_url":"https://api.github.com/repos/Itseez/opencv_contrib/issues/events{/number}","events_url":"https://api.github.com/repos/Itseez/opencv_contrib/events","assignees_url":"https://api.github.com/repos/Itseez/opencv_contrib/assignees{/user}","branches_url":"https://api.github.com/repos/Itseez/opencv_contrib/branches{/branch}","tags_url":"https://api.github.com/repos/Itseez/opencv_contrib/tags","blobs_url":"https://api.github.com/repos/Itseez/opencv_contrib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Itseez/opencv_contrib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Itseez/opencv_contrib/git/refs{/sha}","trees_url":"https://api.github.com/repos/Itseez/opencv_contrib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Itseez/opencv_contrib/statuses/{sha}","languages_url":"https://api.github.com/repos/Itseez/opencv_contrib/languages","stargazers_url":"https://api.github.com/repos/Itseez/opencv_contrib/stargazers","contributors_url":"https://api.github.com/repos/Itseez/opencv_contrib/contributors","subscribers_url":"https://api.github.com/repos/Itseez/opencv_contrib/subscribers","subscription_url":"https://api.github.com/repos/Itseez/opencv_contrib/subscription","commits_url":"https://api.github.com/repos/Itseez/opencv_contrib/commits{/sha}","git_commits_url":"https://api.github.com/repos/Itseez/opencv_contrib/git/commits{/sha}","comments_url":"https://api.github.com/repos/Itseez/opencv_contrib/comments{/number}","issue_comment_url":"https://api.github.com/repos/Itseez/opencv_contrib/issues/comments{/number}","contents_url":"https://api.github.com/repos/Itseez/opencv_contrib/contents/{+path}","compare_url":"https://api.github.com/repos/Itseez/opencv_contrib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Itseez/opencv_contrib/merges","archive_url":"https://api.github.com/repos/Itseez/opencv_contrib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Itseez/opencv_contrib/downloads","issues_url":"https://api.github.com/repos/Itseez/opencv_contrib/issues{/number}","pulls_url":"https://api.github.com/repos/Itseez/opencv_contrib/pulls{/number}","milestones_url":"https://api.github.com/repos/Itseez/opencv_contrib/milestones{/number}","notifications_url":"https://api.github.com/repos/Itseez/opencv_contrib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Itseez/opencv_contrib/labels{/name}","releases_url":"https://api.github.com/repos/Itseez/opencv_contrib/releases{/id}","deployments_url":"https://api.github.com/repos/Itseez/opencv_contrib/deployments","created_at":"2013-09-11T13:28:04Z","updated_at":"2016-05-29T12:59:13Z","pushed_at":"2016-05-30T11:07:21Z","git_url":"git://github.com/Itseez/opencv_contrib.git","ssh_url":"git@github.com:Itseez/opencv_contrib.git","clone_url":"https://github.com/Itseez/opencv_contrib.git","svn_url":"https://github.com/Itseez/opencv_contrib","homepage":null,"size":163522,"stargazers_count":796,"watchers_count":796,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1037,"mirror_url":null,"open_issues_count":153,"forks":1037,"open_issues":153,"watchers":796,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Itseez/opencv_contrib/pulls/688"},"html":{"href":"https://github.com/Itseez/opencv_contrib/pull/688"},"issue":{"href":"https://api.github.com/repos/Itseez/opencv_contrib/issues/688"},"comments":{"href":"https://api.github.com/repos/Itseez/opencv_contrib/issues/688/comments"},"review_comments":{"href":"https://api.github.com/repos/Itseez/opencv_contrib/pulls/688/comments"},"review_comment":{"href":"https://api.github.com/repos/Itseez/opencv_contrib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Itseez/opencv_contrib/pulls/688/commits"},"statuses":{"href":"https://api.github.com/repos/Itseez/opencv_contrib/statuses/60eae39f8425e2b3e76cb158211129012028fb3d"}}}}
{"actor":{"display_login":"stereomatchingkiss"}}