{"id":6432,"date":"2017-04-02T00:18:47","date_gmt":"2017-04-01T15:18:47","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=6432"},"modified":"2017-04-12T14:34:44","modified_gmt":"2017-04-12T05:34:44","slug":"%e3%82%aa%e3%83%bc%e3%83%90%e3%83%bc%e3%83%95%e3%83%ad%e3%83%bc%e3%82%92%e8%b5%b7%e3%81%93%e3%81%95%e3%81%aa%e3%81%84-predict-median","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=6432","title":{"rendered":"\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc\u3092\u8d77\u3053\u3055\u306a\u3044 Predict Median"},"content":{"rendered":"<p>uint8_t \u3067\u306e Predict Median \u3067\u4e88\u6e2c\u5024\u3092\u8a08\u7b97\u3059\u308b\u969b\u3001uint8_t \u306e\u307e\u307e\u3067\u8a08\u7b97\u3059\u308b\u3068 gradient \u306e\u8a08\u7b97\u3067\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc\uff08\u3084\u30a2\u30f3\u30c0\u30fc\u30d5\u30ed\u30fc\uff09\u304c\u767a\u751f\u3057\u3046\u308b\u305f\u3081\u3001\u305d\u306e\u5f8c\u306b\u5927\u5c0f\u6bd4\u8f03\u3092\u3059\u308b\u3068\u4e0d\u6b63\u78ba\u306a\u7d50\u679c\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3001\u3068\u3044\u3046\u8a71\u3092<a href=\"http:\/\/umezawa.dyndns.info\/wordpress\/?p=3066\">\u3060\u3044\u3076\u524d\u306b\u8a18\u4e8b<\/a>\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc\u3057\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u306b\u306f\u305f\u3068\u3048\u3070 int \u306b\u3057\u305f\u308a\u5834\u5408\u5206\u3051\u3092\u3057\u305f\u308a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3088\u306d\u3001\u3068\u3044\u3046\u306e\u304c\u305d\u306e\u8a18\u4e8b\u3067\u306e\u7d50\u8ad6\u3067\u3057\u305f\u3002\u5834\u5408\u5206\u3051\u3092\u3059\u308b\u5834\u5408\u306f\u3082\u3061\u308d\u3093\u3001\u30d3\u30c3\u30c8\u6570\u3092\u5e83\u3052\u308b\u5834\u5408\u3067\u3082 SIMD \u8a08\u7b97\u3057\u3066\u3044\u308b\u3068\u5909\u63db\u306b\u304b\u304b\u308b\u6642\u9593\u3082\u7121\u8996\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u3067\u3001\u6700\u8fd1\u982d\u3092\u3072\u306d\u3063\u3066\u3044\u305f\u3068\u3053\u308d\u3001\u30d3\u30c3\u30c8\u6570\u3092\u5e83\u3052\u305a\u306b\u5834\u5408\u5206\u3051\u3082\u56de\u907f\u3067\u304d\u308b\u3053\u3068\u306b\u6c17\u304c\u4ed8\u304d\u307e\u3057\u305f\u3002\u4e2d\u592e\u5024\u3092\u4e0e\u3048\u308b median \u95a2\u6570\u306b\u306f\u4ee5\u4e0b\u306e\u81ea\u660e\u306a\u6027\u8cea\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<blockquote>\n<pre>\r\nmedian(a + x, b + x, c + x) = median(a, b, c) + x\r\nmedian(-a, -b, -c) = -median(a, b, c)\r\n<\/pre>\n<\/blockquote>\n<p>\u3088\u3063\u3066\u3001Predict Median \u306e\u5f0f\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u5f62\u3067\u304d\u307e\u3059\u3002(a = left, b = top, c = topleft)<\/p>\n<blockquote>\n<pre>\r\n  median(a, b, a + b - c)\r\n= median((a + b) - a, (a + b) - b, (a + b) - c)\r\n= (a + b) + median(-a, -b, -c)\r\n= a + b - median(a, b, c)\r\n<\/pre>\n<\/blockquote>\n<p>\u3053\u3046\u3059\u308c\u3070\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc\u306e\u5f8c\u306b\u5927\u5c0f\u6bd4\u8f03\u3092\u884c\u3046\u3053\u3068\u3092\u907f\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u5909\u5f62\u306e\u7d50\u679c\u3001\u884c\u3046\u6f14\u7b97\u306e\u7a2e\u985e\u3068\u6570\u306f\u5909\u5316\u3057\u3066\u304a\u3089\u305a\u3001\u3057\u304b\u3082\u5f8c\u3067\u6b8b\u5dee\u3092\u8a08\u7b97\u3059\u308b\u3053\u3068\u3092\u8003\u616e\u3059\u308b\u3068\u30af\u30ea\u30c6\u30a3\u30ab\u30eb\u30d1\u30b9\u306f\u77ed\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u4ee5\u524d\u306e\u8a18\u4e8b\u3067\u3082\u8a00\u53ca\u3057\u3066\u3044\u308b\u901a\u308a\u5727\u7e2e\u6bd4\u306f\u6539\u5584\u3055\u308c\u308b\u305f\u3081\u3001\u3044\u3044\u3053\u3068\u3065\u304f\u3081\u3067\u3059\u3002<\/p>\n<p>9\u5e74\u524d\u306b\u6c17\u3065\u3044\u3066\u308c\u3070\u306a\u3041\u2026<\/p>\n","protected":false},"excerpt":{"rendered":"<p>uint8_t \u3067\u306e Predict Median \u3067\u4e88\u6e2c\u5024\u3092\u8a08\u7b97\u3059\u308b\u969b\u3001uint8_t \u306e\u307e\u307e\u3067\u8a08\u7b97\u3059\u308b\u3068 gradient \u306e\u8a08\u7b97\u3067\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc\uff08\u3084\u30a2\u30f3\u30c0\u30fc\u30d5\u30ed\u30fc\uff09\u304c\u767a\u751f\u3057\u3046\u308b\u305f\u3081\u3001\u305d\u306e\u5f8c\u306b\u5927\u5c0f\u6bd4\u8f03\u3092\u3059\u308b\u3068\u4e0d\u6b63\u78ba\u306a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-6432","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/6432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6432"}],"version-history":[{"count":15,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/6432\/revisions"}],"predecessor-version":[{"id":6455,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/6432\/revisions\/6455"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6432"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}