{"id":1967,"date":"2015-05-16T22:07:24","date_gmt":"2015-05-16T13:07:24","guid":{"rendered":"http:\/\/daily.belltail.jp\/?p=1967"},"modified":"2015-05-16T22:07:24","modified_gmt":"2015-05-16T13:07:24","slug":"ndarray%e3%81%a8pyside%e3%81%aeqimage%e3%81%a8%e3%81%ae%e7%9b%b8%e4%ba%92%e5%a4%89%e6%8f%9b","status":"publish","type":"post","link":"https:\/\/daily.belltail.jp\/?p=1967","title":{"rendered":"ndarray\u3068PySide\u306eQImage\u3068\u306e\u76f8\u4e92\u5909\u63db"},"content":{"rendered":"<p>\u9b5a\u985e\u306f\u3042\u307e\u308a\u5909\u614b\u3057\u306a\u3044\uff08\u751f\u307e\u308c\u305f\u59ff\u306e\u307e\u307e\u5927\u304d\u304f\u306a\u308b\uff09\u3053\u3068\u304c\u4e00\u822c\u7684\u3067\u3001\u30ab\u30ec\u30a4\u306a\u3069\u306e\u3088\u3046\u306b\u5de6\u53f3\u5bfe\u79f0\u5f62\u304b\u3089\u975e\u5bfe\u79f0\u306b\u306a\u308b\u2026\u306a\u3069\u3001\u6606\u866b\u3084\u4e21\u751f\u985e\u306e\u305d\u308c\u306b\u6bd4\u3079\u308b\u3068\u63a7\u3048\u3081\u306a\u7a0b\u5ea6\u306b\u3068\u3069\u307e\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3055\u3066numpy\u3068\u6109\u5feb\u306a\u4ef2\u9593\u305f\u3061\u306b\u304a\u3044\u3066\u753b\u50cf\u306fndarray\u3068\u3057\u3066\u8868\u73fe\u3055\u308c\u3066\u3044\u3066\u3001\u305d\u308c\u3092\u8868\u793a\u3059\u308b\u306e\u306b\u4f7f\u3046matplotlib\u306f\u3061\u3087\u3063\u3068\u3057\u305fGUI\u6a5f\u80fd\uff08widgets\u30e2\u30b8\u30e5\u30fc\u30eb\uff09\u3092\u3082\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u305f\u3060\u3053\u308c\u30b3\u30fc\u30c9\u7684\u306b\u3082\u7d75\u7684\u306b\u3082\u30af\u30bb\u304c\u5f37\u304f\u3054\u304f\u5358\u7d14\u306a\u30c7\u30e2\u4ee5\u4e0a\u306e\u3053\u3068\u306f\u96e3\u3057\u3044\u306e\u3067\u3001\u4f55\u304b\u3057\u305f\u3044\u3068\u304d\u306fQt\u306ePython\u30e9\u30c3\u30d1\u30fc\u3067\u3042\u308bPySide\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3093\u3067\u3001\u305d\u306ePySide\u3067\u753b\u50cf\u306fQImage\u3067\u6271\u308f\u308c\u308b\u306e\u3067\u3001\u88cf\u3063\u304b\u308f\u3067ndarray\u3067\u51e6\u7406\u3092\u3057\u3066\u3044\u308b\u306a\u3089\u305d\u308c\u3092QImage\u3068\u306e\u9593\u3067\u76f8\u4e92\u5909\u63db\u3067\u304d\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u3084\u308a\u65b9\u306f\u3053\u3061\u3089\u3002<\/p>\n<p>\uff08\u53c2\u8003\uff1a [http:\/\/stackoverflow.com\/questions\/19902183\/qimage-to-numpy-array-using-pyside:title=python &#8211; QImage to Numpy Array using PySide &#8211; Stack Overflow]\uff09<\/p>\n<p><script src=\"https:\/\/gist.github.com\/belltailjp\/a9538aaf3221f754e5bf.js\"><\/script><\/p>\n<p>\u753b\u7d20\u6bce\u306b\u30eb\u30fc\u30d7\u3057\u3066\u30b3\u30d4\u30fc\u3059\u308b\u3068\u304b\u30a4\u30b1\u3066\u306a\u3044\u3053\u3068\u3057\u306a\u304f\u3066\u6e08\u3080\u304b\u3089\u7c21\u5358\u3060\u306d\uff01<br \/>\nQImage\u306b\u6301\u3063\u3066\u304d\u3066\u3057\u307e\u3048\u3070QPixmap\u306b\u3057\u3066QLabel\u306b\u7a81\u3063\u8fbc\u3093\u3067\u8868\u793a\u3059\u308b\u306a\u308aQPainter\u3067\u304a\u7d75\u304b\u304d\u3059\u308b\u306a\u308a\u3001\u81ea\u7531\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9b5a\u985e\u306f\u3042\u307e\u308a\u5909\u614b\u3057\u306a\u3044\uff08\u751f\u307e\u308c\u305f\u59ff\u306e\u307e\u307e\u5927\u304d\u304f\u306a\u308b\uff09\u3053\u3068\u304c\u4e00\u822c\u7684\u3067\u3001\u30ab\u30ec\u30a4\u306a\u3069\u306e\u3088\u3046\u306b\u5de6\u53f3\u5bfe\u79f0\u5f62\u304b\u3089\u975e\u5bfe\u79f0\u306b\u306a\u308b\u2026\u306a\u3069\u3001\u6606\u866b\u3084\u4e21\u751f\u985e\u306e\u305d\u308c\u306b\u6bd4\u3079\u308b\u3068\u63a7\u3048\u3081\u306a\u7a0b\u5ea6\u306b\u3068\u3069\u307e\u308b\u3088\u3046\u3067\u3059\u3002 \u3055\u3066numpy\u3068\u6109\u5feb\u306a\u4ef2\u9593\u305f\u3061\u306b\u304a\u3044\u3066 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,50,48,51,38],"class_list":["post-1967","post","type-post","status-publish","format-standard","hentry","category-1","tag-cvprml","tag-numpy","tag-python","tag-qt","tag-38"],"_links":{"self":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts\/1967","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1967"}],"version-history":[{"count":0,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts\/1967\/revisions"}],"wp:attachment":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}