{"action":"created","issue":{"url":"https://api.github.com/repos/Itseez/opencv/issues/4139","labels_url":"https://api.github.com/repos/Itseez/opencv/issues/4139/labels{/name}","comments_url":"https://api.github.com/repos/Itseez/opencv/issues/4139/comments","events_url":"https://api.github.com/repos/Itseez/opencv/issues/4139/events","html_url":"https://github.com/Itseez/opencv/pull/4139","id":89449737,"number":4139,"title":"spatialGradient (hal accelerated)","user":{"login":"swook","id":755922,"avatar_url":"https://avatars.githubusercontent.com/u/755922?v=3","gravatar_id":"","url":"https://api.github.com/users/swook","html_url":"https://github.com/swook","followers_url":"https://api.github.com/users/swook/followers","following_url":"https://api.github.com/users/swook/following{/other_user}","gists_url":"https://api.github.com/users/swook/gists{/gist_id}","starred_url":"https://api.github.com/users/swook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swook/subscriptions","organizations_url":"https://api.github.com/users/swook/orgs","repos_url":"https://api.github.com/users/swook/repos","events_url":"https://api.github.com/users/swook/events{/privacy}","received_events_url":"https://api.github.com/users/swook/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-06-19T02:48:29Z","updated_at":"2015-06-29T14:52:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Itseez/opencv/pulls/4139","html_url":"https://github.com/Itseez/opencv/pull/4139","diff_url":"https://github.com/Itseez/opencv/pull/4139.diff","patch_url":"https://github.com/Itseez/opencv/pull/4139.patch"},"body":"    void spatialGradient( InputArray src, OutputArray dx, OutputArray dy, int ksize );\r\n\r\nEquivalent in functionality to the following:\r\n\r\n    Sobel( src, dx, CV_16SC1, 1, 0, 3 );\r\n    Sobel( src, dy, CV_16SC1, 0, 1, 3 );\r\n"},"comment":{"url":"https://api.github.com/repos/Itseez/opencv/issues/comments/116715205","html_url":"https://github.com/Itseez/opencv/pull/4139#issuecomment-116715205","issue_url":"https://api.github.com/repos/Itseez/opencv/issues/4139","id":116715205,"user":{"login":"swook","id":755922,"avatar_url":"https://avatars.githubusercontent.com/u/755922?v=3","gravatar_id":"","url":"https://api.github.com/users/swook","html_url":"https://github.com/swook","followers_url":"https://api.github.com/users/swook/followers","following_url":"https://api.github.com/users/swook/following{/other_user}","gists_url":"https://api.github.com/users/swook/gists{/gist_id}","starred_url":"https://api.github.com/users/swook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swook/subscriptions","organizations_url":"https://api.github.com/users/swook/orgs","repos_url":"https://api.github.com/users/swook/repos","events_url":"https://api.github.com/users/swook/events{/privacy}","received_events_url":"https://api.github.com/users/swook/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T14:52:56Z","updated_at":"2015-06-29T14:52:56Z","body":"Here are the latest benchmark results:\r\n\r\n    Median\r\n\r\n                          Name of Test                        imgproc  imgproc  imgproc   imgproc    imgproc\r\n                                                               sobel    nosse     sse      nosse       sse\r\n                                                               posix    posix    posix     posix      posix\r\n                                                                x64      x64      x64       x64        x64\r\n                                                                                             vs         vs\r\n                                                                                          imgproc    imgproc\r\n                                                                                           sobel      sobel\r\n                                                                                           posix      posix\r\n                                                                                            x64        x64\r\n                                                                                         (x-factor) (x-factor)\r\n    spatialGradient::Size_Ksize_BorderType::(640x360, 3, 1)   0.128 ms 0.594 ms 0.129 ms    0.22       0.99\r\n    spatialGradient::Size_Ksize_BorderType::(640x360, 3, 4)   0.236 ms 0.594 ms 0.130 ms    0.40       1.82\r\n    spatialGradient::Size_Ksize_BorderType::(960x540, 3, 1)   0.282 ms 1.359 ms 0.281 ms    0.21       1.00\r\n    spatialGradient::Size_Ksize_BorderType::(960x540, 3, 4)   0.511 ms 1.381 ms 0.281 ms    0.37       1.82\r\n    spatialGradient::Size_Ksize_BorderType::(1280x720, 3, 1)  0.531 ms 2.423 ms 0.531 ms    0.22       1.00\r\n    spatialGradient::Size_Ksize_BorderType::(1280x720, 3, 4)  0.991 ms 2.428 ms 0.535 ms    0.41       1.85\r\n    spatialGradient::Size_Ksize_BorderType::(1920x1080, 3, 1) 1.421 ms 5.494 ms 1.376 ms    0.26       1.03\r\n    spatialGradient::Size_Ksize_BorderType::(1920x1080, 3, 4) 2.519 ms 5.491 ms 1.362 ms    0.46       1.85\r\n\r\nI will try to find out why `BORDER_REPLICATE` is so fast in the `Sobel` implementation."}}