|
|
- なおみ そめや
- 6 years ago
- Views:
Transcription
1 OpenCV v
2
3 3 I C++ API 5 1 cv::mat XML/YAML Features2d Highgui Kinect Index 16
4
5 I C++ API
6
7 7 1 cv::mat. 1.1 Mat img = imread(filename); jpg 3 Mat img = imread(filename, 0); Mat img = imwrite(filename); XML/YAML 1.2 8UC1 x, y Scalar intensity = img.at<uchar>(x, y); intensity.val[0] bgr 3 imread Vec3b intensity = img.at<vec3b>(x, y); uchar blue = intensity.val[0]; uchar green = intensity.val[1]; uchar red = intensity.val[2];
8 8 1 cv::mat. 3 Sobel Vec3f intensity = img.at<vec3f>(x, y); float blue = intensity.val[0]; float green = intensity.val[1]; float red = intensity.val[2]; img.at<uchar>(x, y) = 128; OpenCV 2 3 Mat calib3d projectpoints FC2 32FC3 std::vector vector<point2f> points; //... Mat pointsmat = Mat(points); Mat::at Point2f point = pointsmat.at<point2f>(i, 0); Mat Mat Mat Mat 2 std::vector<point3f> points; //... Mat pointsmat = Mat(points).reshape(1); 1 32FC3 3 32FC1 pointsmat points points pointsmat Mat::copyTo Mat::clone Mat img = imread("image.jpg"); Mat img1 = img.clone(); C API Mat Mat::create
9 Mat img = imread("image.jpg"); Mat sobelx; Sobel(img, sobelx, CV_32F, 1, 0); img img = Scalar(0); ROI Rect r(10, 10, 100, 100); Mat smallimg = img(r); Mat C API Mat img = imread("image.jpg"); IplImage img1 = img; CvMat m = img; Mat img = imread("image.jpg"); // 8UC3 Mat grey; cvtcolor(img, grey, CV_BGR2GRAY); 8UC1 32FC1 convertto(src, dst, CV_32F); OpenCV 8U Mat img = imread("image.jpg"); namedwindow("image", CV_WINDOW_AUTOSIZE); imshow("image", img); waitkey();
10 10 1 cv::mat. waitkey() "image" 32F 8U Mat img = imread("image.jpg"); Mat grey; cvtcolor(img, grey, CV_BGR2GREY); Mat sobelx; Sobel(grey, sobelx, CV_32F, 1, 0); double minval, maxval; minmaxloc(sobelx, &minval, &maxval); // Mat draw; sobelx.convertto(draw, CV_8U, 255.0/(maxVal - minval), -minval); namedwindow("image", CV_WINDOW_AUTOSIZE); imshow("image", draw); waitkey();
11 11 2 Features2d opencv/samples/cpp/matcher simple.cpp Mat img1 = imread(argv[1], CV_LOAD_IMAGE_GRAYSCALE); Mat img2 = imread(argv[2], CV_LOAD_IMAGE_GRAYSCALE); if(img1.empty() img2.empty()) { printf("can t read one of the images\n"); return -1; } // SurfFeatureDetector detector(400); vector<keypoint> keypoints1, keypoints2; detector.detect(img1, keypoints1); detector.detect(img2, keypoints2); // SurfDescriptorExtractor extractor; Mat descriptors1, descriptors2; extractor.compute(img1, keypoints1, descriptors1); extractor.compute(img2, keypoints2, descriptors2); // BruteForceMatcher<L2<float> > matcher; vector<dmatch> matches; matcher.match(descriptors1, descriptors2, matches); // namedwindow("matches", 1); Mat img_matches; drawmatches(img1, keypoints1, img2, keypoints2, matches, img_matches);
12 12 2 Features2d. imshow("matches", img_matches); waitkey(0); Mat img1 = imread(argv[1], CV_LOAD_IMAGE_GRAYSCALE); Mat img2 = imread(argv[2], CV_LOAD_IMAGE_GRAYSCALE); if(img1.empty() img2.empty()) { printf("can t read one of the images\n"); return -1; } 2 // FastFeatureDetector detector(15); vector<keypoint> keypoints1, keypoints2; detector.detect(img1, keypoints1); detector.detect(img2, keypoints2); FeatureDetector 1 1 // SurfDescriptorExtractor extractor; Mat descriptors1, descriptors2; extractor.compute(img1, keypoints1, descriptors1); extractor.compute(img2, keypoints2, descriptors2); OpenCV DescriptorExtractor DescriptorExtractor::compute Mat i- i 1 FAST [0, 40] SURF Hessian 100
13 // BruteForceMatcher<L2<float> > matcher; vector<dmatch> matches; matcher.match(descriptors1, descriptors2, matches); matcher Brief matches // namedwindow("matches", 1); Mat img_matches; drawmatches(img1, keypoints1, img2, keypoints2, matches, img_matches); imshow("matches", img_matches); waitkey(0);
14
15 15 3 Highgui. 3.1 Kinect Kinect VideoCapture VideoCapture depth rgb Kinect OpenCV Kinect 1) OpenNI PrimeSensor Module for OpenNI downloadfiles OpenNI: Linux & MacOSX: Libs into: /usr/lib Includes into: /usr/include/ni Windows: Libs into: c:/program Files/OpenNI/Lib Includes into: c:/program Files/OpenNI/Include PrimeSensor Module: Linux & MacOSX: Bins into: /usr/bin Windows: Bins into: c:/program Files/Prime Sense/Sensor/Bin CMake OPENNI LIB DIR, OPENNI INCLUDE DIR / OPENNI PRIME SENS 2) CMake WITH OPENNI OpenCV OpenNI OpenNI OpenCV PrimeSensor Module OpenNI PrimeSensor Module CMake PrimeSensor Module OpenCV OpenNI VideoCapture Kinect 3) Build OpenCV. VideoCapture Kinect a.) depth OPENNI_DEPTH_MAP - mm depth (CV_16UC1)
16 16 3 Highgui. OPENNI_POINT_CLOUD_MAP OPENNI_DISPARITY_MAP OPENNI_DISPARITY_MAP_32F OPENNI_VALID_DEPTH_MASK b.) RGB OPENNI_BGR_IMAGE OPENNI_GRAY_IMAGE - m XYZ (CV_32FC3) - (CV_8UC1) - (CV_32FC1) -. (CV_8UC1) - (CV_8UC3) - (CV_8UC1) Kinect depth VideoCapture::operator >> VideoCapture capture(0); // CV_CAP_OPENNI for(;;) { Mat depthmap; capture >> depthmap; } if( waitkey( 30 ) >= 0 ) break; Kinect VideoCapture::grab + VideoCapture::retrieve VideoCapture capture(0); // CV_CAP_OPENNI for(;;) { Mat depthmap; Mat rgbimage capture.grab(); capture.retrieve( depthmap, OPENNI_DEPTH_MAP ); capture.retrieve( bgrimage, OPENNI_BGR_IMAGE ); } if( waitkey( 30 ) >= 0 ) break; sample kinect maps.cpp
OpenCV IS Report No Report Medical Information System Labratry
OpenCV 2014 8 25 IS Report No. 2014090201 Report Medical Information System Labratry Abstract OpenCV OpenCV 1............................ 2 1.1 OpenCV.......................... 2 1.2......................
More informationスライド 1
OpenCV 祭り発表資料 ios& 便利マクロ &Tips @dandelion1124 自己紹介 ( というかこれまでやったこと ) OpenCV プログラミングブック NAIST 在学時に執筆. 著者 ( の一人 ). 詳解 OpenCV 和訳本出版時の原著コンテンツチェック等. 日経ソフトウェア特集 2011 年 3 月号記事執筆. 最近は主に動向を追ったり,bug 報告したり, コード読んだり.
More information2 Eclipse 2.1 Eclipse 1. Eclipse 2. 3 ( 4) E:Yworkspace OK 3 Eclipse 4 3. Eclipse 5 5 Eclipse Eclipse 2. 7 C 2
3: 1 1. PC 2. Phantasys 201209 ( 1) 1 PC 2 Windows 3. Windows ID ( 2) 4. Web (Firefox Internet Explorer) 5. A 6. http:// http://www.cv.ics.saitama-u.ac.jp/yosinori/lecture/seminar/ Web 1 7. USB PC USB
More informationLecture3
Digital Image Processing 2013 4/1 デジタル 画 像 と 簡 単 な 画 像 処 理 2 Digital Image Processing 2013 4/4 2 画 像 の 生 成 1 画 像 ファイルから 入 力 する 方 法 画 像 ファイルから 画 像 を 作 るための 関 数 は Mat imread(const string& ファイル 名, int flags);
More informationMicrosoft PowerPoint - CV03.ppt [互換モード]
コンピュータビジョン 特 論 Advanced Computer Vision 第 3 回 今 回 の 内 容 OpenCVのインストール 方 法 基 本 的 な 使 い 方 について 学 ぶ 資 料 (New 浅 見 君 より): http://www.wakayama-u.ac.jp/~wuhy/how_to_install_opencv.html 資 料 (New2): http://cvwww.ee.ous.ac.jp/oc20inst.html
More information2 ColorSpace DepthSpace CameraSpace Kinect V2 Kinect V2 BOdyIndex 3. NtKinect Kinect V2 C++ NtKinect [4] NtKinect = Kinect SDK + + STL(C++) + OpenCV +
NtKinect: C++ Class Library for Kinect V2 1,a) Kinect for Windows V2 C++ NtKinect NtKinect DLL Kinect V2 Kinect V2, C++, DLL, Unity NtKinect: C++ Class Library for Kinect V2 Nitta Yoshihisa 1,a) Abstract:
More informationスライド 1
知能制御システム学 画像処理の基礎 (1) 基礎概念と OpenCV の導入 東北大学大学院情報科学研究科鏡慎吾 swk(at)ic.is.tohoku.ac.jp http://www.ic.is.tohoku.ac.jp/~swk/lecture/ 2012.06.12 ディジタル画像 撮像面における入射光強度のアナログ分布 2 次元離散化 ( 画素 への分割 ) 量子化 (A/D 変換 ) ディジタル画像
More information131 71 7 1 71 71 71 71 71 71 71 71 71 71 7 1 71 71 71 71 71 71 71 71 7 1 71 7 1 71 71 71 71 71 71 71 71 71 71 71 71 71 71 71 71 71 7 1 71 71 71 71 71 71 71 71 71 7 1 71 71 71 71 71 71 71 7 1 71 7 1 71
More information1 2 3 4 5 6 7 1 2 8 1 2 3 4 9 1 1 1 10 1 2 3 11 1 2 3 12 4 5 6 7 13 14 15 4 13 57 16 17 18 19 13 5 7 8 6 4 20 1 2 3 4 5 6 21 22 1 2 3 4 5 6 23 24 1 2 5 3 6 7 4 25 26 27 28 29 30 1 23 4 57 31 32 33 34 35
More information掲示用ヒート表 第34回 藤沢市長杯 2017
34 8 4 2 Round 1 Round 2 SEMI FINAL 30 16 8 H1 H5 H1 H1 Red 12401821 2 Red 12601360 2 1-1 Red 12501915 1 1-1 Red 12501915 4 White 12900051 4 White 12600138 3 3-1 White 12802412 2 3-1 White 12801091 1 Yellow
More informationuntitled
74 1 300 20 9 11 (1) (2) (3) 14 2 1 252 75 3002 2 201 10124 50012001 652 4020 110023 () 1 3 RGB redg green blue 4 5 () 6 ( ) () Y 7 A: B: 3 () () 8 4 6 redundant 9 10 (1) 11 (2) 12 (3) 13 14 http://www.vischeck.com/vischeck/vischeckimage.php
More information基礎輪講2週目 Kinectの話
基礎輪講 2 週目 Kinect の話 3D Computer Vision カメラから 3 次元の情報を取得 3 次元再構築 :2 次元の画像から 3 次元形状の復元 多視点画像群 3 次元再構築結果 3 次元の情報を持つ画像ってないの? 2 距離画像 Depth( 距離 ) の情報を持った画像 各画素の部分に距離の値が入る. 距離画像 距離画像を取得する機器が必要 3 距離画像センサ 実世界の距離情報を取得できる.
More information2 3
Sample 2 3 4 5 6 7 8 9 3 18 24 32 34 40 45 55 63 70 77 82 96 118 121 123 131 143 149 158 167 173 187 192 204 217 224 231 17 285 290 292 1 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
More information印刷物
http://www.systems-eng.co.jp http://www.systems-eng.co.jp http://www.systems-eng.co.jp Detector Port Simple Holders Port Plugs Port 2 Detector Port Port 3 Port 1 Port 4 Baffle Port 5 http://www.systems-eng.co.jp
More information★結果★ 藤沢市長杯 掲示用ヒート表
AA 35 Round 1 8 4 Round 2 28 16 SEMI FINAL H1 H5 H1 H1 Red 12802015 1 Red 12802109 1 1-1 Red 12802015 2 1-1 Red 12702346 White 12800232 2 White 12702406 3 3-1 White 12702346 1 3-1 White 12802109 Yellow
More informationMicrosoft PowerPoint - 201409_秀英体の取組み素材(予稿集).ppt
1 2 3 4 5 6 7 8 9 10 11 No Image No Image 12 13 14 15 16 17 18 19 20 21 22 23 No Image No Image No Image No Image 24 No Image No Image No Image No Image 25 No Image No Image No Image No Image 26 27 28
More information001 No.3/12 1 1 2 3 4 5 6 4 8 13 27 33 39 001 No.3/12 4 001 No.3/12 5 001 No.3/12 6 001 No.3/12 7 001 8 No.3/12 001 No.3/12 9 001 10 No.3/12 001 No.3/12 11 Index 1 2 3 14 18 21 001 No.3/12 14 001 No.3/12
More informationヤフー株式会社 株主通信VOL.16
01 260,602264,402 122,795125,595 64,84366,493 107110 120,260123,060 0 500 300 400 200 100 700 600 800 39.8% 23.7% 36.6% 26.6% 21.1% 52.4% 545 700 0 50 200 150 100 250 300 350 312 276 151 171 02 03 04 POINT
More information株主通信:第18期 中間
19 01 02 03 04 290,826 342,459 1,250,678 276,387 601,695 2,128,760 31,096 114,946 193,064 45,455 18,478 10,590 199,810 22,785 2,494 3,400,763 284,979 319,372 1,197,774 422,502 513,081 2,133,357 25,023
More information1003shinseihin.pdf
1 1 1 2 2 3 4 4 P.14 2 P.5 3 P.620 6 7 8 9 10 11 13 14 18 20 00 P.21 1 1 2 3 4 5 2 6 P7 P14 P13 P11 P14 P13 P11 3 P13 7 8 9 10 Point! Point! 11 12 13 14 Point! Point! 15 16 17 18 19 Point! Point! 20 21
More informationワタベウェディング株式会社
1 2 3 4 140,000 100,000 60,000 20,000 0 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 5 6 71 2 13 14 7 8 9 10 11 12 1 2 2 point 1 point 2 1 1 3 point 3 4 4 5 6 point 4 point 5 point 6 13 14 15 16 point 17
More information株主通信 第16 期 報告書
10 15 01 02 1 2 3 03 04 4 05 06 5 153,476 232,822 6,962 19,799 133,362 276,221 344,360 440,112 412,477 846,445 164,935 422,265 1,433,645 26,694 336,206 935,497 352,675 451,321 1,739,493 30,593 48,894 153,612
More informationp01.qxd
2 s 1 1 2 6 2 POINT 23 23 32 15 3 4 s 1 3 2 4 6 2 7003800 1600 1200 45 5 3 11 POINT 2 7003800 7 11 7003800 8 12 9 10 POINT 2003 5 s 45700 3800 5 6 s3 1 POINT POINT 45 2700 3800 7 s 5 8 s3 1 POINT POINT
More informationuntitled
1 2 3 4 5 6 7 Point 60,000 50,000 40,000 30,000 20,000 10,000 0 29,979 41,972 31,726 45,468 35,837 37,251 24,000 20,000 16,000 12,000 8,000 4,000 0 16,795 22,071 20,378 14 13 12 11 10 0 12.19 12.43 12.40
More information-- 0 500 1000 1500 2000 2500 3000 () 0% 20% 40% 60%23 47.5% 16.0% 26.8% 27.6% 10,000 -- 350 322 300 286 250 200 150 100 50 0 20 21 22 23 24 25 26 27 28 29 -- ) 300 280 260 240 163,558 165,000 160,000
More information225 225 232528 152810 225 232513 -1- -2- -3- -4- -5- -6- -7- -8- -9- -10- -11- -12- -13- -14- -15- -16- -17- -18- -19- -20- -21- -22- -23- -24- -25- -26- -27- -28- -29- -30- -31- -32- -33- -34- -35- -36-
More information232528 152810 232513 -1- -2- -3- -4- -5- -6- -7- -8- -9- -10- -11- -12- -13- -14- -15- -16- -17- -18- -19- -20- -21- -22- -23- -24- -25- -26- -27- -28- -29- -30- -31- -32- -33- -34- -35- -36- -37- -38-
More informationC INDEX No.16 C 1 20 18 16 2 8 GREEN CAMPUS 1 member member member member member 1 2 3 4 5 2 3 4 5 6 7 http://www.tuat.ac.jp/~c2001/mail/ 8 9 I N F O R M A T I O N 10 11 I N F O R M A T I O N 12 I N F
More information1 1.1 C 2 1 double a[ ][ ]; 1 3x x3 ( ) malloc() 2 double *a[ ]; double 1 malloc() dou
1 1.1 C 2 1 double a[ ][ ]; 1 3x3 0 1 3x3 ( ) 0.240 0.143 0.339 0.191 0.341 0.477 0.412 0.003 0.921 1.2 malloc() 2 double *a[ ]; double 1 malloc() double 1 malloc() free() 3 #include #include
More information第3章 OpenGL の基礎
3 OpenGL April 11, 2017 1 / 28 3.1 ( ) OpenGL OpenGL 2 / 28 3.2 OpenGL OpenGL OpenGL (Open Graphics Library) Silicon Graphics, Inc. 2 3 API (Application Program Interface) [4] UNIX OS Windows Macintosh
More information目次 1 はじめに 1 2 グレースケール 2 3 ヒストグラム 3 4 累積ヒストグラム 4 5 ヒストグラム平坦化 7 6 RAW 画像 9 7 他の画像 12 8 エントロピ 16 9 まとめ 18 使用したツール 19 参考文献
2015 年度卒業研究論文 画像のヒストグラム平坦化について 岡山理科大学総合情報学部情報科学科 I12I005 石岡里奈 I12I013 大玉優菜 目次 1 はじめに 1 2 グレースケール 2 3 ヒストグラム 3 4 累積ヒストグラム 4 5 ヒストグラム平坦化 7 6 RAW 画像 9 7 他の画像 12 8 エントロピ 16 9 まとめ 18 使用したツール 19 参考文献 1 はじめに
More information1 2 http://www.japan-shop.jp/ 3 4 http://www.japan-shop.jp/ 5 6 http://www.japan-shop.jp/ 7 2,930mm 2,700 mm 2,950mm 2,930mm 2,950mm 2,700mm 2,930mm 2,950mm 2,700mm 8 http://www.japan-shop.jp/ 9 10 http://www.japan-shop.jp/
More information第18回海岸シンポジウム報告書
2011.6.25 2011.6.26 L1 2011.6.27 L2 2011.7.6 2011.12.7 2011.10-12 2011.9-10 2012.3.9 23 2012.4, 2013.8.30 2012.6.13 2013.9 2011.7-2011.12-2012.4 2011.12.27 2013.9 1m30 1 2 3 4 5 6 m 5.0m 2.0m -5.0m 1.0m
More information液晶ディスプレイ取説TD-E432/TD-E502/TD-E552/TD-E652/TD-E432D/TD-E502D
1 2 3 4 5 6 7 1 2 3 4 5 6 7 2 2 2 1 1 2 9 10 11 12 13 14 15 16 17 1 8 2 3 4 5 6 7 1 2 3 4 5 6 7 8 9 10 9 11 12 13 13 14 15 16 17 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 2 3 4 5 6 7 8 9 11 12
More information000-.\..
1 1 1 2 3 4 5 6 7 8 9 e e 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 10mm 150mm 60mm 25mm 40mm 30mm 25 26 27 1 28 29 30 31 32 e e e e e e 33 e 34 35 35 e e e e 36 37 38 38 e e 39 e 1 40 e 41 e 42 43
More information(1519) () 1 ( ) () 1 ( ) - 1 - - 2 - (1531) (25) 5 25,000 (25) 5 30,000 25,000 174 3 323 174 3 323 (1532) () 2 () 2-3 - - 4 - (1533) () 1 (2267)204 () (1)(2) () 1 (2267)204 () (1)(2) (3) (3) 840,000 680,000
More information[mm] [mm] [mm] 70 60 50 40 30 20 10 1H 0 18 19 20 21 22 23 24 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 2 3 4 5 6 7 8 9 10 11 12 60 50 40 30 20 10 0 18 19 20 21 22 23 24 1 2 3 4
More information1 911 34/ 22 1012 2/ 20 69 3/ 22 69 1/ 22 69 3/ 22 69 1/ 22 68 3/ 22 68 1/ 3 8 D 0.0900.129mm 0.1300.179mm 0.1800.199mm 0.1000.139mm 0.1400.409mm 0.4101.199mm 0.0900.139mm 0.1400.269mm 0.2700.289mm
More information1 1 36 223 42 14 92 4 3 2 1 4 3 4 3429 13536 5 6 7 8 9 2.4m/ (M) (M) (M) (M) (M) 6.67.3 6.57.2 6.97.6 7.27.8 8.4 5 6 5 6 5 5 74 1,239 0 30 21 ( ) 1,639 3,898 0 1,084 887 2 5 0 2 2 4 22 1 3 1 ( :) 426 1500
More information1 C 2 C 3 C 4 C 1 C 2 C 3 C
1 e N >. C 40 41 2 >. C 3 >.. C 26 >.. C .mm 4 C 106 e A 107 1 C 2 C 3 C 4 C 1 C 2 C 3 C 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
More information平成24年財政投融資計画PDF出後8/016‐030
24 23 28,707,866 2,317,737 26,390,129 29,289,794 2,899,665 24 23 19,084,525 21,036,598 1952,073 24 23 8,603,613 8,393,427 967,631 925,404 202,440 179,834 217,469 219,963 66,716 64,877 3,160,423 2,951,165
More information第32回新春波乗り大会2018
AA 32 Round 1 4 SEMI FINAL 2 20 8 FINAL H1 H1 H1 Red 12701793 1 1-1 Red 12701793 2 1-1 Red 11800623 White 12900058 4 3-1 White 12402115 4 2-1 White 12402209 Yellow 11603976 3 2-2 Yellow 12301534 3 1-2
More information1 1.1 C 2 1 double a[ ][ ]; 1 3x x3 ( ) malloc() malloc 2 #include <stdio.h> #include
1 1.1 C 2 1 double a[ ][ ]; 1 3x3 0 1 3x3 ( ) 0.240 0.143 0.339 0.191 0.341 0.477 0.412 0.003 0.921 1.2 malloc() malloc 2 #include #include #include enum LENGTH = 10 ; int
More informationi EXILE, AKB48, K-POP 20 1 Kinect Kinect
24 Kinect 2013 2 i EXILE, AKB48, K-POP 20 1 Kinect Kinect iii iii v vii 1 1 1.1............................... 1 1.2............................... 2 1.3.............................. 3 2 5 2.1 [1]................................
More informationXG-335x Qt+OpenCVのPC用アプリケーション開発
ALPHA XG-335x Qt+OpenCV の PC 用アプリケーション開発 PROJECT Co.,LTD. Rev1.0 2014/11/12 目次 1. 概要 1 1.1 はじめに...1 1.2 構成...1 2. 環境構築 2 2.1 前提環境...2 2.2 Qt インストール...2 2.3 OpenCV インストール...3 3. プログラミング 6 3.1 Qt Creator
More information25 2014 2 i 1 Kinect 17% 0% 100% iii iii v vii 1 1 1.1............................... 1 1.2............................... 2 1.3.............................. 2 2 3 2.1.................................
More information