• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            逛奔的蝸牛

            我不聰明,但我會很努力

               ::  :: 新隨筆 ::  ::  :: 管理 ::

            What is OpenCV?

            OpenCV means Intel® Open Source Computer Vision Library. It is a collection of C functions and a few C++ classes that implement some popular Image Processing and Computer Vision algorithms.

            What this means

            You can take advantage of high speed implementations of functions commonly used in Computer Vision/Image Processing.


            Overview:

            1. CV: Image processing and vision algorithms

            2. CXCORE: basic structures and algoritms, XML support, drawing functions

            3. ML: Machine Learning methods

            4. HighGUI: GUI, Image and Video I/O

            5. Cvaux: Auxiliary (experimental) OpenCv functions

            6. CvCam: cross-platform module for processing video stream from digital video cameras

             

            下載地址: http://opencv.willowgarage.com/wiki/

            參考手冊: http://opencv.willowgarage.com/documentation/cpp/index.html,可以在線搜索,比較方便


            在Qt中使用OpenCV:

            1. 創建一個空的工程

            2.1. 在工程的pro文件中把opencv的include目錄加入INCLUDEPATH中

            2.2. 把需要使用的opencv的庫連接文件加入工程pro文件的LIBS中

            3. 編寫main函數

            4. 編譯運行,會彈出一個窗口,里面顯示: Welcome To OpenCV

            ---------------------------------------------------------------------------------------------------------------------- 

            pro文件的內容如下:

            INCLUDEPATH += C:\opencv\include

            LIBS += C:\opencv\lib\libcv200.dll.a \

                C:\opencv\lib\libcxcore200.dll.a \

                C:\opencv\lib\libhighgui200.dll.a


            SOURCES += main.cpp


            ----------------------------------------------------------------------------------------------------------------------

            main.cpp的內容如下:

            #include <opencv/cv.h>

            #include <opencv/highgui.h>


            int main(int argc, char *argv[]) {

                //declare for the height and width of the image

                int height = 620;

                int width = 440;


                //specify the point to place the text

                CvPoint pt = cvPoint( height/4, width/2 );

                //Create an 8 bit, 3 plane image

                IplImage* hw = cvCreateImage(cvSize(height, width), 8, 3);

                //Clearing the Image

                cvSet(hw,cvScalar(0,0,0));

                //initialize the font

                CvFont font;

                cvInitFont( &font, CV_FONT_HERSHEY_COMPLEX, 1.0, 1.0, 0, 1, CV_AA);

                //place the text on the image using the font

                cvPutText(hw, "Welcome To OpenCV", pt, &font, CV_RGB(150, 0, 150) );


                //create the window container

                cvNamedWindow("Hello World", 0);

                //display the image in the container

                cvShowImage("Hello World", hw);

                //hold the output windows

                cvWaitKey(0);

                return 0;

            }


            posted on 2010-04-17 06:31 逛奔的蝸牛 閱讀(2397) 評論(0)  編輯 收藏 引用 所屬分類: C/C++ 、Qt
            久久只有这精品99| 久久精品亚洲福利| 99蜜桃臀久久久欧美精品网站| 色青青草原桃花久久综合| 亚洲精品无码久久久| 成人妇女免费播放久久久| 久久国产视屏| 久久精品99久久香蕉国产色戒 | 国产精品久久影院| 久久天天躁狠狠躁夜夜躁2014| 久久国产精品偷99| 国产Av激情久久无码天堂| 亚洲AV伊人久久青青草原| 久久精品国产99国产电影网| 无码国内精品久久人妻蜜桃| 一本色道久久88精品综合| 久久国产福利免费| 色综合久久88色综合天天| 99热热久久这里只有精品68| 777久久精品一区二区三区无码| 狠狠久久亚洲欧美专区| 久久久精品国产免大香伊| 久久久久国产精品嫩草影院| 欧美久久精品一级c片片| 久久精品无码一区二区无码| 国内精品久久久久影院薰衣草| 久久无码一区二区三区少妇| 久久国产亚洲精品| 亚洲Av无码国产情品久久| 久久综合精品国产一区二区三区| AA级片免费看视频久久| 久久亚洲国产精品一区二区| 国产精品免费福利久久| 国产V亚洲V天堂无码久久久| 国产精品久久久久9999| 72种姿势欧美久久久久大黄蕉| 久久国产精品99精品国产| 久久精品无码午夜福利理论片| 国产精品久久影院| 91久久精品视频| 亚洲精品无码久久久久AV麻豆|