{"id":1412,"date":"2012-12-02T14:58:04","date_gmt":"2012-12-02T05:58:04","guid":{"rendered":"http:\/\/www.atinfinity.info\/blog\/?p=1412"},"modified":"2012-12-02T21:13:36","modified_gmt":"2012-12-02T12:13:36","slug":"opencv%e3%81%ae%e3%83%93%e3%83%ab%e3%83%89%e8%a1%a8%e7%a4%ba","status":"publish","type":"post","link":"http:\/\/www.atinfinity.info\/blog\/archives\/1412","title":{"rendered":"OpenCV\u306e\u30d3\u30eb\u30c9\u60c5\u5831\u8868\u793a"},"content":{"rendered":"<p>OpenCV\u3092CMake\u3067\u30d3\u30eb\u30c9\u3057\u3066\u4f7f\u3046\u5834\u5408\uff0cCMake\u30aa\u30d7\u30b7\u30e7\u30f3\u304b\u3089\u69d8\u3005\u306a\u6a5f\u80fd\uff08TBB\u4f7f\u7528\/CUDA\u4f7f\u7528\/FFMPEG\u4f7f\u7528 etc&#8230;\uff09\u306eON\/OFF\u3092\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff0e\u305d\u306e\u305f\u3081\uff0c\u5b9f\u969b\u306b\u4f7f\u3046\u5834\u5408\u306e\u9078\u629e\u80a2\u3068\u3057\u3066\u3053\u308c\u3089\u306e\u6a5f\u80fd\u306e\u7d44\u307f\u5408\u308f\u305b\u304c\u5927\u91cf\u306b\u5b58\u5728\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\uff0e<\/p>\n<p>\u3053\u308c\u306f\u30e6\u30fc\u30b6\u304c\u591a\u69d8\u306a\u4f7f\u3044\u65b9\u3092\u9078\u629e\u3067\u304d\u308b\u3068\u3044\u3046\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308b\u53cd\u9762\uff0c\u8907\u6570\u306e\u30e1\u30f3\u30d0\u3067\u30d0\u30b0\u3092\u8abf\u67fb\u3059\u308b\u969b\u306b\u518d\u73fe\u74b0\u5883\u306e\u60c5\u5831\u5171\u6709\u304c\u9762\u5012\u3067\u3042\u308b\u3068\u3044\u3046\u30c7\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\uff0e<\/p>\n<p><strong>\u4f8b\uff1aCUDA\u3092\u4f7f\u3063\u305f\u95a2\u6570\u3067\u30d0\u30b0\u304c\u8d77\u304d\u3066\u3044\u308b\u30b1\u30fc\u30b9<\/strong><br \/>\nA\u3055\u3093\u300cOpenCV 2.4.3\u306eWindows\u74b0\u5883\u3067\u3053\u306e\u30d0\u30b0\u3092\u8abf\u67fb\u3057\u3068\u3044\u3066\u300d<br \/>\nB\u3055\u3093\u300c\u30d0\u30b0\u304c\u518d\u73fe\u3057\u307e\u305b\u3093\u300d<br \/>\nA\u3055\u3093\u300c\u304a\u304b\u3057\u3044\u306a\u30fc\uff0eTBB\u6709\u52b9\u306b\u3057\u3066\u308b\u3088\u306d\uff1f\u300d<br \/>\nB\u3055\u3093\u300c\u6709\u52b9\u306b\u3057\u3066\u307e\u3059\u300d<br \/>\n\uff5e\u3053\u3093\u306a\u3084\u308a\u53d6\u308a\u304c\u3057\u3070\u3089\u304f\u7d9a\u304f\uff5e<br \/>\nA\u3055\u3093\u300cCUDA\u6709\u52b9\u306b\u3057\u3066\u308b\uff1f\u300d<br \/>\nB\u3055\u3093\u300c\u6709\u52b9\u306b\u3057\u3066\u306a\u3044\u3067\u3059\u300d<br \/>\nA\u3055\u3093\u300c\u3042\u30fc\uff0c\u3053\u3063\u3061\u306f\u6709\u52b9\u306b\u3057\u3066\u308b\u306e\u3067\u305d\u308c\u3067\u8a66\u3057\u3066\u307f\u3066\u300d<br \/>\nB\u3055\u3093\u300c\u30fb\u30fb\u30fb\u300d<\/p>\n<p>\u3053\u306e\u4f8b\u3092\u898b\u3066\u3082\u308f\u304b\u308b\u3088\u3046\u306b\u3068\u3066\u3082\u9762\u5012\u304b\u3064\u975e\u751f\u7523\u7684\u3067\u3059\u306d\u30fb\u30fb\u30fb\uff0e<\/p>\n<p>\u3053\u306e\u554f\u984c\u70b9\u3092\u89e3\u6d88\u3059\u308b\u305f\u3081\u306bOpenCV 2.4.0\u304b\u3089OpenCV\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30d3\u30eb\u30c9\u60c5\u5831\u3092\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b<strong>cv::getBuildInformation()<\/strong>\u95a2\u6570\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u307e\u3059\uff0e\u5b9f\u969b\u306b\u4f7f\u3046\u5834\u5408\u306b\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u4e2d\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u51e6\u7406\u30921\u884c\u8ffd\u52a0\u3059\u308b\u3060\u3051\u306a\u306e\u3067\u3068\u3066\u3082\u7c21\u5358\u3067\u3059\uff0e<\/p>\n<blockquote><p>std::cout << cv::getBuildInformation() << std::endl;<\/p><\/blockquote>\n<p>\u30d0\u30b0\u3092\u8abf\u67fb\u3059\u308b\u969b\u306b\u306f\u307e\u305a\u518d\u73fe\u3055\u305b\u308b\u3068\u3044\u3046\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\uff0e\u305d\u306e\u305f\u3081\uff0c\u516c\u5f0f\u3078\u306e\u30d0\u30b0\u5831\u544a\u6642\u306b\u306f\u3053\u308c\u3089\u306e\u60c5\u5831\u3082\u8a18\u8f09\u3057\u3066\u3042\u3052\u305f\u65b9\u304c\u826f\u3044\u3067\u3057\u3087\u3046\uff0e\u4ee5\u4e0b\u306bVS2012\u3067OpenCV 2.4.3\u3092\u30d3\u30eb\u30c9\u3057\u305f\u5834\u5408\u306e\u51fa\u529b\u4f8b\u3092\u793a\u3057\u307e\u3059\uff0e<\/p>\n<blockquote><p>General configuration for OpenCV 2.4.3 =====================================<\/p>\n<p>  Platform:<br \/>\n    Host:                        Windows 6.2 x86<br \/>\n    CMake:                       2.8.10.2<br \/>\n    CMake generator:             Visual Studio 11 Win64<br \/>\n    CMake build tool:            C:\/PROGRA~2\/MICROS~3.0\/Common7\/IDE\/devenv.com<br \/>\n    MSVC:                        1700<\/p>\n<p>  C\/C++:<br \/>\n    Built as dynamic libs?:      YES<br \/>\n    C++ Compiler:                C:\/Program Files (x86)\/Microsoft Visual Studio 11.0\/VC\/bin\/x86_amd64\/cl.exe<br \/>\n    C++ flags (Release):         \/DWIN32 \/D_WINDOWS \/W4  \/GR \/EHa  \/D _CRT_SECURE_NO_DEPRECATE \/D _CRT_NONSTDC_NO_DEPRECATE \/D _SCL_SECURE_NO_WARNINGS \/Gy \/bigobj \/arch:AVX \/Oi  \/wd4251 \/MD \/O2 \/Ob2 \/D NDEBUG  \/Zi<br \/>\n    C++ flags (Debug):           \/DWIN32 \/D_WINDOWS \/W4  \/GR \/EHa  \/D _CRT_SECURE_NO_DEPRECATE \/D _CRT_NONSTDC_NO_DEPRECATE \/D _SCL_SECURE_NO_WARNINGS \/Gy \/bigobj \/arch:AVX \/Oi  \/wd4251 \/D_DEBUG \/MDd \/Zi \/Ob0 \/Od \/RTC1<br \/>\n    C Compiler:                  C:\/Program Files (x86)\/Microsoft Visual Studio 11.0\/VC\/bin\/x86_amd64\/cl.exe<br \/>\n    C flags (Release):           \/DWIN32 \/D_WINDOWS \/W3   \/D _CRT_SECURE_NO_DEPRECATE \/D _CRT_NONSTDC_NO_DEPRECATE \/D _SCL_SECURE_NO_WARNINGS \/Gy \/bigobj \/arch:AVX \/Oi  \/MD \/O2 \/Ob2 \/D NDEBUG  \/Zi<br \/>\n    C flags (Debug):             \/DWIN32 \/D_WINDOWS \/W3   \/D _CRT_SECURE_NO_DEPRECATE \/D _CRT_NONSTDC_NO_DEPRECATE \/D _SCL_SECURE_NO_WARNINGS \/Gy \/bigobj \/arch:AVX \/Oi  \/D_DEBUG \/MDd \/Zi \/Ob0 \/Od \/RTC1<br \/>\n    Linker flags (Release):      \/STACK:10000000 \/machine:x64   \/INCREMENTAL:NO  \/debug<br \/>\n    Linker flags (Debug):        \/STACK:10000000 \/machine:x64   \/debug \/INCREMENTAL<br \/>\n    Precompiled headers:         YES<\/p>\n<p>  OpenCV modules:<br \/>\n    To be built:                 core imgproc flann highgui features2d calib3d ml video objdetect contrib nonfree photo legacy gpu stitching ts videostab<br \/>\n    Disabled:                    world<br \/>\n    Disabled by dependency:      &#8211;<br \/>\n    Unavailable:                 androidcamera java ocl python<\/p>\n<p>  GUI:<br \/>\n    QT 4.x:                      NO<br \/>\n    Win32 UI:                    YES<br \/>\n    OpenGL support:              NO<\/p>\n<p>  Media I\/O:<br \/>\n    ZLib:                        build (ver 1.2.7)<br \/>\n    JPEG:                        build (ver 62)<br \/>\n    PNG:                         build (ver 1.5.12)<br \/>\n    TIFF:                        build (ver 42 &#8211; 4.0.2)<br \/>\n    JPEG 2000:                   build (ver 1.900.1)<br \/>\n    OpenEXR:                     NO<\/p>\n<p>  Video I\/O:<br \/>\n    FFMPEG:                      YES (prebuilt binaries)<br \/>\n      codec:                     YES (ver 53.61.100)<br \/>\n      format:                    YES (ver 53.32.100)<br \/>\n      util:                      YES (ver 51.35.100)<br \/>\n      swscale:                   YES (ver 2.1.100)<br \/>\n      gentoo-style:              YES<br \/>\n    OpenNI:                      NO<br \/>\n    OpenNI PrimeSensor Modules:  NO<br \/>\n    PvAPI:                       NO<br \/>\n    GigEVisionSDK:               NO<br \/>\n    DirectShow:                  YES<br \/>\n    XIMEA:                       NO<\/p>\n<p>  Other third-party libraries:<br \/>\n    Use IPP:                     NO<br \/>\n    Use TBB:                     YES (ver 4.1 interface 6101)<br \/>\n    Use C=:                      NO<br \/>\n    Use Cuda:                    NO<br \/>\n    Use OpenCL:                  NO<br \/>\n    Use Eigen:                   NO<\/p>\n<p>  Python:<br \/>\n    Interpreter:                 NO<\/p>\n<p>  Tests and samples:<br \/>\n    Tests:                       YES<br \/>\n    Performance tests:           YES<br \/>\n    Examples:                    NO<\/p>\n<p>  Install path:                  C:\/dev\/OpenCV-2.4.3\/build\/install<\/p>\n<p>  cvconfig.h is in:              C:\/dev\/OpenCV-2.4.3\/build<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\n<\/p><\/blockquote>\n<p>\u8272\u3005\u60c5\u5831\u304c\u51fa\u3066\u3044\u307e\u3059\u304c\u7c21\u5358\u306b\u773a\u3081\u3066\u307f\u308b\u3068\uff0c<\/p>\n<p><strong>\u300cMSVC:                        1700\u300d<\/strong><br \/>\n\u2192Visual Studio 2012\u4f7f\u3063\u3066\u308b\u306e\u304b\u30fc<\/p>\n<p><strong>\u300cDirectShow: YES\u300d<\/strong><br \/>\n\u2192\u30d3\u30c7\u30aa\u30ad\u30e3\u30d7\u30c1\u30e3\u306fDirectShow\u4f7f\u3063\u3066\u308b\u306e\u304b\u30fc<\/p>\n<p><strong>\u300cUse TBB: YES (ver 4.1 interface 6101)\u300d<\/strong><br \/>\n\u2192TBB\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3066TBB 4.1\u4f7f\u3063\u3066\u308b\u306e\u304b\u30fc<\/p>\n<p>\u306a\u3069\u306e\u60c5\u5831\u304c\u7c21\u5358\u306b\u308f\u304b\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff0e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenCV\u3092CMake\u3067\u30d3\u30eb\u30c9\u3057\u3066\u4f7f\u3046\u5834\u5408\uff0cCMake\u30aa\u30d7\u30b7\u30e7\u30f3\u304b\u3089\u69d8\u3005\u306a\u6a5f\u80fd\uff08TBB\u4f7f\u7528\/CUDA\u4f7f\u7528\/FFMPEG\u4f7f\u7528 etc&#8230;\uff09\u306eON\/OFF\u3092\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff0e\u305d\u306e\u305f\u3081\uff0c\u5b9f\u969b\u306b\u4f7f\u3046\u5834\u5408\u306e\u9078\u629e &hellip; <a href=\"http:\/\/www.atinfinity.info\/blog\/archives\/1412\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a>&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[22,6],"tags":[],"_links":{"self":[{"href":"http:\/\/www.atinfinity.info\/blog\/wp-json\/wp\/v2\/posts\/1412"}],"collection":[{"href":"http:\/\/www.atinfinity.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.atinfinity.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.atinfinity.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.atinfinity.info\/blog\/wp-json\/wp\/v2\/comments?post=1412"}],"version-history":[{"count":31,"href":"http:\/\/www.atinfinity.info\/blog\/wp-json\/wp\/v2\/posts\/1412\/revisions"}],"predecessor-version":[{"id":1425,"href":"http:\/\/www.atinfinity.info\/blog\/wp-json\/wp\/v2\/posts\/1412\/revisions\/1425"}],"wp:attachment":[{"href":"http:\/\/www.atinfinity.info\/blog\/wp-json\/wp\/v2\/media?parent=1412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.atinfinity.info\/blog\/wp-json\/wp\/v2\/categories?post=1412"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.atinfinity.info\/blog\/wp-json\/wp\/v2\/tags?post=1412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}